1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
193return new SafeContextAndLocation(context
23 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\RefSafetyAnalysis.cs (23)
67private Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>? _placeholderScopes; 163private readonly ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> _placeholders; 165public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders) 187public static SafeContextAndLocation Create(SafeContext context 236private void AddPlaceholderScope(BoundValuePlaceholderBase placeholder, SafeContextAndLocation valEscapeScope) 239if (_placeholderScopes?.TryGetValue(placeholder, out var existing) == true) 248_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 267return _placeholderScopes?.TryGetValue(placeholder, out var scope) == true 407var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 424var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 750var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 870ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 878placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 917placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1079var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1086private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1090placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1095placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1147var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1148placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1163placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1281var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1284placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape)));