Bug 925582 - Handlify ParseContext::define, r=terrence

--HG--
extra : rebase_source : 603d1010716d78c4fdc0b52285f02a69736de86b
This commit is contained in:
Steve Fink 2013-10-11 22:02:24 -07:00
parent 6b1518a000
commit e9a97cbf8b
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ PushStatementPC(ParseContext<ParseHandler> *pc, StmtInfoPC *stmt, StmtType type)
template <>
bool
ParseContext<FullParseHandler>::define(TokenStream &ts,
PropertyName *name, ParseNode *pn, Definition::Kind kind)
HandlePropertyName name, ParseNode *pn, Definition::Kind kind)
{
JS_ASSERT(!pn->isUsed());
JS_ASSERT_IF(pn->isDefn(), pn->isPlaceholder());
@ -186,7 +186,7 @@ ParseContext<FullParseHandler>::define(TokenStream &ts,
template <>
bool
ParseContext<SyntaxParseHandler>::define(TokenStream &ts, PropertyName *name, Node pn,
ParseContext<SyntaxParseHandler>::define(TokenStream &ts, HandlePropertyName name, Node pn,
Definition::Kind kind)
{
JS_ASSERT(!decls_.lookupFirst(name));

View File

@ -167,7 +167,7 @@ struct ParseContext : public GenericParseContext
* 'pn' if they are in the scope of 'pn'.
* + Pre-existing placeholders in the scope of 'pn' have been removed.
*/
bool define(TokenStream &ts, PropertyName *name, Node pn, Definition::Kind);
bool define(TokenStream &ts, HandlePropertyName name, Node pn, Definition::Kind);
/*
* Let definitions may shadow same-named definitions in enclosing scopes.