core
core copied to clipboard
Shorten namespace access and create aliases
- [x] While being inside namespace
A, shorten a name likeA.BtoB. - [ ] If a
Balso exists as a global type/value, it is shadowed byA.BinsideA. If a value/type would be used anywhere where it's shadowed, create a (non-exported) alias for ittype B$1 = Borconst B$1 = B. This is not just a cosmetic change but also needed for correct behavior. - [ ] Create aliases to shorten accesses from imported modules. For example
type X = OtherModule.X
A fix needed: interfaces and class members also have to be considered