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
408
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
425
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
766
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
887
ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders,
895
placeholders.Add((interpolationData.ReceiverPlaceholder,
SafeContextAndLocation
.Create(_localScopeDepth)));
934
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1116
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1123
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope)
1127
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1132
placeholders.Add((runtimePlaceholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1184
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1185
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder,
SafeContextAndLocation
.Create(GetValEscape(right))));
1200
placeholders.Add((arg,
SafeContextAndLocation
.Create(valEscape)));
1318
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1321
placeholders.Add((targetPlaceholder,
SafeContextAndLocation
.Create(collectionEscape)));
1365
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1366
placeholders.Add((spanPlaceholder,
SafeContextAndLocation
.Create(safeContext)));
1388
var nodePlaceholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1391
nodePlaceholders.Add((node.Placeholder,
SafeContextAndLocation
.Create(receiverScope)));
1401
var spreadPlaceholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1405
spreadPlaceholders.Add((spreadElement.ElementPlaceholder,
SafeContextAndLocation
.Create(GetValEscape(spreadElement.Expression))));