anchor.diff:    /// is deprecated.
     bool _inDeprecatedMember;
   
  +  /// A flag indicating whether a surrounding member is annotated as
  +  /// `@doNotStore`.
  +  bool _inDoNotStoreMember;
  +
     /// The error reporter by which errors will be reported.
     final ErrorReporter _errorReporter;
   
  
positive.code:   }
  
    void _checkForReturnOfDoNotStore(Expression expression) {
      var element = _getElement(expression);
      if (element != null && element.hasOrInheritsDoNotStore) {
        var parent = expression.thisOrAncestorMatching(
            (e) => e is FunctionDeclaration || e is MethodDeclaration);
        if (parent is Declaration && !parent.declaredElement.hasDoNotStore) {
          _errorReporter.reportErrorForNode(
            HintCode.RETURN_OF_DO_NOT_STORE,
            expression,
            [element.name, parent.declaredElement.displayName],
          );
        }
      }
    }
  
  
negative.code:       super.visitMethodDeclaration(node);
      } finally {
        _inDeprecatedMember = wasInDeprecatedMember;
        _inDoNotStoreMember = wasInDoNotStoreMember;
      }
    }
  
  