1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
198return new SafeContextAndLocation(context
28 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (28)
Binder\RefSafetyAnalysis.cs (28)
72private Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>? _placeholderScopes; 168private readonly ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> _placeholders; 170public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders) 192public static SafeContextAndLocation Create(SafeContext context 241private void AddPlaceholderScope(BoundValuePlaceholderBase placeholder, SafeContextAndLocation valEscapeScope) 253_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 272return _placeholderScopes?.TryGetValue(placeholder, out var scope) == true 449var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 466var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 820var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 941ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 949placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 988placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1170var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1177private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1181placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1186placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1238var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1239placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1254placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1372var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1375placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape))); 1419var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1420placeholders.Add((spanPlaceholder, SafeContextAndLocation.Create(safeContext))); 1442var nodePlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1445nodePlaceholders.Add((node.Placeholder, SafeContextAndLocation.Create(receiverScope))); 1455var spreadPlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1459spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));