예제 #1
0
        public XmlElement Visit(ImportParseNode ipn)
        {
            var el = makeNode(ipn, "import");

            addProperty(el, "name", ipn.Name);
            addProperty(el, "path", ipn.Path);
            addProperty(el, "type", ipn.Type);
            return(el);
        }
예제 #2
0
        /// <inheritdoc />
        public Node Visit(ImportParseNode ipn)
        {
            Node type = null;

            if (ipn.Type != null)
            {
                type = ipn.Type.Visit(this);
            }
            return(new ImportNode(ipn.Token, ipn, type));
        }
예제 #3
0
 /// <inheritdoc/>
 public virtual ParseNode Visit(ImportParseNode ipn)
 {
     ipn.Path.Visit(this);
     ipn.Name.Visit(this);
     return(ipn);
 }