Open sandboxFocus

Method GetText

GetText(bool)

Gets the text representation (i.e. the source code) of the current syntax node or token.

Declaration
public string GetText(bool normalized = false)
Parameters
Type Name Description
bool normalized

true if whitespace should be normalized, false if the original formatting should be preserved.

Returns
Type Description
string

The source code of the current syntax node.