DartdocOptionContext.fromContextElement constructor

DartdocOptionContext.fromContextElement(
  1. DartdocOptionContext optionContext,
  2. LibraryElement libraryElement,
  3. ResourceProvider resourceProvider
)

Build a DartdocOptionContext from an existing DartdocOptionContext and a new analyzer Element.

Implementation

factory DartdocOptionContext.fromContextElement(
  DartdocOptionContext optionContext,
  LibraryElement libraryElement,
  ResourceProvider resourceProvider,
) {
  return DartdocOptionContext.fromElement(
    optionContext.optionSet,
    libraryElement,
    resourceProvider,
  );
}