Node.addText

Adds a piece of text to the node's contents.

If the node already has some content and the last piece of content is also text, with a matching location, the text will be appended to that NodeContent's value. Otherwise, a new NodeContent will be appended.

struct Node
@safe nothrow
void
addText
(
string text
,)

Parameters

text string

The text to append to the node

loc Location

Location in the source file

Meta