1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
185return new SafeContextAndLocation(context
23 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\RefSafetyAnalysis.cs (23)
65private Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>? _placeholderScopes; 155private readonly ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> _placeholders; 157public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders) 179public static SafeContextAndLocation Create(SafeContext context 228private void AddPlaceholderScope(BoundValuePlaceholderBase placeholder, SafeContextAndLocation valEscapeScope) 231if (_placeholderScopes?.TryGetValue(placeholder, out var existing) == true) 240_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 259return _placeholderScopes?.TryGetValue(placeholder, out var scope) == true 387var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 404var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 731var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 823ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 831placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 870placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1035var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1042private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1046placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1051placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1103var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1104placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right, _localScopeDepth)))); 1119placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1228var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1231placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape)));