Click or drag to resize

DataFlowAnalysis Class



Provides information about how data flows into and out of a region. This information is returned from a call to AnalyzeDataFlow(SyntaxNode, SyntaxNode), or one of its language-specific overloads, where you pass the first and last statements of the region as parameters. "Inside" means those statements or ones between them. "Outside" are any other statements of the same method.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisDataFlowAnalysis

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class DataFlowAnalysis

The DataFlowAnalysis type exposes the following members.

Constructors
  NameDescription
Protected methodDataFlowAnalysis
Initializes a new instance of the DataFlowAnalysis class
Top
Properties
  NameDescription
Public propertyAlwaysAssigned
The set of local variables for which a value is always assigned inside a region.
Public propertyCaptured
The set of the local variables that have been referenced in anonymous functions within a region and therefore must be moved to a field of a frame class.
Public propertyDataFlowsIn
The set of local variables which are assigned a value outside a region that may be used inside the region.
Public propertyDataFlowsOut
The set of local variables which are assigned a value inside a region that may be used outside the region.
Public propertyReadInside
The set of local variables that are read inside a region.
Public propertyReadOutside
The set of the local variables that are read outside a region.
Public propertySucceeded
Returns true iff analysis was successful. Analysis can fail if the region does not properly span a single expression, a single statement, or a contiguous series of statements within the enclosing block.
Public propertyUnsafeAddressTaken
The set of non-constant local variables and parameters that have had their address (or the address of one of their fields) taken.
Public propertyVariablesDeclared
The set of local variables that are declared within a region. Note that the region must be bounded by a method's body or a field's initializer, so parameter symbols are never included in the result.
Public propertyWrittenInside
The set of local variables that are written inside a region.
Public propertyWrittenOutside
The set of local variables that are written outside a region.
Top
See Also