23 references to IsConvertibleTo
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder.ValueChecks.cs (16)
1321if (GetLocalScopes(localSymbol).RefEscapeScope.IsConvertibleTo(escapeTo)) 1511if (!GetParameterValEscape(parameter).IsConvertibleTo(escapeTo)) 1528if (!refSafeToEscape.IsConvertibleTo(escapeTo)) 2268if (_localScopeDepth.IsConvertibleTo(escapeScope)) 2321if (_localScopeDepth.IsConvertibleTo(escapeScope)) 2349if (_localScopeDepth.IsConvertibleTo(escapeScope)) 3944if (_localScopeDepth.IsConvertibleTo(escapeTo)) 3946Debug.Assert(GetRefEscape(expr).IsConvertibleTo(escapeTo)); 4009if (_localScopeDepth.IsConvertibleTo(escapeTo)) 4951if (_localScopeDepth.IsConvertibleTo(escapeTo)) 4953Debug.Assert(GetValEscape(expr).IsConvertibleTo(escapeTo)); 5010if (!GetPlaceholderScope((BoundValuePlaceholderBase)expr).IsConvertibleTo(escapeTo)) 5019if (!GetLocalScopes(localSymbol).ValEscapeScope.IsConvertibleTo(escapeTo)) 5033if (!SafeContext.CurrentMethod.IsConvertibleTo(escapeTo)) 5287if (HasLocalScope((BoundCollectionExpression)conversion.Operand) && !_localScopeDepth.IsConvertibleTo(escapeTo)) 5751if (!GetValEscapeOfObjectMemberInitializer(expr).IsConvertibleTo(escapeTo))
Binder\Binder_Operators.cs (1)
5989if (!whenFalseEscape.IsConvertibleTo(whenTrueEscape))
Binder\Binder_Statements.cs (2)
1571if (!rightEscape.IsConvertibleTo(leftEscape)) 1598if (!leftEscape.IsConvertibleTo(rightEscape))
Binder\RefSafetyAnalysis.cs (2)
554GetRefEscape(initializer).IsConvertibleTo(refEscapeScope)); 1022if (!escapeFrom.IsConvertibleTo(GetValEscape(argument)))
Binder\SafeContext.cs (2)
98=> this.IsConvertibleTo(other) ? other : this; 105=> this.IsConvertibleTo(other) ? this : other;