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