Skip to main content

Module fixture_utils

Module fixture_utils 

Source

Functionsยง

count_top_level_functions
Count the number of top-level functions in an AST file.
extract_function
Extract the nth top-level function from an AST file as a FunctionNode. Also returns the inferred name (e.g. from a variable declarator). Returns None if function_index is out of bounds.