예제 #1
0
 public GeneratorScope(Generator generator, bool save, GeneratorScope parentScope)
 {
     Generator   = generator;
     _save       = save;
     ParentScope = parentScope;
     generator.Scopes.Push(this);
 }
예제 #2
0
 public ForLoopScope(string name, object start, object step, object limit, GeneratorScope scope) : base(scope.Generator, false, scope)
 {
     ParameterName = name;
     parameterKey  = ParameterBag.SetMany(this, start, step, limit);
 }
 public InstanceInitializerScope(Generator generator, Type instanceType, string instanceName, GeneratorScope parentScope, bool onlyProperyInitialization)
     : base(generator, false, parentScope)
 {
     InstanceType = instanceType;
     InstanceName = instanceName;
     _onlyProperyInitialization = onlyProperyInitialization;
 }