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.

class Node
@safe nothrow
void
addText
(
string text
,
in ref Location loc
)

Parameters

text
Type: string

The text to append to the node

loc
Type: Location

Location in the source file

Meta