sdivi_patterns/queries/error_handling.rs
1//! Node kinds classified as error-handling patterns.
2//!
3//! These node kinds correspond to the `error_handling` category in the
4//! [`PatternCatalog`](crate::catalog::PatternCatalog).
5
6/// Tree-sitter node kinds for error-handling patterns.
7///
8/// - `try_expression`: the `?` operator applied to a `Result` or `Option`
9/// - `match_expression`: `match` arms used for result/error dispatch
10pub const NODE_KINDS: &[&str] = &["try_expression", "match_expression"];