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