Previously, we'd relied on elaborated type parsing for typedefs assuming that we'd process all necessary children. However, given that struct is included in the alias definition, it incorrectly triggers that assumption and is then never processed.
This fix compares a simpleDesugar-ed type name with the current cursor symbolName and if they don't align, identifies it as the alias case, and generates the alias as expected (e.g. type AliasToMyStruct = MyStruct).
This adds support for
such that
AliasToMyStruct
is parsed properly.Previously, we'd relied on elaborated type parsing for typedefs assuming that we'd process all necessary children. However, given that
struct
is included in the alias definition, it incorrectly triggers that assumption and is then never processed.This fix compares a
simpleDesugar
-ed type name with the current cursorsymbolName
and if they don't align, identifies it as the alias case, and generates the alias as expected (e.g.type AliasToMyStruct = MyStruct
).