anchor.diff:    }
   
     void test_parseFunctionDeclaration_setter() {
  -    Comment comment = astFactory.documentationComment(new List<Token>(0));
  -    TypeName returnType =
  -        astFactory.typeName(astFactory.simpleIdentifier(null), null);
  -    createParser('set p(v) {}');
  -    FunctionDeclaration declaration = parser.parseFunctionDeclaration(
  -        commentAndMetadata(comment), null, returnType);
  +    createParser('/// Doc\nT set p(v) {}');
  +    FunctionDeclaration declaration = parseFullCompilationUnitMember();
       expectNotNullIfNoErrors(declaration);
       listener.assertNoErrors();
  -    expect(declaration.documentationComment, comment);
  -    expect(declaration.returnType, returnType);
  +    _expectCommentText(declaration.documentationComment, '/// Doc');
  +    expect((declaration.returnType as TypeName).name.name, 'T');
       expect(declaration.name, isNotNull);
       FunctionExpression expression = declaration.functionExpression;
       expect(expression, isNotNull);
  
positive.code: 
    void test_parseFunctionDeclaration_functionWithTypeParameters_comment() {
      enableGenericMethodComments = true;
      Comment comment = astFactory.documentationComment(new List<Token>(0));
      TypeName returnType =
          astFactory.typeName(astFactory.simpleIdentifier(null), null);
      createParser('f/*<E>*/() {}');
      FunctionDeclaration declaration = parser.parseFunctionDeclaration(
          commentAndMetadata(comment), null, returnType);
      expectNotNullIfNoErrors(declaration);
      listener.assertNoErrors();
      expect(declaration.documentationComment, comment);
      expect(declaration.returnType, returnType);
      expect(declaration.name, isNotNull);
      FunctionExpression expression = declaration.functionExpression;
      expect(expression, isNotNull);
  
negative.code:   }
  
    void test_parseInitializedIdentifierList_type() {
      createParser("/// Doc\nstatic T a = 1, b, c = 3;");
      FieldDeclaration declaration = parser.parseClassMember('C');
      expectNotNullIfNoErrors(declaration);
      listener.assertNoErrors();
      _expectCommentText(declaration.documentationComment, '/// Doc');
      VariableDeclarationList fields = declaration.fields;
      expect(fields, isNotNull);
      expect(fields.keyword, isNull);
      expect((fields.type as TypeName).name.name, 'T');
      expect(fields.variables, hasLength(3));
      expect(declaration.staticKeyword.lexeme, 'static');
      expect(declaration.semicolon, isNotNull);
    }
  
    void test_parseInitializedIdentifierList_var() {
      createParser('/// Doc\nstatic var a = 1, b, c = 3;');
      FieldDeclaration declaration = parser.parseClassMember('C');
      expectNotNullIfNoErrors(declaration);
      listener.assertNoErrors();
      _expectCommentText(declaration.documentationComment, '/// Doc');
      VariableDeclarationList fields = declaration.fields;
      expect(fields, isNotNull);
      expect(fields.keyword.lexeme, 'var');
      expect(fields.type, isNull);
      expect(fields.variables, hasLength(3));
      expect(declaration.staticKeyword.lexeme, 'static');
      expect(declaration.semicolon, isNotNull);
    }
  
  