DartdocOptionContext constructor

DartdocOptionContext(
  1. DartdocOptionSet optionSet,
  2. Resource contextLocation,
  3. ResourceProvider resourceProvider
)

Implementation

DartdocOptionContext(this.optionSet, Resource contextLocation,
    ResourceProvider resourceProvider) {
  assert(contextLocation != null);
  context = resourceProvider.getFolder(resourceProvider.pathContext
      .canonicalize(contextLocation is File
          ? contextLocation.parent2.path
          : contextLocation.path));
}