Skip to main content

analyze_control_flow

Analyze control flow within a range of statements in a C# method. Returns reachability of start/end points, return statements, and exit points. Useful for detecting unreachable code and understanding branching.

Parameters​

ParameterTypeRequiredDescription
filePathstring✓Full path to the C# source file
startLineint✓First line of the statement range (1-based)
endLineint✓Last line of the statement range (1-based)