Open
Description
Currently, CLDK does not support control flow analysis. However, to begin with some light-weight analysis, it might be good to add some support. To do that, we have enabled tree-sitter based conditional statement extraction logic, which reads a code and provide the output in
List[dict]: Each element represents a conditional statement.
dictionary : {"condition":, "code":, "start_line":, "end_line":,
"condition_type":[FOR|WHILE|DOWHILE|IF|ELSE|CATCH]}