Adds a tag for enum members. Currently using the semantic name definition.class since it's already being used for enum_item and seems to most closely align with this property when choosing from the current capture names.
We discussed potentially adding a few new capture names that would better represent algebraic data types and enums, ie. definition.case or definition.constructor for enum_variant and definition.adt or definition.enum for enum_item. Opening this PR to continue the conversation here.
Adds a tag for enum members. Currently using the semantic name
definition.class
since it's already being used forenum_item
and seems to most closely align with this property when choosing from the current capture names.We discussed potentially adding a few new capture names that would better represent algebraic data types and enums, ie.
definition.case
ordefinition.constructor
forenum_variant
anddefinition.adt
ordefinition.enum
forenum_item
. Opening this PR to continue the conversation here.cc @tree-sitter/semantic-code