Grammar-Kit icon indicating copy to clipboard operation
Grammar-Kit copied to clipboard

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

Open calexHG opened this issue 9 years ago • 1 comments

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 avatar Oct 02 '16 20:10 calexHG

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

calexHG avatar Oct 02 '16 20:10 calexHG