Lines Matching refs:scopes_
31 if (scopes_->current_var()->lookup(decl->id_->name_, SCOPE_LOCAL) == NULL) { in variable_exists()
43 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
44 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
56 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
57 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
82 decl->scope_id_ = string("v") + std::to_string(scopes_->current_var()->id_) + string("_"); in variable_add()
83 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
88 if (scopes_->current_state()->lookup(id->full_name(), SCOPE_LOCAL)) { in state_add()
98 scopes_->current_state()->add(state->id_->full_name(), state); in state_add()
99 state->scope_id_ = string("s") + std::to_string(scopes_->current_state()->id_) + string("_"); in state_add()
105 auto state = scopes_->current_state()->lookup(id1->full_name(), SCOPE_LOCAL); in state_add()
112 scopes_->current_state()->add(state->id_->full_name(), state); in state_add()
113 state->scope_id_ = string("s") + std::to_string(scopes_->current_state()->id_) + string("_"); in state_add()
129 if (scopes_->top_table()->lookup(decl->id_->name_, search_local) == NULL) { in table_exists()
144 scopes_->top_table()->add(id->name_, table); in table_add()
150 if (scopes_->top_struct()->lookup(type->name_, SCOPE_LOCAL) != NULL) { in struct_add()
170 scopes_->top_struct()->add(type->name_, struct_decl); in struct_add()
195 if (scopes_->top_func()->lookup(decl->id_->name_, SCOPE_LOCAL)) { in func_add()
199 auto cur_scope = scopes_->current_var(); in func_add()
200 scopes_->set_current(scope); in func_add()
206 scopes_->set_current(cur_scope); in func_add()
208 scopes_->top_func()->add(id->name_, decl); in func_add()