Function 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.
Parameters
Name | Description |
---|---|
text | The text to append to the node |
loc | Location in the source file |