1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
198return new SafeContextAndLocation(context
29 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (29)
Binder\RefSafetyAnalysis.cs (29)
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) 244if (_placeholderScopes?.TryGetValue(placeholder, out var existing) == true) 253_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 272return _placeholderScopes?.TryGetValue(placeholder, out var scope) == true 413var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 430var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 771var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 892ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, 900placeholders.Add((interpolationData.ReceiverPlaceholder, SafeContextAndLocation.Create(_localScopeDepth))); 939placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1121var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1128private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope) 1132placeholders.Add((placeholder, SafeContextAndLocation.Create(valEscapeScope))); 1137placeholders.Add((runtimePlaceholder, SafeContextAndLocation.Create(valEscapeScope))); 1189var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1190placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder, SafeContextAndLocation.Create(GetValEscape(right)))); 1205placeholders.Add((arg, SafeContextAndLocation.Create(valEscape))); 1323var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1326placeholders.Add((targetPlaceholder, SafeContextAndLocation.Create(collectionEscape))); 1370var placeholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1371placeholders.Add((spanPlaceholder, SafeContextAndLocation.Create(safeContext))); 1393var nodePlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1396nodePlaceholders.Add((node.Placeholder, SafeContextAndLocation.Create(receiverScope))); 1406var spreadPlaceholders = ArrayBuilder<(BoundValuePlaceholderBase, SafeContextAndLocation)>.GetInstance(); 1410spreadPlaceholders.Add((spreadElement.ElementPlaceholder, SafeContextAndLocation.Create(GetValEscape(spreadElement.Expression))));