roslyn:analyze_data_flow
Analyzes how variables are declared, assigned, read, and written within a specified code region, returning data flow details such as variables declared, always assigned, and flow in/out.
Instructions
Analyze variable assignments and usage in a code region.
Returns: variablesDeclared, alwaysAssigned, dataFlowsIn/Out, readInside/Outside, writtenInside/Outside, captured.
USAGE: analyze_data_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) |