roslyn:analyze_control_flow
Analyze branching and reachability in C# code to identify entry points, exit points, and unreachable statements.
Instructions
Analyze branching and reachability in a code region.
Returns: entryPoints, exitPoints, returnStatements, endPointIsReachable.
USAGE: analyze_control_flow("path/to/file.cs", startLine=10, endLine=25)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | Yes | End line (0-based) | |
| filePath | Yes | Absolute path to source file | |
| startLine | Yes | Start line (0-based) |