Constructs an ASTPrinter.
Increases/decreases indentation on construction/destruction.
Sets/restores indentation on construction/destruction.
Decreases/increases indentation on construction/destruction.
Increments the line number and returns the newline token.
When the emitted text is complete, the pointers in the tokens are updated to point to the correct text fragments. (Considering the text buffer might get relocated when appending to it.)
Returns the currentTplDecl member and nulls it.
Returns a Token for an Identifier.
Returns the current indentation as a token.
Starts the printer.
Returns the token kind for p.
Constructs a new Token with the given parameters and pushes to an array.
Returns the tokens as a list.
Writes a list of tokens.
Writes an expression, wrapped in parentheses if necessary.
Writes a comma-separated list of Expressions.
Writes a binary expression.
Writes a unary expression.
Writes str to the text buffer.
Writes the tokens between b and e (inclusive.)
Writes specification and/or default values.
Writes the template parameters and if-constraint of a TemplateDecl.
Writes the contents of a token to the text.
Returns a new token containing 'n' number of whitespace characters.
Returns a new token containing a single whitespace character.
True if the tokens should be built.
Set by a wrapping TemplateDecl.
The current indendation string.
The string used to increase the indentation level.
Current line number.
Provides a newline token (depends on the platform).
End pointer of the previous token (t.end).
The current whitespace string.
The pre-built tokens of the text (Lexer not required.)
The printed text.
Traverses a Node tree and constructs a string representation.