public override void BeginInit(ParseContext parseContext, bool raiseInitialized) { _queryScope = new QueryScope( parseContext.Compiler, parseContext.CurrentScope, RangeVariable, Span.Start); base.BeginInit(parseContext, raiseInitialized); }
public override void BeginInit(ParseContext parseContext, bool raiseInitialized) { base.BeginInit(parseContext, false); if (_queryScope == null) { _queryScope = new QueryScope( parseContext.Compiler, parseContext.CurrentScope, Span.Start); } if (Scope == null) { Scope = _queryScope.TopLevel; } parseContext.CurrentScope = _queryScope; if (raiseInitialized) { OnInitialized(); } }
public override void BeginInit(ParseContext parseContext, bool raiseInitialized) { base.BeginInit(parseContext, raiseInitialized); if (Scope == null) { Scope = new QueryScope( parseContext.Compiler, parseContext.CurrentScope, RangeVariable, Span.Start); } if (Initializer.Scope == null) { Initializer.Scope = new QueryScope( parseContext.Compiler, parseContext.CurrentScope, Initializer.RangeVariable, Initializer.Span.Start); } parseContext.CurrentScope = Scope; }
public TransparentParameter(QueryScope scope, ParametersCompiled parent, RangeDeclaration identifier) : base(ParameterNamePrefix + Counter++, scope, identifier.Span) { Parent = parent; Identifier = identifier.VariableName; }