CodeTree represents a tree structure for whitespace-significant, indented code. Each line of code is parsed and the indentation level of the line is stored in Indent. The root node having Indent set to -1 contains child nodes that can contain child nodes themselves, recursively. Each line is saved without whitespace characters at the start of the string.
New returns a tree structure if you feed it with indentantion based source code.
Close sends the tree and all of its children back to the memory pool. The resources are therefore freed up and the tree object should not be used after the final Close() call anymore.