Commit a6d71f8
committed
feat(ast): add
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.AstKind::ty method (#8521)1 parent 06ccb51 commit a6d71f8
2 files changed
Lines changed: 393 additions & 337 deletions
0 commit comments