/// <inheritdoc /> public Node Visit(DefDeclarationParseNode vdpn) { Node val = null; Node type = null; if (vdpn.Value != null) { val = vdpn.Value.Visit(this); } if (vdpn.Type != null) { type = vdpn.Type.Visit(this); } var ret = new DefDeclarationNode(vdpn.Token, vdpn, val, type); addAnnotations(vdpn.Annotations, ret.Annotations); if (vdpn.Annotations != null && vdpn.Annotations.HasAnnotation("public")) { ret.Public = true; } ret.Public = (vdpn.Annotations != null && (vdpn.Annotations.HasAnnotation("public") || vdpn.Annotations.HasAnnotation("readable"))); return(ret); }
public XmlElement Visit(DefDeclarationParseNode vdpn) { var el = makeNode(vdpn, "def-declaration"); addProperty(el, "name", vdpn.Name); addProperty(el, "type", vdpn.Type); addProperty(el, "value", vdpn.Value); return(el); }
/// <inheritdoc/> public virtual ParseNode Visit(DefDeclarationParseNode vdpn) { vdpn.Name.Visit(this); if (vdpn.Value != null) { vdpn.Value.Visit(this); } if (vdpn.Type != null) { vdpn.Type.Visit(this); } if (vdpn.Annotations != null) { vdpn.Annotations.Visit(this); } return(vdpn); }