protected ParameterScope(ParameterScopeLevel scopeLevel, ParameterScope parentScope) { ScopeLevel = scopeLevel; ParentScope = parentScope; if (parentScope != null) { parentScope.RegisterChildScope(this); } ChildScopes = new List <ParameterScope>(); }
public void SetParentScope(ParameterScope scope) { // TECH DEBT - unregister previous parent ParentScope = scope; scope.RegisterChildScope(this); }