Exemplo n.º 1
0
 protected ParameterScope(ParameterScopeLevel scopeLevel, ParameterScope parentScope)
 {
     ScopeLevel  = scopeLevel;
     ParentScope = parentScope;
     if (parentScope != null)
     {
         parentScope.RegisterChildScope(this);
     }
     ChildScopes = new List <ParameterScope>();
 }
Exemplo n.º 2
0
 public ParameterScope GetHigherScope(ParameterScopeLevel scopeLevel)
 {
     if (scopeLevel == ScopeLevel)
     {
         return(this);
     }
     if (ParentScope == null)
     {
         return(null);
     }
     return(ParentScope.GetHigherScope(scopeLevel));
 }
Exemplo n.º 3
0
 public ParameterScope GetFromHeirachyAtLevel(ParameterScopeLevel parameterScopeLevel)
 {
     return(callingHeirachy.Find(s => s.ScopeLevel == parameterScopeLevel));
 }