anchor.diff:        error(CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS, 66, 5),
       ]);
   
  -    var import = findElement.importFind('dart:math');
  -
  -    var invocation = findNode.methodInvocation('loadLibrary(1 + 2)');
  -    assertImportPrefix(invocation.target, import.prefix);
  -
  -    assertMethodInvocation(
  -      invocation,
  -      import.importedLibrary.loadLibraryFunction,
  -      'Future<dynamic> Function()',
  -    );
  -
  -    assertType(findNode.binary('1 + 2'), 'int');
  +    var node = findNode.methodInvocation('loadLibrary(1 + 2)');
  +    if (isNullSafetyEnabled) {
  +      assertResolvedNodeText(node, r'''
  +MethodInvocation
  +  target: SimpleIdentifier
  +    token: math
  +    staticElement: self::@prefix::math
  +    staticType: null
  +  operator: .
  +  methodName: SimpleIdentifier
  +    token: loadLibrary
  +    staticElement: loadLibrary@-1
  +    staticType: Future<dynamic> Function()
  +  argumentList: ArgumentList
  +    leftParenthesis: (
  +    arguments
  +      BinaryExpression
  +        leftOperand: IntegerLiteral
  +          literal: 1
  +          staticType: int
  +        operator: +
  +        rightOperand: IntegerLiteral
  +          literal: 2
  +          staticType: int
  +        staticElement: dart:core::@class::num::@method::+
  +        staticInvokeType: num Function(num)
  +        staticType: int
  +    rightParenthesis: )
  +  staticInvokeType: Future<dynamic> Function()
  +  staticType: Future<dynamic>
  +''');
  +    } else {
  +      assertResolvedNodeText(node, r'''
  +MethodInvocation
  +  target: SimpleIdentifier
  +    token: math
  +    staticElement: self::@prefix::math
  +    staticType: null
  +  operator: .
  +  methodName: SimpleIdentifier
  +    token: loadLibrary
  +    staticElement: FunctionMember
  +      base: loadLibrary@-1
  +      isLegacy: true
  +    staticType: Future<dynamic>* Function()*
  +  argumentList: ArgumentList
  +    leftParenthesis: (
  +    arguments
  +      BinaryExpression
  +        leftOperand: IntegerLiteral
  +          literal: 1
  +          staticType: int*
  +        operator: +
  +        rightOperand: IntegerLiteral
  +          literal: 2
  +          staticType: int*
  +        staticElement: MethodMember
  +          base: dart:core::@class::num::@method::+
  +          isLegacy: true
  +        staticInvokeType: num* Function(num*)*
  +        staticType: int*
  +    rightParenthesis: )
  +  staticInvokeType: Future<dynamic>* Function()*
  +  staticType: Future<dynamic>*
  +''');
  +    }
     }
   
     test_hasReceiver_dynamic_hash() async {
  
positive.code: }
  ''');
  
      assertTypeArgumentTypes(findNode.methodInvocation('f(),'), ['num']);
      assertTypeArgumentTypes(findNode.methodInvocation('f())'), ['num']);
    }
  
    test_clamp_double_double_double() async {
  
negative.code: }
  ''');
  
      var node = findNode.methodInvocation('foo(o)');
      assertResolvedNodeText(node, r'''
  MethodInvocation
    methodName: SimpleIdentifier
      token: foo
      staticElement: self::@function::foo
      staticType: void Function<T extends Object>(List<T?>)
    argumentList: ArgumentList
      leftParenthesis: (
      arguments
        SimpleIdentifier
          token: o
          staticElement: o@65
          staticType: List<void>
      rightParenthesis: )
    staticInvokeType: void Function(List<Object?>)
    staticType: void
    typeArgumentTypes
      Object
  ''');
    }
  }
  
  