public GeneratorScope(Generator generator, bool save, GeneratorScope parentScope) { Generator = generator; _save = save; ParentScope = parentScope; generator.Scopes.Push(this); }
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; }