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 98f7992ff4
commit 254c3d7de4
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -167,7 +167,7 @@ struct ParseContext : public GenericParseContext
* 'pn' if they are in the scope of 'pn'. * 'pn' if they are in the scope of 'pn'.
* + Pre-existing placeholders in the scope of 'pn' have been removed. * + 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. * Let definitions may shadow same-named definitions in enclosing scopes.