Lines Matching refs:new_parent
811 void Scope::Snapshot::Reparent(DeclarationScope* new_parent) const { in Reparent()
812 DCHECK_EQ(new_parent, outer_scope_->inner_scope_); in Reparent()
813 DCHECK_EQ(new_parent->outer_scope_, outer_scope_); in Reparent()
814 DCHECK_EQ(new_parent, new_parent->GetClosureScope()); in Reparent()
815 DCHECK_NULL(new_parent->inner_scope_); in Reparent()
816 DCHECK_NULL(new_parent->unresolved_); in Reparent()
817 DCHECK(new_parent->locals_.is_empty()); in Reparent()
818 Scope* inner_scope = new_parent->sibling_; in Reparent()
822 inner_scope->outer_scope_ = new_parent; in Reparent()
823 DCHECK_NE(inner_scope, new_parent); in Reparent()
825 inner_scope->outer_scope_ = new_parent; in Reparent()
827 new_parent->inner_scope_ = new_parent->sibling_; in Reparent()
831 new_parent->sibling_ = top_inner_scope_; in Reparent()
840 new_parent->unresolved_ = outer_scope_->unresolved_; in Reparent()
850 new_parent->locals_.MoveTail(outer_closure->locals(), top_local_); in Reparent()
851 for (Variable* local : new_parent->locals_) { in Reparent()
854 DCHECK_NE(local->scope(), new_parent); in Reparent()
855 local->set_scope(new_parent); in Reparent()
858 new_parent->variables_.Add(new_parent->zone(), local); in Reparent()