예제 #1
0
        public XmlElement Visit(ReturnParseNode rpn)
        {
            var el = makeNode(rpn, "return");

            addProperty(el, "returnvalue", rpn.ReturnValue);
            return(el);
        }
예제 #2
0
 /// <inheritdoc/>
 public virtual ParseNode Visit(ReturnParseNode rpn)
 {
     if (rpn.ReturnValue != null)
     {
         rpn.ReturnValue.Visit(this);
     }
     return(rpn);
 }
예제 #3
0
 /// <inheritdoc />
 public Node Visit(ReturnParseNode rpn)
 {
     if (rpn.ReturnValue == null)
     {
         return(new ReturnNode(rpn.Token, rpn,
                               null));
     }
     return(new ReturnNode(rpn.Token, rpn,
                           rpn.ReturnValue.Visit(this)));
 }