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));
193
Debug.Assert(stringConstant.IsNull || stringConstant.
IsString
);
SwitchConstantValueHelper.cs (1)
89
Debug.Assert(second.
IsString
);
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_InterpolatedString.cs (2)
144
!(value.ConstantValueOpt is {
IsString
: true, IsBad: false }))
784
Debug.Assert(boundLiteral.ConstantValueOpt != null && boundLiteral.ConstantValueOpt.
IsString
);
Binder\DecisionDagBuilder.cs (1)
489
else if (constant.ConstantValue.
IsString
&& input.Type.IsSpanOrReadOnlySpanChar())
BoundTree\LengthBasedStringSwitchData.cs (1)
139
Debug.Assert(inputCases.All(c => c.value.
IsString
&& c.label is not null));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
389
if (value.
IsString
&& input.Type.IsSpanOrReadOnlySpanChar())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
199
if (rightConstant != null && rightConstant.
IsString
&& rightConstant.StringValue.Length == 0)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
325
if (length == 1 && result is not ({ Kind: BoundKind.InterpolatedString } or { ConstantValueOpt.
IsString
: true }))
Lowering\SyntheticBoundNodeFactory.cs (1)
1075
Debug.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)
1110
Debug.Assert(argumentConstantValue.
IsString
())
1150
Debug.Assert(constantValue.
IsString
())
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (2)
331
node.Condition.ConstantValueOpt.
IsString
)
335
node.Condition.ConstantValueOpt.
IsString
)
Lowering\SyntheticBoundNodeFactory.vb (1)
764
Debug.Assert(value.
IsString
OrElse value.IsNull)