anchor.diff:    }
   
     void _validateRefPropertyAccess(PropertyAccess node) {
  -    DartType targetType = node.target.staticType;
  +    DartType targetType = node.target?.staticType;
       if (!_isValidFfiNativeType(targetType, false, true)) {
         final AstNode errorNode = node;
         _errorReporter.reportErrorForNode(
  
positive.code: 
    @override
    void visitFunctionExpressionInvocation(FunctionExpressionInvocation node) {
      Element element = node.staticElement;
      if (element is MethodElement) {
        Element enclosingElement = element.enclosingElement;
        if (enclosingElement is ExtensionElement) {
          if (_isAllocatorExtension(enclosingElement) &&
              element.name == _allocateExtensionMethodName) {
  
negative.code: 
    @override
    void visitIndexExpression(IndexExpression node) {
      Element element = node?.staticElement;
      Element enclosingElement = element?.enclosingElement;
      if (enclosingElement is ExtensionElement) {
        if (_isNativeStructPointerExtension(enclosingElement)) {
  