1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Binder\RefSafetyAnalysis.cs (1)
78
_compilation
= compilation;
5 references to _compilation
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.ValueChecks.cs (3)
4524
var collectionTypeKind = ConversionsBase.GetCollectionExpressionTypeKind(
_compilation
, expr.Type, out var elementType);
4545
Debug.Assert(parameter.Type.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions));
5513
RefKind parameterRefKind = resultType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions) ? RefKind.In : RefKind.Ref;
Binder\RefSafetyAnalysis.cs (2)
312
var analysis = new RefSafetyAnalysis(
_compilation
, localFunction, _inUnsafeRegion || localFunction.IsUnsafe, _useUpdatedEscapeRules, _diagnostics);
321
var analysis = new RefSafetyAnalysis(
_compilation
, lambda, _inUnsafeRegion, _useUpdatedEscapeRules, _diagnostics);