1 instantiation of SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
193
return new
SafeContextAndLocation
(context
23 references to SafeContextAndLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\RefSafetyAnalysis.cs (23)
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();
751
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
872
ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders,
880
placeholders.Add((interpolationData.ReceiverPlaceholder,
SafeContextAndLocation
.Create(_localScopeDepth)));
919
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1084
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1091
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope)
1095
placeholders.Add((placeholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1100
placeholders.Add((runtimePlaceholder,
SafeContextAndLocation
.Create(valEscapeScope)));
1152
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1153
placeholders.Add((conversion.DeconstructionInfo.InputPlaceholder,
SafeContextAndLocation
.Create(GetValEscape(right, _localScopeDepth))));
1168
placeholders.Add((arg,
SafeContextAndLocation
.Create(valEscape)));
1288
var placeholders = ArrayBuilder<(BoundValuePlaceholderBase,
SafeContextAndLocation
)>.GetInstance();
1291
placeholders.Add((targetPlaceholder,
SafeContextAndLocation
.Create(collectionEscape)));