Example #1
0
        public override void BeginInit(ParseContext parseContext, bool raiseInitialized)
        {
            _queryScope = new QueryScope(
                parseContext.Compiler,
                parseContext.CurrentScope,
                RangeVariable,
                Span.Start);

            base.BeginInit(parseContext, raiseInitialized);
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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;
        }
Example #4
0
 public TransparentParameter(QueryScope scope, ParametersCompiled parent, RangeDeclaration identifier)
     : base(ParameterNamePrefix + Counter++, scope, identifier.Span)
 {
     Parent     = parent;
     Identifier = identifier.VariableName;
 }