anchor.diff:          }
         } else if (element is PrefixElement) {
           // Possible cases: p.C() or p.C<>()
  -        Identifier identifier = astFactory.prefixedIdentifier(
  -            astFactory.simpleIdentifier(target.token),
  -            null,
  -            astFactory.simpleIdentifier(methodName.token));
  -        Element prefixedElement = nameScope.lookupIdentifier(identifier);
  +        Element prefixedElement = element.scope.lookup2(methodName.name).getter;
           if (prefixedElement is ClassElement) {
             TypeName typeName = astFactory.typeName(
                 astFactory.prefixedIdentifier(target, node.operator, methodName),
  
positive.code:       }
      } else if (target is PrefixedIdentifier) {
        // Possible case: p.C.n()
        Element prefixElement = nameScope.lookupIdentifier(target.prefix);
        target.prefix.staticElement = prefixElement;
        if (prefixElement is PrefixElement) {
          Element element = nameScope.lookupIdentifier(target);
          if (element is ClassElement) {
            var constructorElement = element.getNamedConstructor(methodName.name);
            if (constructorElement != null) {
  
negative.code: import 'package:analyzer/dart/element/scope.dart';
  import 'package:analyzer/error/listener.dart';
  import 'package:analyzer/src/dart/ast/utilities.dart';
  import 'package:analyzer/src/error/codes.dart';
  
  /// Helper for [MethodInvocation]s into [InstanceCreationExpression] to support
  