diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-02 11:40:50 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-02 11:41:57 +0100 |
commit | fcf67d7d8e2d3edfe74132f9a96a2943ec23cce4 (patch) | |
tree | 0aade5ac2011ada04b4c41c69d1d6bcd52d6433c /src/shared/cplusplus/Parser.cpp | |
parent | 4bb0e85cfe22a97f1fe78b953baae19e37796bd6 (diff) | |
download | qt-creator-fcf67d7d8e2d3edfe74132f9a96a2943ec23cce4.tar.gz |
Added clone methods to the AST.
Diffstat (limited to 'src/shared/cplusplus/Parser.cpp')
-rw-r--r-- | src/shared/cplusplus/Parser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp index 7cb2c8ae86..556341d4ba 100644 --- a/src/shared/cplusplus/Parser.cpp +++ b/src/shared/cplusplus/Parser.cpp @@ -4753,12 +4753,12 @@ bool Parser::parseObjCMethodDefinitionList(DeclarationListAST *&node) ObjCSynthesizedPropertyListAST *last = new (_pool) ObjCSynthesizedPropertyListAST; ast->property_identifier_list = last; last->value = new (_pool) ObjCSynthesizedPropertyAST; - match(T_IDENTIFIER, &(last->value->property_identifier)); + match(T_IDENTIFIER, &(last->value->property_identifier_token)); if (LA() == T_EQUAL) { last->value->equals_token = consumeToken(); - match(T_IDENTIFIER, &(last->value->property_alias_identifier)); + match(T_IDENTIFIER, &(last->value->alias_identifier_token)); } while (LA() == T_COMMA) { @@ -4768,12 +4768,12 @@ bool Parser::parseObjCMethodDefinitionList(DeclarationListAST *&node) last = last->next; last->value = new (_pool) ObjCSynthesizedPropertyAST; - match(T_IDENTIFIER, &(last->value->property_identifier)); + match(T_IDENTIFIER, &(last->value->property_identifier_token)); if (LA() == T_EQUAL) { last->value->equals_token = consumeToken(); - match(T_IDENTIFIER, &(last->value->property_alias_identifier)); + match(T_IDENTIFIER, &(last->value->alias_identifier_token)); } } @@ -5179,7 +5179,7 @@ bool Parser::parseObjCTypeName(ObjCTypeNameAST *&node) ObjCTypeNameAST *ast = new (_pool) ObjCTypeNameAST; match(T_LPAREN, &(ast->lparen_token)); - parseObjCTypeQualifiers(ast->type_qualifier); + parseObjCTypeQualifiers(ast->type_qualifier_token); parseTypeId(ast->type_id); match(T_RPAREN, &(ast->rparen_token)); node = ast; |