getDeclarationRef abstract method

DeclarationRef? getDeclarationRef(
  1. String identifier,
  2. Asset importingSrc, {
  3. String? importPrefix,
})

Gets a declaration reference for an identifier in an importing source.

This resolves an identifier to its declaration, handling imports and prefixes to find the correct element.

@param identifier The identifier to resolve @param importingSrc The source file containing the identifier @param importPrefix Optional import prefix for the identifier @return A reference to the declaration of the identifier

Implementation

DeclarationRef? getDeclarationRef(String identifier, Asset importingSrc, {String? importPrefix});