Skip to main content

dump_ast

Function dump_ast 

Source
pub fn dump_ast(command: &str) -> Result<String, ParseError>
Expand description

Diagnostic: dump the tree-sitter AST and parsed pipeline.

Sections 1 (AST dump) and 3 (redirection check) share a single parse tree. Section 2 (pipeline decomposition) calls parse_with_substitutions separately — it builds the recursive pipeline structure from scratch.