DartdocOptionContext.fromElement constructor
DartdocOptionContext.fromElement(
- DartdocOptionSet optionSet,
- LibraryElement libraryElement,
- ResourceProvider resourceProvider
Build a DartdocOptionContext from an analyzer element (using its source location).
Implementation
factory DartdocOptionContext.fromElement(DartdocOptionSet optionSet,
LibraryElement libraryElement, ResourceProvider resourceProvider) {
return DartdocOptionContext(
optionSet,
resourceProvider.getFile(libraryElement.source.fullName),
resourceProvider);
}