RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

Suggestion: merge `anKind` and `anType` attributes #238

Open JBontes opened 6 years ago

JBontes commented 6 years ago

The anKind and anType attribute are never active on the same node. We should merge the two, or at least only use the anType node for actual types. Or perhaps even better, use anKind whenever we are using a AttributeValue. (we can later change the string to a enumeration if we wish). And always use anType whenever we're pasting Token into the attribute.