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
filePathstringFull path to the C# source file
startLineintFirst line of the statement range (1-based)
endLineintLast line of the statement range (1-based)