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

atAttributeStartLocations
size_t[] atAttributeStartLocations;

Lines containing attribute declarations that can be followed by a new line

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

constructorDestructorLocations
size_t[] constructorDestructorLocations;

Locations of constructor/destructor "this" 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

sharedStaticConstructorDestructorLocations
size_t[] sharedStaticConstructorDestructorLocations;

Locations of constructor/destructor "shared" tokens ?

spaceAfterLocations
size_t[] spaceAfterLocations;

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

staticConstructorDestructorLocations
size_t[] staticConstructorDestructorLocations;

Locations of constructor/destructor "static" tokens ?

structInitEndLocations
size_t[] structInitEndLocations;

Closing braces of struct initializers

structInitStartLocations
size_t[] structInitStartLocations;

Opening braces of struct initializers

ufcsHintLocations
size_t[] ufcsHintLocations;

Locations of '.' characters that might be UFCS chains.

unaryLocations
size_t[] unaryLocations;

Locations of unary operators

Meta