Interface IFlowGraphAnalysis<T>
An analysis on a flow graph.
Namespace: Flame.Compiler.Analysis
Assembly: Flame.Compiler.dll
Syntax
public interface IFlowGraphAnalysis<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the analysis' result. |
Methods
| Improve this Doc View SourceAnalyze(FlowGraph)
Analyzes a flow graph from scratch.
Declaration
T Analyze(FlowGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | The flow graph to analyze. |
Returns
| Type | Description |
|---|---|
| T | The analysis' output. |
AnalyzeWithUpdates(FlowGraph, T, IReadOnlyList<FlowGraphUpdate>)
Analyzes a flow graph based on the flow graph, the previous result, and a list of updates that were applied to the graph since the previous result.
Declaration
T AnalyzeWithUpdates(FlowGraph graph, T previousResult, IReadOnlyList<FlowGraphUpdate> updates)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | The current version of the flow graph to analyze. |
| T | previousResult | A previous result produced by this analysis. |
| System.Collections.Generic.IReadOnlyList<FlowGraphUpdate> | updates | A list of updates that were applied to the flow graph since the previous result was computed. |
Returns
| Type | Description |
|---|---|
| T | The analysis' output, which must be equal to a call to
|