11 references to IsSpanOrReadOnlySpanChar
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Patterns.cs (2)
428
if (convertedType.SpecialType == SpecialType.System_String && inputType.
IsSpanOrReadOnlySpanChar
())
652
if (expression.Type?.SpecialType == SpecialType.System_String && inputType.
IsSpanOrReadOnlySpanChar
())
Binder\DecisionDagBuilder.cs (1)
492
else if (constant.ConstantValue.IsString && input.Type.
IsSpanOrReadOnlySpanChar
())
CodeGen\EmitStatement.cs (4)
1233
Debug.Assert(dispatch.Expression.Type.IsValidV6SwitchGoverningType() || dispatch.Expression.Type.
IsSpanOrReadOnlySpanChar
());
1256
(expression.Type.IsValidV6SwitchGoverningType() || expression.Type.
IsSpanOrReadOnlySpanChar
()));
1308
expression.Type.SpecialType == SpecialType.System_String || expression.Type.
IsSpanOrReadOnlySpanChar
());
1311
if (expression.Type.SpecialType == SpecialType.System_String || expression.Type.
IsSpanOrReadOnlySpanChar
())
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
746
if (input.Type.IsValidV6SwitchGoverningType() || input.Type.
IsSpanOrReadOnlySpanChar
())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
369
Debug.Assert(!rewrittenExpr.Type.
IsSpanOrReadOnlySpanChar
());
389
if (value.IsString && input.Type.
IsSpanOrReadOnlySpanChar
())
Utilities\ValueSetFactory.cs (1)
58
if (type.
IsSpanOrReadOnlySpanChar
())