mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 925582 - Handlify ParseContext::define, r=terrence
--HG-- extra : rebase_source : 603d1010716d78c4fdc0b52285f02a69736de86b
This commit is contained in:
parent
6b1518a000
commit
e9a97cbf8b
@ -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));
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user