anchor.diff:  }
   ''';
       addTestFile(content);
  -    AnalysisResult result = await driver.getResult(testFile);
  +    result = await driver.getResult(testFile);
   
       List<Statement> statements = _getMainStatements(result);
   
  
positive.code:   factory B.two(double b) = A.named;
  }
  ''');
      AnalysisResult result = await driver.getResult(testFile);
      expect(result.errors, isEmpty);
  
      ClassDeclaration aNode = result.unit.declarations[0];
  
negative.code: ''';
      addTestFile(content);
  
      result = await driver.getResult(testFile);
      CompilationUnit unit = result.unit;
  
      var typeProvider = unit.element.context.typeProvider;
  