Skip to main content

Module framework_hooks

Module framework_hooks 

Source
Expand description

Node kinds classified as framework-hook calls.

Detects React, Preact, Vue (composables), and Svelte-style hook calls in TypeScript and JavaScript. Identified by callee text (^use[A-Z]). No tree-sitter node-kind matching — call_expression is already collected by the TS/JS adapters; this module provides callee-text discrimination only.

Constants§

NODE_KINDS
Tree-sitter node kinds for framework-hook calls.

Functions§

matches_callee
Return true when text looks like a framework-hook callee for language.