forked from qt-creator/qt-creator
Fixes for the ObjC AST. Now it should be complete.
This commit is contained in:
@@ -1997,7 +1997,10 @@ unsigned ObjCClassInterfaceDeclarationAST::lastToken() const
|
||||
|
||||
unsigned ObjCCategoryInterfaceDeclarationAST::firstToken() const
|
||||
{
|
||||
return interface_token;
|
||||
if (attributes)
|
||||
return attributes->firstToken();
|
||||
else
|
||||
return interface_token;
|
||||
}
|
||||
|
||||
unsigned ObjCCategoryInterfaceDeclarationAST::lastToken() const
|
||||
@@ -2319,6 +2322,32 @@ unsigned ObjCMethodPrototypeAST::lastToken() const
|
||||
return method_type_token + 1;
|
||||
}
|
||||
|
||||
unsigned ObjCMethodDeclarationAST::firstToken() const
|
||||
{
|
||||
return method_prototype->firstToken();
|
||||
}
|
||||
|
||||
unsigned ObjCMethodDeclarationAST::lastToken() const
|
||||
{
|
||||
if (semicolon_token)
|
||||
return semicolon_token + 1;
|
||||
else
|
||||
return method_prototype->lastToken();
|
||||
}
|
||||
|
||||
unsigned ObjCMethodDefinitionAST::firstToken() const
|
||||
{
|
||||
return method_prototype->firstToken();
|
||||
}
|
||||
|
||||
unsigned ObjCMethodDefinitionAST::lastToken() const
|
||||
{
|
||||
if (function_body)
|
||||
return function_body->lastToken();
|
||||
else
|
||||
return method_prototype->lastToken();
|
||||
}
|
||||
|
||||
unsigned ObjCClassImplementationAST::firstToken() const
|
||||
{
|
||||
return implementation_token;
|
||||
|
||||
Reference in New Issue
Block a user