Separate generic AST_IDENTIFIER and EXP_IDENTIFIER.

Use EXP_IDENTIFIER for the primary expression, and AST_IDENTIFIER for
non-expression uses.
This commit is contained in:
Tor Andersson
2014-02-10 15:44:40 +01:00
parent ab5236f243
commit e39e0bdcd1
4 changed files with 40 additions and 37 deletions

View File

@@ -7,11 +7,12 @@ enum js_AstType
{
AST_LIST,
AST_FUNDEC,
AST_IDENTIFIER,
AST_NUMBER,
AST_STRING,
AST_REGEXP,
EXP_IDENTIFIER,
EXP_NUMBER,
EXP_STRING,
EXP_REGEXP,
/* literals */
EXP_UNDEF, /* for array elisions */