Commit 26560ca9 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Parse objc encode expressions.

parent fa5b8508
......@@ -2580,7 +2580,7 @@ bool Parser::parseObjCExpression(ExpressionAST *&node)
{
switch (LA()) {
case T_AT_ENCODE:
break;
return parseObjCEncodeExpression(node);
case T_AT_PROTOCOL:
break;
......@@ -2600,6 +2600,16 @@ bool Parser::parseObjCExpression(ExpressionAST *&node)
return false;
}
bool Parser::parseObjCEncodeExpression(ExpressionAST *&)
{
if (LA() != T_AT_ENCODE)
return false;
/*unsigned encode_token = */ consumeToken();
parseObjCTypeName();
return true;
}
bool Parser::parseNameId(NameAST *&name)
{
unsigned start = cursor();
......
......@@ -218,6 +218,8 @@ public:
bool parseObjCProtocol(DeclarationAST *&node,
SpecifierAST *attributes = 0);
bool parseObjCEncodeExpression(ExpressionAST *&node);
bool parseObjCProtocolRefs();
bool parseObjClassInstanceVariables();
bool parseObjCInterfaceMemberDeclaration();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment