roslyn:analyze_data_flow
Analyze variable assignments and usage patterns within specific code regions to understand data flow, variable declarations, and capture states.
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 |
|---|---|---|---|
| filePath | Yes | Absolute path to source file | |
| startLine | Yes | Start line (0-based) | |
| endLine | Yes | End line (0-based) |