anchor.diff:  ''', [
         error(CompileTimeErrorCode.UNDEFINED_IDENTIFIER, 11, 3),
       ]);
  -    _assertUnresolvedMethodInvocation('foo(0);');
  +
  +    var node = findNode.methodInvocation('foo(0);');
  +    if (isNullSafetyEnabled) {
  +      assertResolvedNodeText(node, r'''
  +MethodInvocation
  +  target: SimpleIdentifier
  +    token: bar
  +    staticElement: <null>
  +    staticType: dynamic
  +  operator: .
  +  methodName: SimpleIdentifier
  +    token: foo
  +    staticElement: <null>
  +    staticType: dynamic
  +  argumentList: ArgumentList
  +    leftParenthesis: (
  +    arguments
  +      IntegerLiteral
  +        literal: 0
  +        staticType: int
  +    rightParenthesis: )
  +  staticInvokeType: dynamic
  +  staticType: dynamic
  +''');
  +    } else {
  +      assertResolvedNodeText(node, r'''
  +MethodInvocation
  +  target: SimpleIdentifier
  +    token: bar
  +    staticElement: <null>
  +    staticType: dynamic
  +  operator: .
  +  methodName: SimpleIdentifier
  +    token: foo
  +    staticElement: <null>
  +    staticType: dynamic
  +  argumentList: ArgumentList
  +    leftParenthesis: (
  +    arguments
  +      IntegerLiteral
  +        literal: 0
  +        staticType: int*
  +    rightParenthesis: )
  +  staticInvokeType: dynamic
  +  staticType: dynamic
  +''');
  +    }
     }
   
     test_error_undefinedMethod_hasTarget_class() async {
  
positive.code: }
  ''');
  
      var invocation = findNode.functionExpressionInvocation('foo(0);');
      assertElementNull(invocation);
      assertInvokeType(invocation, 'double Function(int)');
      assertType(invocation, 'double');
  
      var foo = invocation.function as SimpleIdentifier;
      assertElement(foo, findElement.topGet('foo'));
      assertType(foo, 'double Function(int)');
    }
  
    test_noReceiver_topVariable() async {
  
negative.code: ''', [
        error(CompileTimeErrorCode.UNDEFINED_FUNCTION, 45, 3),
      ]);
  
      var node = findNode.methodInvocation('foo(0);');
      if (isNullSafetyEnabled) {
        assertResolvedNodeText(node, r'''
  MethodInvocation
    target: SimpleIdentifier
      token: math
      staticElement: self::@prefix::math
      staticType: null
    operator: .
    methodName: SimpleIdentifier
      token: foo
      staticElement: <null>
      staticType: dynamic
    argumentList: ArgumentList
      leftParenthesis: (
      arguments
        IntegerLiteral
          literal: 0
          staticType: int
      rightParenthesis: )
    staticInvokeType: dynamic
    staticType: dynamic
  ''');
      } else {
        assertResolvedNodeText(node, r'''
  MethodInvocation
    target: SimpleIdentifier
      token: math
      staticElement: self::@prefix::math
      staticType: null
    operator: .
    methodName: SimpleIdentifier
      token: foo
      staticElement: <null>
      staticType: dynamic
    argumentList: ArgumentList
      leftParenthesis: (
      arguments
        IntegerLiteral
          literal: 0
          staticType: int*
      rightParenthesis: )
    staticInvokeType: dynamic
    staticType: dynamic
  ''');
      }
    }
  
    test_error_undefinedIdentifier_target() async {
  