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"/>.
29
private readonly ImmutableArray<(int position,
Snapshot
snapshot)> _incrementalSnapshots;
33
private static readonly Func<(int position,
Snapshot
snapshot), int, int> BinarySearchComparer = (current, target) => current.position.CompareTo(target);
35
private SnapshotManager(ImmutableArray<SharedWalkerState> walkerSharedStates, ImmutableArray<(int position,
Snapshot
snapshot)> incrementalSnapshots, ImmutableDictionary<(BoundNode?, Symbol), Symbol> updatedSymbolsMap)
55
Snapshot
incrementalSnapshot = GetSnapshotForPosition(position);
62
var
snapshot = GetSnapshotForPosition(symbol.IdentifierToken.SpanStart);
87
private
Snapshot
GetSnapshotForPosition(int position)
154
/// correspond to <see cref="
Snapshot
.SharedStateIndex"/>.
160
private readonly SortedDictionary<int,
Snapshot
> _incrementalSnapshots = new SortedDictionary<int,
Snapshot
>();
175
var snapshotsArray = EnumerableExtensions.SelectAsArray<KeyValuePair<int,
Snapshot
>, (int,
Snapshot
)>(_incrementalSnapshots, (kvp) => (kvp.Key, kvp.Value));