getExtensionDeclaration method
Returns the extension declaration for the given fragment, or null if
there is no such extension.
Implementation
Future<ExtensionDeclaration?> getExtensionDeclaration(
ExtensionFragment fragment,
) async {
var result = await sessionHelper.getFragmentDeclaration(fragment);
var node = result?.node;
if (node is ExtensionDeclaration) {
return node;
}
return null;
}