20 references to IsConvertibleTo
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (13)
1070
if (GetLocalScopes(localSymbol).RefEscapeScope.
IsConvertibleTo
(escapeTo))
1260
if (!GetParameterValEscape(parameter).
IsConvertibleTo
(escapeTo))
1277
if (!refSafeToEscape.
IsConvertibleTo
(escapeTo))
2025
if (localScopeDepth.
IsConvertibleTo
(escapeScope))
2090
if (localScopeDepth.
IsConvertibleTo
(escapeScope))
3633
if (escapeFrom.
IsConvertibleTo
(escapeTo))
3698
if (((BoundCapturedReceiverPlaceholder)expr).LocalScopeDepth.
IsConvertibleTo
(escapeTo))
4717
if (escapeFrom.
IsConvertibleTo
(escapeTo))
4776
if (!GetPlaceholderScope((BoundValuePlaceholderBase)expr).
IsConvertibleTo
(escapeTo))
4785
if (!GetLocalScopes(localSymbol).ValEscapeScope.
IsConvertibleTo
(escapeTo))
4799
if (!SafeContext.CurrentMethod.
IsConvertibleTo
(escapeTo))
5108
if (HasLocalScope((BoundCollectionExpression)conversion.Operand) && !SafeContext.CurrentMethod.
IsConvertibleTo
(escapeTo))
5560
if (!GetValEscapeOfObjectMemberInitializer(expr, escapeFrom).
IsConvertibleTo
(escapeTo))
Binder\Binder_Operators.cs (1)
4391
if (!whenFalseEscape.
IsConvertibleTo
(whenTrueEscape))
Binder\Binder_Statements.cs (2)
1554
if (!rightEscape.
IsConvertibleTo
(leftEscape))
1581
if (!leftEscape.
IsConvertibleTo
(rightEscape))
Binder\RefSafetyAnalysis.cs (2)
493
GetRefEscape(initializer, _localScopeDepth).
IsConvertibleTo
(refEscapeScope));
840
if (!escapeFrom.
IsConvertibleTo
(GetValEscape(argument, _localScopeDepth)))
Binder\SafeContext.cs (2)
98
=> this.
IsConvertibleTo
(other) ? other : this;
105
=> this.
IsConvertibleTo
(other) ? this : other;