/// <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(DefDeclarationNode n) { var el = makeNode(n, "def-declaration"); addProperty(el, "name", n.Name); addProperty(el, "value", n.Value); addProperty(el, "annotations", n.Annotations); addProperty(el, "type", n.Type); return(el); }