View source
enum VarScopingFlags
package haxe.macro
import haxe.macro.PlatformConfig
Available on all platforms
Values
VarHoisting
Variables are hoisted in their scope
NoShadowing
It's not allowed to shadow existing variables in a scope.
NoCatchVarShadowing
It's not allowed to shadow a catch
variable.
ReserveCurrentTopLevelSymbol
Local vars cannot have the same name as the current top-level package or (if in the root package) current class name
ReserveAllTopLevelSymbols
Local vars cannot have a name used for any top-level symbol (packages and classes in the root package)
ReserveAllTypesFlat
Reserve all type-paths converted to "flat path" with Path.flat_path
ReserveNames(names:Array<String>)
List of names cannot be taken by local vars
SwitchCasesNoBlocks
Cases in a switch
won't have blocks, but will share the same outer scope.