vibe.d beta banner
get vibe.d
0.8.0

Asynchronous I/O that doesn’t get in your way, written in D

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).

Constructors

Constructors

NameDescription
this

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.
exprCreates a new attribute with an expression based value.
textCreates a new attribute with a static text value.
Authors
Copyright
License