ReflectableReader.noLinking constructor

  1. @visibleForTesting
const ReflectableReader.noLinking({
  1. DependencyReader dependencyReader = const DependencyReader(),
  2. String outputExtension = _defaultOutputExtension,
  3. bool recordComponentFactories = true,
  4. bool recordInjectableFactories = true,
})

Always emits an empty ReflectableOutput.urlsNeedingInitReflector.

Useful for tests that do not want to try emulating a complete build.

Implementation

@visibleForTesting
const ReflectableReader.noLinking({
  this.dependencyReader = const DependencyReader(),
  this.outputExtension = _defaultOutputExtension,
  this.recordComponentFactories = true,
  this.recordInjectableFactories = true,
})  : hasInput = _nullHasInput,
      isLibrary = _nullIsLibrary;