20 references to IsString
Microsoft.CodeAnalysis (6)
CodeGen\SwitchIntegralJumpTableEmitter.cs (2)
146&& !firstConstant.IsString); 150&& !secondConstant.IsString);
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
266&& !constant.IsString;
CodeGen\SwitchStringJumpTableEmitter.cs (2)
175(stringConstant.IsString || stringConstant.IsNull)); 193Debug.Assert(stringConstant.IsNull || stringConstant.IsString);
SwitchConstantValueHelper.cs (1)
89Debug.Assert(second.IsString);
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_InterpolatedString.cs (2)
144!(value.ConstantValueOpt is { IsString: true, IsBad: false })) 784Debug.Assert(boundLiteral.ConstantValueOpt != null && boundLiteral.ConstantValueOpt.IsString);
Binder\DecisionDagBuilder.cs (1)
489else if (constant.ConstantValue.IsString && input.Type.IsSpanOrReadOnlySpanChar())
BoundTree\LengthBasedStringSwitchData.cs (1)
139Debug.Assert(inputCases.All(c => c.value.IsString && c.label is not null));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
389if (value.IsString && input.Type.IsSpanOrReadOnlySpanChar())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
199if (rightConstant != null && rightConstant.IsString && rightConstant.StringValue.Length == 0)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
325if (length == 1 && result is not ({ Kind: BoundKind.InterpolatedString } or { ConstantValueOpt.IsString: true }))
Lowering\SyntheticBoundNodeFactory.cs (1)
1075Debug.Assert(stringConst.IsString || stringConst.IsNull);
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_Expressions.vb (1)
2024(boundFirstArg.IsNothingLiteral OrElse boundFirstArg.ConstantValueOpt.IsString) Then
Binding\Binder_Invocation.vb (2)
1110Debug.Assert(argumentConstantValue.IsString()) 1150Debug.Assert(constantValue.IsString())
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (2)
331node.Condition.ConstantValueOpt.IsString) 335node.Condition.ConstantValueOpt.IsString)
Lowering\SyntheticBoundNodeFactory.vb (1)
764Debug.Assert(value.IsString OrElse value.IsNull)