implement some todo's: invoke the actions module for identifiers leading

expressions in stmt contexts.

llvm-svn: 39112
This commit is contained in:
Chris Lattner 2006-11-04 19:14:32 +00:00
parent 882f788ef4
commit eb2feefb46
1 changed files with 6 additions and 4 deletions

View File

@ -202,8 +202,9 @@ ParseExpressionWithLeadingIdentifier(const LexerToken &Tok) {
// We know that 'Tok' must correspond to this production:
// primary-expression: identifier
// TODO: Pass 'Tok' to the action.
ExprResult Res = ExprResult(false);
// Let the actions module handle the identifier.
ExprResult Res = Actions.ParseSimplePrimaryExpr(Tok.getLocation(),
Tok.getKind());
// Because we have to parse an entire cast-expression before starting the
// ParseRHSOfBinaryExpression method (which parses any trailing binops), we
@ -231,8 +232,9 @@ ParseAssignmentExprWithLeadingIdentifier(const LexerToken &Tok) {
// We know that 'Tok' must correspond to this production:
// primary-expression: identifier
// TODO: Pass 'Tok' to the action.
ExprResult Res = ExprResult(false);
// Let the actions module handle the identifier.
ExprResult Res = Actions.ParseSimplePrimaryExpr(Tok.getLocation(),
Tok.getKind());
// Because we have to parse an entire cast-expression before starting the
// ParseRHSOfBinaryExpression method (which parses any trailing binops), we