vibe.d beta banner
get vibe.d
0.7.30

Struct Attribute

A single node 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

Name Type Description
contents AttributeContent[] Value of the attribute
loc Location Location in source file
name string Name of the attribute

Properties

Name Type Description
dup [get] Attribute Creates a copy of the attribute.

Methods

Name Description
addContents Appends a list of contents.
addText Appends raw text to the attribute.
Authors
Copyright
License