Lines Matching defs:parent
778 ModuleScope* NewModuleScope(DeclarationScope* parent) const {
779 return zone()->template New<ModuleScope>(parent, ast_value_factory());
782 DeclarationScope* NewEvalScope(Scope* parent) const {
783 return zone()->template New<DeclarationScope>(zone(), parent, EVAL_SCOPE);
786 ClassScope* NewClassScope(Scope* parent, bool is_anonymous) const {
787 return zone()->template New<ClassScope>(zone(), parent, is_anonymous);
801 // should automatically use scope() as parent, and be fine with
803 Scope* NewScopeWithParent(Scope* parent, ScopeType scope_type) const {
809 DCHECK_NOT_NULL(parent);
810 return zone()->template New<Scope>(zone(), parent, scope_type);
6022 // Create an inner block scope which will be the parent scope of scopes