Class Tag

Inherits from

  • Object (base class)

Constructors

Name Description
this
this
this

Fields

Name Type Description
location Location
values std.variant.VariantN!(32L,bool,string,dchar,int,long,float,double,real,std.datetime.Date,sdlang.token.DateTimeFrac,std.datetime.SysTime,sdlang.token.DateTimeFracUnknownZone,core.time.Duration,ubyte[],)[]

Properties

Name Type Description
all [get] Tag.NamespaceAccess Access all attributes and tags regardless of namespace.
attributes [get] sdlang.ast.Tag.__T11MemberRangeTC6sdlang3ast9AttributeVAyaa13_616c6c41747472696275746573VAyaa17_617474726962757465496e646963696573VAyaa11_5f61747472696275746573Z.MemberRange Access all attributes that don't have a namespace
fullName [get] string This tag's name, including namespace if one exists.
maybe [get] Tag.MaybeAccess Access 'attributes', 'tags', 'namespaces' and 'all' like normal,
name [get] string Not including namespace. Use 'fullName' if you want the namespace included.
name [set] string Not the most efficient, but it works.
namespace [set] string Not particularly efficient, but it works.
namespace [get] string
namespaces [get] Tag.NamespaceRange Access all namespaces in this tag, and the attributes/tags within them.
parent [get] Tag Get parent tag. To set a parent, attach this Tag to its intended
tags [get] sdlang.ast.Tag.__T11MemberRangeTC6sdlang3ast3TagVAyaa7_616c6c54616773VAyaa11_746167496e646963696573VAyaa5_5f74616773Z.MemberRange Access all direct-child tags that don't have a namespace

Methods

Name Description
add Adds a Value, Attribute, Tag (or array of such) as a member/child of this Tag.
opEquals
remove Removes 'this' from its parent, if any. Returns 'this' for chaining.
toDebugString Not the most efficient, but it works.
toSDLDocument Treats 'this' as the root tag. Note that root tags cannot have
toSDLString Output this entire tag in SDL format. Does *not* treat 'this' as

Inner structs

Name Description
MaybeAccess
MemberRange
NamedMemberRange
NamespaceAccess
NamespaceRange

Aliases

Name Description
AttributeRange
TagRange

Authors

Copyright

License