1 instantiation of Snapshot
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
217_incrementalSnapshots[node.Syntax.SpanStart] = new Snapshot(currentState.CreateSnapshot(), _currentWalkerSlot);
12 references to Snapshot
Microsoft.CodeAnalysis.CSharp (12)
FlowAnalysis\NullableWalker.SnapshotManager.cs (12)
21/// The int key corresponds to <see cref="Snapshot.SharedStateIndex"/>. 29private readonly ImmutableArray<(int position, Snapshot snapshot)> _incrementalSnapshots; 33private static readonly Func<(int position, Snapshot snapshot), int, int> BinarySearchComparer = (current, target) => current.position.CompareTo(target); 35private SnapshotManager(ImmutableArray<SharedWalkerState> walkerSharedStates, ImmutableArray<(int position, Snapshot snapshot)> incrementalSnapshots, ImmutableDictionary<(BoundNode?, Symbol), Symbol> updatedSymbolsMap) 55Snapshot incrementalSnapshot = GetSnapshotForPosition(position); 62var snapshot = GetSnapshotForPosition(symbol.IdentifierToken.SpanStart); 87private Snapshot GetSnapshotForPosition(int position) 154/// correspond to <see cref="Snapshot.SharedStateIndex"/>. 160private readonly SortedDictionary<int, Snapshot> _incrementalSnapshots = new SortedDictionary<int, Snapshot>(); 175var snapshotsArray = EnumerableExtensions.SelectAsArray<KeyValuePair<int, Snapshot>, (int, Snapshot)>(_incrementalSnapshots, (kvp) => (kvp.Key, kvp.Value));