Hotfix for 2 bugs in the teal environment generation algorithm:
Fixed fields not being deduped correctly because Vec::dedup only dedupes consecutive duplicate items. This was done by sorting the fields list beforehand.
Also deduped static fields while I was at it, though I'm not sure if those are used?
Fixed the algorithm not properly escaping record fields/functions/methods/etc that share the name of an existing Lua/Teal keyword. This was coming up since the Uuid record has a function called nil for making an all-zero uuid.
Note that this still doesn't completely fix Teal document generation when using the default Bevy APIs since they're still missing a definition for ReflectedValue, but I'll likely need some guidance on that and will split that off to a separate PR.
Hotfix for 2 bugs in the teal environment generation algorithm:
Vec::dedup
only dedupes consecutive duplicate items. This was done by sorting the fields list beforehand.Uuid
record has a function callednil
for making an all-zero uuid.Note that this still doesn't completely fix Teal document generation when using the default Bevy APIs since they're still missing a definition for
ReflectedValue
, but I'll likely need some guidance on that and will split that off to a separate PR.