1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
193
return new
SafeContextAndLocation
(context
29 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (29)
Binder\RefSafetyAnalysis.cs (29)
67
private Dictionary<BoundValuePlaceholderBase,
SafeContextAndLocation
>? _placeholderScopes;
163
private readonly ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> _placeholders;
165
public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders)
187
public static
SafeContextAndLocation
Create(SafeContext context
236
private void AddPlaceholderScope(BoundValuePlaceholderBase placeholder,
SafeContextAndLocation
valEscapeScope)
239
if (_placeholderScopes?.TryGetValue(placeholder, out
var
existing) == true)
248
_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase,
SafeContextAndLocation
>();
267
return _placeholderScopes?.TryGetValue(placeholder, out
var
scope) == true
407
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
424
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
750
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
870
ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders,
878
placeholders.Add((interpolationData.ReceiverPlaceholder,
SafeContextAndLocation
.Create(_localScopeDepth)));
917
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1086
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1093
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope)
1097
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1102
placeholders.Add((runtimePlaceholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1154
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1155
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder,
SafeContextAndLocation
.Create(GetValEscape(right))));
1170
placeholders.Add((arg,
SafeContextAndLocation
.Create(valEscape)));
1288
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1291
placeholders.Add((targetPlaceholder,
SafeContextAndLocation
.Create(collectionEscape)));
1335
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1336
placeholders.Add((spanPlaceholder,
SafeContextAndLocation
.Create(safeContext)));
1358
var nodePlaceholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1361
nodePlaceholders.Add((node.Placeholder,
SafeContextAndLocation
.Create(receiverScope)));
1371
var spreadPlaceholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1375
spreadPlaceholders.Add((spreadElement.ElementPlaceholder,
SafeContextAndLocation
.Create(GetValEscape(spreadElement.Expression))));