yanghuan / CSharp.lua

The C# to Lua compiler
Other
1.23k stars 202 forks source link

Disambiguate duplicate module names #490

Closed joelverhagen closed 9 months ago

joelverhagen commented 9 months ago

If there are two modules with the same class name (disambiguated in C# via namespace), they result in overlapping output module names, e.g. two Point classes.

This disambiguates the output module name by suffixing _2, _3, etc in a linear search pattern.