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
98f7992ff4
commit
254c3d7de4
@ -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));
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user