JetBrains / Grammar-Kit

Grammar files support & parser/PSI generation for IntelliJ IDEA
Other
715 stars 125 forks source link

Token accessors return `PsiElement`, instead of the customized `LeafPsiElement` derivation #137

Open calexHG opened 8 years ago

calexHG commented 8 years ago

Improvement suggestion: Allow users to specify a mapping between tokens and LeafPsiElement classes so that generated token accessors return the correct, customized LeafPsiElement types (and thus don't require casting every time they're used).

This would be a welcome relief of unnecessary boilerplate.

calexHG commented 8 years ago

Note: Been working around this one forever. I guess I'm just in a good issue-filing mood this week :]