Example #1
0
        public void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            if (visitor.IsCompleted)
            {
                return;
            }

            visitor.VisitRuleNode(context, this);
        }
Example #2
0
        public virtual void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            if (visitor.IsCompleted)
            {
                return;
            }

            visitor.VisitAlphaMemoryNode(context, this);
        }
Example #3
0
        public override void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            if (visitor.IsCompleted)
            {
                return;
            }

            visitor.VisitSelectionNode(context, this);
        }
Example #4
0
        public void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            foreach (IRuleNode <T> node in _ruleNodes)
            {
                if (visitor.IsCompleted)
                {
                    return;
                }

                node.Accept(visitor, context);
            }
        }
Example #5
0
        public virtual void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            foreach (var node in _typeNodes.Values)
            {
                if (visitor.IsCompleted)
                {
                    return;
                }

                node.FactSink.Accept(visitor, context);
            }
        }
Example #6
0
        public virtual void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            if (visitor.IsCompleted)
            {
                return;
            }

            visitor.VisitBetaNode(context, this);

            if (_memoryNode.IsValueCreated)
            {
                _memoryNode.Value.Accept(visitor, context);
            }
        }
Example #7
0
        public virtual void Accept <TContext>(RuntimeVisitor <TContext> visitor, TContext context)
        {
            if (visitor.IsCompleted)
            {
                return;
            }

            visitor.VisitBetaMemoryNode(context, this);

            foreach (ITupleSink <T> sink in _sinks)
            {
                if (visitor.IsCompleted)
                {
                    return;
                }

                sink.Accept(visitor, context);
            }
        }