Skip to main content

Module ast

Module ast 

Source

Re-exports§

pub use max_component_size::MaxComponentSizeRule;
pub use no_cascading_set_state::NoCascadingSetStateRule;
pub use no_nested_components::NoNestedComponentsRule;
pub use prefer_use_reducer::PreferUseReducerRule;
pub use require_img_alt::RequireImgAltRule;

Modules§

max_component_size
no_cascading_set_state
no_nested_components
prefer_use_reducer
require_img_alt

Enums§

Lang
Supported languages for AST parsing.

Functions§

count_calls_in_scope
Count calls to a specific function within a node’s subtree, skipping nested component definitions.
detect_language
Detect language from file extension.
is_component_node
Check if a tree-sitter node represents a React component declaration.
parse_file
Parse a file into a tree-sitter syntax tree.