forked from qt-creator/qt-creator
Revert "Split Objective-C keyword parsing to handle the '@' separately."
This reverts commit 2a59d2ae0c.
This commit is contained in:
@@ -1771,8 +1771,6 @@ bool ASTMatcher::match(StringLiteralAST *node, StringLiteralAST *pattern)
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->literal_token = node->literal_token;
|
||||
|
||||
if (! pattern->next)
|
||||
@@ -2065,8 +2063,6 @@ bool ASTMatcher::match(ObjCClassForwardDeclarationAST *node, ObjCClassForwardDec
|
||||
else if (! AST::match(node->attribute_list, pattern->attribute_list, this))
|
||||
return false;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->class_token = node->class_token;
|
||||
|
||||
if (! pattern->identifier_list)
|
||||
@@ -2089,8 +2085,6 @@ bool ASTMatcher::match(ObjCClassDeclarationAST *node, ObjCClassDeclarationAST *p
|
||||
else if (! AST::match(node->attribute_list, pattern->attribute_list, this))
|
||||
return false;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->interface_token = node->interface_token;
|
||||
|
||||
pattern->implementation_token = node->implementation_token;
|
||||
@@ -2131,8 +2125,6 @@ bool ASTMatcher::match(ObjCClassDeclarationAST *node, ObjCClassDeclarationAST *p
|
||||
else if (! AST::match(node->member_declaration_list, pattern->member_declaration_list, this))
|
||||
return false;
|
||||
|
||||
pattern->ending_at_token = node->ending_at_token;
|
||||
|
||||
pattern->end_token = node->end_token;
|
||||
|
||||
return true;
|
||||
@@ -2148,8 +2140,6 @@ bool ASTMatcher::match(ObjCProtocolForwardDeclarationAST *node, ObjCProtocolForw
|
||||
else if (! AST::match(node->attribute_list, pattern->attribute_list, this))
|
||||
return false;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->protocol_token = node->protocol_token;
|
||||
|
||||
if (! pattern->identifier_list)
|
||||
@@ -2172,8 +2162,6 @@ bool ASTMatcher::match(ObjCProtocolDeclarationAST *node, ObjCProtocolDeclaration
|
||||
else if (! AST::match(node->attribute_list, pattern->attribute_list, this))
|
||||
return false;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->protocol_token = node->protocol_token;
|
||||
|
||||
if (! pattern->name)
|
||||
@@ -2191,8 +2179,6 @@ bool ASTMatcher::match(ObjCProtocolDeclarationAST *node, ObjCProtocolDeclaration
|
||||
else if (! AST::match(node->member_declaration_list, pattern->member_declaration_list, this))
|
||||
return false;
|
||||
|
||||
pattern->ending_at_token = node->ending_at_token;
|
||||
|
||||
pattern->end_token = node->end_token;
|
||||
|
||||
return true;
|
||||
@@ -2260,8 +2246,6 @@ bool ASTMatcher::match(ObjCProtocolExpressionAST *node, ObjCProtocolExpressionAS
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->protocol_token = node->protocol_token;
|
||||
|
||||
pattern->lparen_token = node->lparen_token;
|
||||
@@ -2297,8 +2281,6 @@ bool ASTMatcher::match(ObjCEncodeExpressionAST *node, ObjCEncodeExpressionAST *p
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->encode_token = node->encode_token;
|
||||
|
||||
if (! pattern->type_name)
|
||||
@@ -2349,8 +2331,6 @@ bool ASTMatcher::match(ObjCSelectorExpressionAST *node, ObjCSelectorExpressionAS
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->selector_token = node->selector_token;
|
||||
|
||||
pattern->lparen_token = node->lparen_token;
|
||||
@@ -2387,8 +2367,6 @@ bool ASTMatcher::match(ObjCVisibilityDeclarationAST *node, ObjCVisibilityDeclara
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->visibility_token = node->visibility_token;
|
||||
|
||||
return true;
|
||||
@@ -2421,8 +2399,6 @@ bool ASTMatcher::match(ObjCPropertyDeclarationAST *node, ObjCPropertyDeclaration
|
||||
else if (! AST::match(node->attribute_list, pattern->attribute_list, this))
|
||||
return false;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->property_token = node->property_token;
|
||||
|
||||
pattern->lparen_token = node->lparen_token;
|
||||
@@ -2611,8 +2587,6 @@ bool ASTMatcher::match(ObjCSynchronizedStatementAST *node, ObjCSynchronizedState
|
||||
(void) node;
|
||||
(void) pattern;
|
||||
|
||||
pattern->at_token = node->at_token;
|
||||
|
||||
pattern->synchronized_token = node->synchronized_token;
|
||||
|
||||
pattern->lparen_token = node->lparen_token;
|
||||
|
||||
Reference in New Issue
Block a user