roslyn:analyze_control_flow
Analyze control flow in a C# code region to identify entry and exit points, return statements, and determine if the end point is reachable.
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) |