libraryFor abstract method
Returns a resolved library representing the file defined in assetId.
- Throws NonLibraryAssetException if
assetIdis not a Dart library. - If the
assetIdhas syntax errors, andallowSyntaxErrorsis set tofalse(the default), throws a SyntaxErrorInAssetException.
Implementation
Future<LibraryElement> libraryFor(AssetId assetId,
{bool allowSyntaxErrors = false});