roslyn:analyze_control_flow
Analyze branching and reachability in C# code regions to identify entry points, exit points, and return statements using Roslyn compiler analysis.
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 |
|---|---|---|---|
| filePath | Yes | Absolute path to source file | |
| startLine | Yes | Start line (0-based) | |
| endLine | Yes | End line (0-based) |