flattenSymbolTable
Assigns every symbol a unique integer index and builds the name and constness arrays that can be indexed by it.
Parameters
flattenAllTables
true to flatten nested block-scope symbol tables too, false to flatten just this script's or function's own table.