Skip to main content

analyze_data_flow

Analyze data flow within a range of statements in a C# method. Returns variables declared, read, written, captured by lambdas, and flowing in/out of the region. Useful for understanding variable lifecycle before extracting code.

Parameters

ParameterTypeRequiredDescription
filePathstringFull path to the C# source file
startLineintFirst line of the statement range (1-based)
endLineintLast line of the statement range (1-based)