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(); 852ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 860placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 899placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1064var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1071private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1075placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1080placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1132var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1133placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right, _localScopeDepth)))); 1148placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1268var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1271placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape)));