Exemple #1
0
        public override bool Visit <T, TFact>(AddFactConsequence <T, TFact> consequence,
                                              Func <SemanticModelVisitor, bool> next)
        {
            _conditionCompiler.MatchJoinNode <T>(joinNode =>
            {
                AddFactProductionNode <T, TFact> node = _configurator.AddFact(consequence.FactFactory);
                joinNode.AddActivation(node);
            });

            return(base.Visit(consequence, next));
        }
Exemple #2
0
        public override bool Visit <T, TFact>(AddFactProductionNode <T, TFact> node, Func <RuntimeModelVisitor, bool> next)
        {
            _current = _vertices.Get(node.Id,
                                     id =>
                                     new Vertex(typeof(AddFactProductionNode <,>), typeof(TFact),
                                                typeof(T).Tokens() + " \x279C " + typeof(TFact).GetShortName()));

            if (_stack.Count > 0)
            {
                _edges.Add(new Edge(_stack.Peek(), _current, _current.TargetType.Name));
            }

            return(base.Visit(node, next));
        }
Exemple #3
0
        public override bool Visit <T, TFact>(AddFactProductionNode <T, TFact> node, Func <RuntimeModelVisitor, bool> next)
        {
            Append("AddFactProductionNode[{0}] => {1}", Tokens <T>(), typeof(TFact));

            return(base.Visit(node, next));
        }