anchor.diff:  ''';
       addTestFile(content);
   
  -    AnalysisResult result = await driver.getResult(testFile);
  -    var typeProvider = result.unit.element.context.typeProvider;
  +    result = await driver.getResult(testFile);
   
       TopLevelVariableDeclaration myDeclaration = result.unit.declarations[0];
       VariableDeclaration myVariable = myDeclaration.variables.variables[0];
  
positive.code: ''';
      addTestFile(content);
  
      AnalysisResult result = await driver.getResult(testFile);
      CompilationUnit unit = result.unit;
      var typeProvider = unit.element.context.typeProvider;
  
  
negative.code:   foo.bar<int, double>(arg1, p2: arg2);
  }
  ''');
      result = await driver.getResult(testFile);
      expect(result.errors, isNotEmpty);
  
      TopLevelVariableElement foo = _getTopLevelVariable(result, 'foo');
  
      List<Statement> statements = _getMainStatements(result);
  