Skip to main content

is_expansion_node

Function is_expansion_node 

Source
pub const fn is_expansion_node(kind: &NodeKind) -> bool
Expand description

Returns true if the node kind is itself a shell expansion.

This is the single source of truth for which NodeKind variants represent expansions. Used by both has_expansions_kind (AST walking) and analyze_node (verdict generation).