Currently, export declarations on defvar are very loose. The arguments to export can be (1) anything valid as a constant expression or (2) any symbol. We should try to figure out what rules Godot has precisely for exports and follow them. At the very least, we could implement a whitelist of symbols which are allowed, but it would be nice to be more precise.
Currently,
export
declarations ondefvar
are very loose. The arguments toexport
can be (1) anything valid as a constant expression or (2) any symbol. We should try to figure out what rules Godot has precisely for exports and follow them. At the very least, we could implement a whitelist of symbols which are allowed, but it would be nice to be more precise.