vibe.d beta banner
get vibe.d
0.7.30

Struct Attribute

A single node attribute.

struct Attribute;

Attributes are key-value pairs, where the value can either be empty (considered as a Boolean value of true), a string with optional string interpolations, or a D expression (stored as a single interpolation AttributeContent).

Fields

Fields

NameTypeDescription
contentsAttributeContent[]Value of the attribute
locLocationLocation in source file
namestringName of the attribute

Properties

Properties

NameTypeDescription
dup[get]AttributeCreates a copy of the attribute.

Methods

Methods

NameDescription
addContentsAppends a list of contents.
addTextAppends raw text to the attribute.
Authors
Copyright
License