12 references to IsStringType
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
544if (source.Type.IsStringType())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3987else if (source.IsStringType())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
695if (sourceType.IsStringType())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
608if (expr.Type.IsStringType())
Symbols\ConstantValueUtils.cs (1)
165if (!(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()))) 8196Assert.False(leftType.IsStringType() && rightType.IsStringType()); 8198if (leftType.IsStringType()) 8204Assert.True(rightType.IsStringType()); 8375if (signature.LeftType.IsObjectType() && signature.RightType.IsStringType())