sdivi_patterns/queries/type_assertions.rs
1//! Node kinds classified as type-assertion/cast patterns.
2//!
3//! These node kinds correspond to the `type_assertions` category in the
4//! [`PatternCatalog`](crate::catalog::PatternCatalog).
5
6/// Tree-sitter node kinds for type-assertion patterns.
7///
8/// - `as_expression`: `expr as Type` casts
9/// - `type_cast_expression`: language-specific cast expressions (e.g. TypeScript)
10pub const NODE_KINDS: &[&str] = &["as_expression", "type_cast_expression"];