getMixinDeclaration method

Future<MixinDeclaration?> getMixinDeclaration(
  1. MixinFragment fragment
)
inherited

Returns the mixin declaration for the given fragment, or null if there is no such mixin.

Implementation

Future<MixinDeclaration?> getMixinDeclaration(MixinFragment fragment) async {
  var result = await sessionHelper.getFragmentDeclaration(fragment);
  var node = result?.node;
  if (node is MixinDeclaration) {
    return node;
  }
  return null;
}