Exemplo n.º 1
0
        protected bool Visit <T>(JoinNode <T> node)
        {
            _lastNodeVertex = GetSink(node.GetHashCode(), () => "J", typeof(JoinNode <>), typeof(T));

            if (_vertices.ContainsKey(node.RightActivation.GetHashCode()))
            {
                Vertex sink = _vertices[node.RightActivation.GetHashCode()];

                _edges.Add(new Edge(sink, _lastNodeVertex, _lastNodeVertex.TargetType.Name));
            }

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

            return(true);
        }
Exemplo n.º 2
0
        protected bool Visit <T>(JoinNode <T> node)
        {
            Append("Junction<{0}>[{1}]", typeof(T).Name, node.GetHashCode());

            return(true);
        }