public void __enter__() { _old = _var_scope_store.current_scope; if (_scope != null) { _var_scope_store.open_variable_scope(_new_name); variable_scope_object = _cached_variable_scope_object; } else { _new_name = string.IsNullOrEmpty(_old.name) ? _name : _old.name + "/" + _name; _reuse = _reuse || _old.resue; string name_scope = _old_name_scope == null ? _name : _old_name_scope; variable_scope_object = new VariableScope(_reuse, name: _new_name, name_scope: name_scope); _var_scope_store.open_variable_scope(_new_name); } _var_scope_store.current_scope = variable_scope_object; }
public void __enter__() { _old = _var_scope_store.current_scope; if (_scope != null) { _var_scope_store.open_variable_scope(_new_name); _old_subscopes = _var_scope_store.variable_scopes_count.ToDictionary(kv => kv.Key, kv => kv.Value); variable_scope_object = _cached_variable_scope_object; } else { _new_name = string.IsNullOrEmpty(_old.name) ? _name : _old.name + "/" + _name; _reuse = _reuse || _old.resue; string name_scope = _old_name_scope == null ? _name : _old_name_scope; variable_scope_object = new VariableScope(_reuse, name: _new_name, name_scope: name_scope); _var_scope_store.open_variable_scope(_new_name); } _var_scope_store.current_scope = variable_scope_object; _last_variable_scope_object = variable_scope_object; }