1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
193return new SafeContextAndLocation(context
29 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (29)
Binder\RefSafetyAnalysis.cs (29)
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 408var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 425var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 766var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 887ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 895placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 934placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1116var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1123private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1127placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1132placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1184var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1185placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1200placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1318var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1321placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape))); 1365var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1366placeholders.Add((spanPlaceholder, SafeContextAndLocation.Create(safeContext))); 1388var nodePlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1391nodePlaceholders.Add((node.Placeholder, SafeContextAndLocation.Create(receiverScope))); 1401var spreadPlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1405spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));