demergent-labs/cdk_framework

Robust Keyword Handling

Opened this issue · 1 comments

We need to better handle keyword collisions. Some of this work has been done, but it's spotty. We currently really only handle keyword collisions in record/variant members. But, we don't handle collisions when the record/variant itself has a name that would collide.

This is further complicated by the fact that certain keywords are only problems in certain places. For example, in Azle, TS keywords are valid as object keys, but invalid for Record/Variant names.

So, this will require more planning to come up with a scalable solution.