anchor.diff:      }
       // Ignore if qualified.
       var parent = node.parent;
  -    if (parent is PrefixedIdentifier && identical(parent.identifier, node)) {
  -      return;
  -    }
  -    if (parent is PropertyAccess && identical(parent.propertyName, node)) {
  -      return;
  -    }
  -    if (parent is MethodInvocation &&
  -        identical(parent.methodName, node) &&
  -        parent.realTarget != null) {
  -      return;
  -    }
       var scopeLookupResult = nameScope.lookup(node.name);
       node.scopeLookupResult = scopeLookupResult;
       // Ignore if it cannot be a reference to a local variable.
  
positive.code:   }
  
    @override
    void visitSimpleIdentifier(covariant SimpleIdentifierImpl node) {
      // Ignore if already resolved - declaration or type.
      if (node.inDeclarationContext()) {
  
negative.code:   }
  
    @override
    void visitMethodInvocation(MethodInvocation node) {
      // Only visit the method name if there's no real target (so this is an
      // unprefixed function invocation, outside a cascade).  This is the only
      // circumstance in which the method name is meant to be looked up in the
      // current scope.
      node.target?.accept(this);
      if (node.realTarget == null) {
        node.methodName.accept(this);
      }
      node.typeArguments?.accept(this);
      node.argumentList.accept(this);
    }
  
    @override
    void visitMixinDeclaration(MixinDeclaration node) {
      Scope outerScope = nameScope;
      try {
  