Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c00e3018
Commit
c00e3018
authored
Feb 05, 2009
by
Roberto Raggi
Committed by
Roberto Raggi
Feb 05, 2009
Browse files
Fixes: Parsing objc method definitions.
parent
f9737ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
c00e3018
...
...
@@ -3744,6 +3744,42 @@ bool Parser::parseObjCImplementation(DeclarationAST *&)
}
parseObjClassInstanceVariables
();
parseObjCMethodDefinitionList
();
return
true
;
}
bool
Parser
::
parseObjCMethodDefinitionList
()
{
while
(
LA
()
&&
LA
()
!=
T_AT_END
)
{
unsigned
start
=
cursor
();
switch
(
LA
())
{
case
T_PLUS
:
case
T_MINUS
:
parseObjCMethodDefinition
();
if
(
start
==
cursor
())
consumeToken
();
break
;
default:
// ### warning message
consumeToken
();
break
;
}
// switch
}
return
true
;
}
bool
Parser
::
parseObjCMethodDefinition
()
{
if
(
LA
()
!=
T_MINUS
&&
LA
()
!=
T_PLUS
)
return
false
;
parseObjCMethodSignature
();
StatementAST
*
function_body
=
0
;
parseFunctionBody
(
function_body
);
return
true
;
}
...
...
src/shared/cplusplus/Parser.h
View file @
c00e3018
...
...
@@ -230,6 +230,8 @@ public:
bool
parseObjCMessageReceiver
();
bool
parseObjCMessageArguments
();
bool
parseObjCSelectorArgs
();
bool
parseObjCMethodDefinitionList
();
bool
parseObjCMethodDefinition
();
bool
parseObjCProtocolRefs
();
bool
parseObjClassInstanceVariables
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment