anchor.diff:          _errorHandlerVerifier =
               ErrorHandlerVerifier(_errorReporter, typeProvider, typeSystem),
           _nullSafeApiVerifier = NullSafeApiVerifier(_errorReporter, typeSystem),
  -        _workspacePackage = workspacePackage {
  +        _workspacePackage = workspacePackage,
  +        _linterContext = LinterContextImpl(
  +          [],
  +          LinterContextUnit(content, unit),
  +          declaredVariables,
  +          typeProvider,
  +          typeSystem,
  +          inheritanceManager,
  +          analysisOptions,
  +          workspacePackage,
  +        ) {
       _deprecatedVerifier.pushInDeprecatedValue(_currentLibrary.hasDeprecated);
       _inDoNotStoreMember = _currentLibrary.hasDoNotStore;
  -
  -    _linterContext = LinterContextImpl(
  -      [],
  -      LinterContextUnit(content, unit),
  -      declaredVariables,
  -      typeProvider,
  -      _typeSystem,
  -      _inheritanceManager,
  -      analysisOptions,
  -      _workspacePackage,
  -    );
       _invalidAccessVerifier._inTestDirectory = _linterContext.inTestDir(unit);
  -  }
  -
  -  bool get _inPublicPackageApi {
  -    return _workspacePackage != null &&
  -        _workspacePackage!.sourceIsInPublicApi(_currentLibrary.source);
     }
   
     @override
  
positive.code:   /// True if inference failures should be reported, otherwise false.
    final bool _strictInference;
  
    /// Create a new instance of the [BestPracticesVerifier].
    ///
    /// @param errorReporter the error reporter
    BestPracticesVerifier(
      this._errorReporter,
      TypeProviderImpl typeProvider,
  
negative.code:   final WorkspacePackage? _workspacePackage;
  
    /// The [LinterContext] used for possible const calculations.
    final LinterContext _linterContext;
  
    /// Is `true` if the library being analyzed is non-nullable by default.
    final bool _isNonNullableByDefault;
  