1 instantiation of Snapshot
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
220
_incrementalSnapshots[node.Syntax.SpanStart] = new
Snapshot
(currentState.CreateSnapshot(), _currentWalkerSlot);
12 references to Snapshot
Microsoft.CodeAnalysis.CSharp (12)
FlowAnalysis\NullableWalker.SnapshotManager.cs (12)
24
/// The int key corresponds to <see cref="
Snapshot
.SharedStateIndex"/>.
32
private readonly ImmutableArray<(int position,
Snapshot
snapshot)> _incrementalSnapshots;
36
private static readonly Func<(int position,
Snapshot
snapshot), int, int> BinarySearchComparer = (current, target) => current.position.CompareTo(target);
38
private SnapshotManager(ImmutableArray<SharedWalkerState> walkerSharedStates, ImmutableArray<(int position,
Snapshot
snapshot)> incrementalSnapshots, ImmutableDictionary<(BoundNode?, Symbol), Symbol> updatedSymbolsMap)
58
Snapshot
incrementalSnapshot = GetSnapshotForPosition(position);
65
var
snapshot = GetSnapshotForPosition(symbol.IdentifierToken.SpanStart);
90
private
Snapshot
GetSnapshotForPosition(int position)
157
/// correspond to <see cref="
Snapshot
.SharedStateIndex"/>.
163
private readonly SortedDictionary<int,
Snapshot
> _incrementalSnapshots = new SortedDictionary<int,
Snapshot
>();
178
var snapshotsArray = EnumerableExtensions.SelectAsArray<KeyValuePair<int,
Snapshot
>, (int,
Snapshot
)>(_incrementalSnapshots, (kvp) => (kvp.Key, kvp.Value));