Not sure if Type is the best name for something in a SymbolType enum,
But it's meant to be a generic variant for all types, besides the ones separately specified.
Basically for all the maps, arrays, slices, dyn arrays, matrixes, etc
To not have a symbol for each individual type, but a single one for all of them.
Basically everything that wasn’t covered by existing enum, but is a type, not just any constant.
Also I cleaned up the visit_ident proc, to have a clear split between handling types and variables.
now all the types are consistently correct
and all the constants consistently broken
but fixing that requires more work (and deeper changes)
Add a .Type SymbolType enum
Not sure if
Type
is the best name for something in aSymbolType
enum, But it's meant to be a generic variant for all types, besides the ones separately specified. Basically for all the maps, arrays, slices, dyn arrays, matrixes, etc To not have a symbol for each individual type, but a single one for all of them. Basically everything that wasn’t covered by existing enum, but is a type, not just any constant.Also I cleaned up the
visit_ident
proc, to have a clear split between handling types and variables.now all the types are consistently correct and all the constants consistently broken but fixing that requires more work (and deeper changes)