12 references to IsStringType
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
544
if (source.Type.
IsStringType
())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3987
else if (source.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
695
if (sourceType.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
608
if (expr.Type.
IsStringType
())
Symbols\ConstantValueUtils.cs (1)
165
if (!(expression.Type is null) && expression.Type.
IsStringType
())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\OperatorTests.cs (7)
8194
((leftType.
IsStringType
() && !rightType.IsPointerType()) || (!leftType.IsPointerType() && rightType.
IsStringType
())))
8196
Assert.False(leftType.
IsStringType
() && rightType.
IsStringType
());
8198
if (leftType.
IsStringType
())
8204
Assert.True(rightType.
IsStringType
());
8375
if (signature.LeftType.IsObjectType() && signature.RightType.
IsStringType
())