Skip to main content

create_nested_ast

Function create_nested_ast 

Source
pub fn create_nested_ast(nesting_depth: u32) -> File
Expand description

Create an AST with nested conditionals for testing nesting depth.

§Example

use debtmap::testkit::helpers::create_nested_ast;

let ast = create_nested_ast(3);
// Creates: if x { if y { if z { } } }