roslyn:analyze_data_flow
Analyze variable data flow within a code region to identify declarations, assignments, and usage patterns such as read/write inside or outside the region.
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) |