ASTInformation

AST information that is needed by the formatter.

Members

Functions

cleanup
void cleanup()

Sorts the arrays so that binary search will work on them

Variables

arrayStartLocations
size_t[] arrayStartLocations;

Locations of start locations of array initializers

attributeDeclarationLines
size_t[] attributeDeclarationLines;

Lines containing attribute declarations

caseEndLocations
size_t[] caseEndLocations;

Case statement colon locations

conditionalStatementLocations
size_t[] conditionalStatementLocations;

Conditional statement locations

conditionalWithElseLocations
size_t[] conditionalWithElseLocations;

Conditional statements that have matching "else" statements

constraintLocations
size_t[] constraintLocations;

Locations of template constraint "if" tokens

contractLocations
size_t[] contractLocations;

Locations of "in" and "out" tokens that begin contracts

doubleNewlineLocations
size_t[] doubleNewlineLocations;

Locations of end braces for struct bodies

funLitEndLocations
size_t[] funLitEndLocations;

Closing braces of function literals

funLitStartLocations
size_t[] funLitStartLocations;

Opening braces of function literals

spaceAfterLocations
size_t[] spaceAfterLocations;

Locations of tokens where a space is needed (such as the '*' in a type)

structInitEndLocations
size_t[] structInitEndLocations;

Closing braces of struct initializers

structInitStartLocations
size_t[] structInitStartLocations;

Opening braces of struct initializers

unaryLocations
size_t[] unaryLocations;

Locations of unary operators

Meta