Expand description
Per-category node-kind classification rules.
Each sub-module declares the tree-sitter node kinds that map to a built-in
pattern category. Classification is performed by category_for_node_kind,
which returns the category name or None if the node kind is unrecognised.
Category names are stable from Milestone 6 forward. Renaming any name is a
breaking change requiring a MIGRATION_NOTES.md entry.
Modules§
- async_
patterns - Node kinds classified as async-concurrency patterns.
- error_
handling - Node kinds classified as error-handling patterns.
- resource_
management - Node kinds classified as resource-management patterns.
- state_
management - Node kinds classified as state-management patterns.
- type_
assertions - Node kinds classified as type-assertion/cast patterns.
Constants§
- ALL_
CATEGORIES - All built-in category names in stable alphabetical order.
Functions§
- category_
for_ node_ kind - Maps a tree-sitter
node_kindto the built-in category it belongs to.