anchor.diff:    final LibraryElement _library;
     final WorkspacePackage? _workspacePackage;
   
  -  late final bool _inTemplateSource;
  +  final bool _inTemplateSource;
     late final bool _inTestDirectory;
   
     ClassElement? _enclosingClass;
   
     _InvalidAccessVerifier(
  -      this._errorReporter, this._library, this._workspacePackage) {
  -    var path = _library.source.fullName;
  -    _inTemplateSource = path.contains(_templateExtension);
  -  }
  +      this._errorReporter, this._library, this._workspacePackage)
  +      : _inTemplateSource =
  +            _library.source.fullName.contains(_templateExtension);
   
     /// Produces a hint if [identifier] is accessed from an invalid location.
     ///
  
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:           .map((FieldElement field) => '${element.name}.${field.name}');
      }
  
      Iterable<String> definedOrInheritedNonFinalInstanceFields(
          ClassElement element, HashSet<ClassElement> visited) {
        Iterable<String> nonFinalFields = [];
  