1 instantiation of DagState
Microsoft.CodeAnalysis.CSharp (1)
Binder\DecisionDagBuilder.cs (1)
786
var state = new
DagState
(cases, remainingValues);
40 references to DagState
Microsoft.CodeAnalysis.CSharp (40)
Binder\DecisionDagBuilder.cs (40)
42
/// by computing a description of the initial state in a <see cref="
DagState
"/>, and then
45
/// A state description represented by a <see cref="
DagState
"/> is a collection of partially matched
49
/// When we have computed <see cref="
DagState
"/> descriptions for all of the states, we create a new
773
var workList = ArrayBuilder<
DagState
>.GetInstance();
776
var uniqueState = new Dictionary<
DagState
,
DagState
>(DagStateEquivalence.Instance);
784
DagState
uniqifyState(ImmutableArray<StateForCase> cases, ImmutableDictionary<BoundDagTemp, IValueSet> remainingValues)
786
var
state = new DagState(cases, remainingValues);
787
if (uniqueState.TryGetValue(state, out
DagState
? existingState))
835
var
initialState = uniqifyState(rewrittenCases.ToImmutableAndFree(), ImmutableDictionary<BoundDagTemp, IValueSet>.Empty);
841
DagState
state = workList.Pop();
922
/// Compute the <see cref="BoundDecisionDag"/> corresponding to each <see cref="
DagState
"/> of the given <see cref="DecisionDag"/>
923
/// and store it in <see cref="
DagState
.Dag"/>.
931
bool wasAcyclic = decisionDag.TryGetTopologicallySortedReachableStates(out ImmutableArray<
DagState
> sortedStates);
955
var
state = sortedStates[i];
1021
DagState
state,
1036
DagState
state,
1362
DagState
state,
1569
public readonly
DagState
RootNode;
1570
public DecisionDag(
DagState
rootNode)
1578
private static ImmutableArray<
DagState
> Successor(
DagState
state)
1594
return ImmutableArray<
DagState
>.Empty;
1601
/// <param name="result">Topologically sorted <see cref="
DagState
"/> nodes.</param>
1603
public bool TryGetTopologicallySortedReachableStates(out ImmutableArray<
DagState
> result)
1605
return TopologicalSort.TryIterativeSort<
DagState
>(SpecializedCollections.SingletonEnumerable<
DagState
>(this.RootNode), Successor, out result);
1620
var stateIdentifierMap = PooledDictionary<
DagState
, int>.GetInstance();
1643
foreach (
DagState
state in allStates)
1772
public
DagState
? TrueBranch, FalseBranch;
1801
private sealed class DagStateEquivalence : IEqualityComparer<
DagState
>
1807
public bool Equals(
DagState
? x,
DagState
? y)
1814
public int GetHashCode(
DagState
x)
1916
DagState
state,
1940
DagState
state,
1961
DagState
state,
1985
DagState
state,
2152
DagState
state,
2179
DagState
state,