16 references to IsStringType
Microsoft.CodeAnalysis.CSharp (16)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3989
else if (source.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
697
if (sourceType.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (13)
53
Debug.Assert(loweredLeft.Type is { } && (loweredLeft.Type.
IsStringType
() || loweredLeft.Type.IsErrorType()) || loweredLeft.ConstantValueOpt?.IsNull == true);
54
Debug.Assert(loweredRight.Type is { } && (loweredRight.Type.
IsStringType
() || loweredRight.Type.IsErrorType()) || loweredRight.ConstantValueOpt?.IsNull == true);
371
Debug.Assert(loweredLeft.HasAnyErrors || loweredLeft.Type is { } && loweredLeft.Type.
IsStringType
());
372
Debug.Assert(loweredRight.HasAnyErrors || loweredRight.Type is { } && loweredRight.Type.
IsStringType
());
382
Debug.Assert(loweredFirst.HasAnyErrors || loweredFirst.Type is { } && loweredFirst.Type.
IsStringType
());
383
Debug.Assert(loweredSecond.HasAnyErrors || loweredSecond.Type is { } && loweredSecond.Type.
IsStringType
());
384
Debug.Assert(loweredThird.HasAnyErrors || loweredThird.Type is { } && loweredThird.Type.
IsStringType
());
394
Debug.Assert(loweredFirst.HasAnyErrors || loweredFirst.Type is { } && loweredFirst.Type.
IsStringType
());
395
Debug.Assert(loweredSecond.HasAnyErrors || loweredSecond.Type is { } && loweredSecond.Type.
IsStringType
());
396
Debug.Assert(loweredThird.HasAnyErrors || loweredThird.Type is { } && loweredThird.Type.
IsStringType
());
397
Debug.Assert(loweredFourth.HasAnyErrors || loweredFourth.Type is { } && loweredFourth.Type.
IsStringType
());
408
Debug.Assert(loweredArgs.All(a => a.HasErrors || a.Type is { } && a.Type.
IsStringType
()));
651
if (expr.Type.
IsStringType
())
Symbols\ConstantValueUtils.cs (1)
165
if (!(expression.Type is null) && expression.Type.
IsStringType
())