anchor.diff:      expect(result.errors, isNotEmpty);
   
       PropertyAccessorElement objectHashCode =
  -        typeProvider.objectType.getGetter('hashCode');
  +        objectElement.getGetter('hashCode');
       TopLevelVariableElement foo = _getTopLevelVariable(result, 'foo');
   
       List<Statement> statements = _getMainStatements(result);
  
positive.code: 
      {
        PrefixedIdentifier prefixed = propertyAccess.target;
        expect(prefixed.staticElement, same(objectHashCode));
        expect(prefixed.staticType, typeProvider.intType);
  
        SimpleIdentifier prefix = prefixed.prefix;
        expect(prefix.staticElement, same(foo.getter));
        expect(prefix.staticType, typeProvider.objectType);
  
        SimpleIdentifier identifier = prefixed.identifier;
        expect(identifier.staticElement, same(objectHashCode));
        expect(identifier.staticType, typeProvider.intType);
      }
  
      SimpleIdentifier property = propertyAccess.propertyName;
  
negative.code:     var invocation = findNode.methodInvocation('codeUnitAt');
      assertType(invocation, 'int');
      assertInvokeType(invocation, 'int Function(int)');
      assertElement(
        invocation.methodName,
        elementMatcher(
          stringElement.getMethod('codeUnitAt'),
          isLegacy: isNullSafetySdkAndLegacyLibrary,
        ),
      );
  
      var aRef = invocation.target;
      assertElement(aRef, findElement.topGet('a'));
  