anchor.diff:      } else if (element == null &&
           (identifier.inSetterContext() ||
               identifier.parent is CommentReference)) {
  -      Identifier setterId =
  -          SyntheticIdentifier('${identifier.name}=', identifier);
  +      Identifier setterId = SyntheticIdentifier('${identifier.name}=');
         element = _resolver.nameScope.lookup(setterId, _definingLibrary);
       }
       if (element == null) {
  
positive.code:  * AST when the parser could not distinguish between a method invocation and an
   * invocation of a top-level function imported with a prefix.
   */
  class SyntheticIdentifier extends IdentifierImpl {
    /**
     * The name of the synthetic identifier.
     */
    @override
    final String name;
  
    /**
     * The identifier to be highlighted in case of an error
     */
    final Identifier targetIdentifier;
  
    /**
     * Initialize a newly created synthetic identifier to have the given [name]
     * and [targetIdentifier].
     */
    SyntheticIdentifier(this.name, this.targetIdentifier);
  
    @override
    Token get beginToken => null;
  
    @override
    Iterable<SyntacticEntity> get childEntities {
      // Should never be called, since a SyntheticIdentifier never appears in the
      // AST--it is just used for lookup.
      assert(false);
      return ChildEntities();
    }
  
    @override
    Token get endToken => null;
  
    @override
    int get length => targetIdentifier.length;
  
    @override
    int get offset => targetIdentifier.offset;
  
    @override
    Precedence get precedence => Precedence.primary;
  
    @override
    Element get staticElement => null;
  
    @override
    E accept<E>(AstVisitor<E> visitor) => null;
  
    @override
    void visitChildren(AstVisitor visitor) {}
  }
  
  /// Helper for resolving properties (getters, setters, or methods).
  
negative.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'package:analyzer/dart/ast/ast.dart';
  import 'package:analyzer/dart/ast/token.dart';
  import 'package:analyzer/dart/ast/visitor.dart';
  import 'package:analyzer/dart/element/element.dart';
  