Static variables
privatestaticfinalread onlyregColor:EReg = ~/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/
privatestaticfinalread onlyreservedKeywords:Array<String> = ["abstract", "break", "case", "cast", "catch", "class", "continue", "default", "do", "dynamic", "else", "enum", "extends", "extern", "false", "final", "for", "function", "if", "implements", "import", "in", "inline", "interface", "is", "macro", "new", "null", "operator", "overload", "override", "package", "private", "public", "return", "static", "switch", "this", "throw", "true", "try", "typedef", "untyped", "using", "var", "while"]
privatestaticfinalread onlyvalidTypes:Array<String> = ["Asset", "Bool", "Color", "Float", "Int", "String"]
Static methods
privatestaticcloneMap(map:Map<String, Node>, setInherited:Bool):Map<String, Node>
Creates a deep copy of a map (the given map must not contain values of types other than primitive types or maps).
Parameters:
setInherited | If |
---|
privatestaticcreateRequiredStates(selector:TSelector):Void
Create states from extended selector if they aren't defined yet.
Parameters:
null | selector |
---|
privatestaticmergeMaps(mapBase:Map<String, Node>, mapAdd:Map<String, Node>):Map<String, Node>
Merges/Adds mapAdd
onto mapBase
(without changing those maps) and
returns the resulting map. Usually used with mapBase
being the extended
map and mapAdd
the actual selector's map.
privatestaticmergeSelectorsResolved(base:TSelector, extending:TSelector):Map<String, Node>
Merges the base selector on top of the extending selector (this modifies the base selector's map in place). If the extending selector is not resolved yet, resolve it first.