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