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