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