Skip to content

Commit a6d71f8

Browse files
committed
feat(ast): add AstKind::ty method (#8521)
Add `AstKind::ty` method to get `AstType` from an `AstKind`. Works by setting the enum discriminants of `AstKind` and `AstType` to be the same, so one can be converted to the other at zero cost.
1 parent 06ccb51 commit a6d71f8

2 files changed

Lines changed: 393 additions & 337 deletions

File tree

0 commit comments

Comments
 (0)