Exemplo n.º 1
0
 public static bool TryFindVariable(this NestedScope scope, string fullName, out Variable result)
 {
     return(scope.GetAspect <VariableSet>().TryFind(fullName, out result));
 }
Exemplo n.º 2
0
 public static VariableInfo FirstVarOfName(this NestedScope scope, string variableName, IErrorCache errorCache)
 {
     return(scope.GetAspect <VariableSet>().FirstVarOfName(variableName, errorCache));
 }
Exemplo n.º 3
0
 public static Variable FindVariable(this NestedScope scope, string fullName)
 {
     return(scope.GetAspect <VariableSet>().Find(fullName));
 }
Exemplo n.º 4
0
 public static bool TryFindVariable(this NestedScope scope, VariableRef refName, out Variable result)
 {
     return(scope.GetAspect <VariableSet>().TryFind(refName, out result));
 }
Exemplo n.º 5
0
 public static Variable FindVariable(this NestedScope scope, VariableRef refName)
 {
     return(scope.GetAspect <VariableSet>().Find(refName));
 }
Exemplo n.º 6
0
 public static IEnumerable <Variable> Variables(this NestedScope scope, bool recurse = true)
 {
     return(!recurse
         ? scope.GetAspect <VariableSet>()
         : scope.Flatten().SelectMany(s => s.GetAspect <VariableSet>()));
 }
Exemplo n.º 7
0
 public static NestedScope Store(this NestedScope scope, Variable variable)
 {
     scope.GetAspect <VariableSet>().Store(variable);
     return(scope);
 }