62 references to IsStringType
Microsoft.CodeAnalysis.VisualBasic (57)
Binding\Binder_Invocation.vb (4)
2444
Debug.Assert(Not isByRef OrElse param.IsExplicitByRef OrElse targetType.
IsStringType
())
2456
(param.IsExplicitByRef OrElse (argument.Type IsNot Nothing AndAlso argument.Type.
IsStringType
())) Then
2808
Debug.Assert(Not param.IsByRef OrElse param.IsExplicitByRef OrElse targetType.
IsStringType
())
2813
(param.IsExplicitByRef OrElse (argument.Type IsNot Nothing AndAlso argument.Type.
IsStringType
())) Then
Binding\Binder_Operators.vb (7)
240
((leftType.
IsStringType
() AndAlso rightIsDBNull) OrElse (leftIsDBNull AndAlso rightType.
IsStringType
))) Then
335
If OptionCompareText AndAlso (operandType.IsObjectType() OrElse operandType.
IsStringType
()) Then
429
If operandType.
IsStringType
() Then
480
If (operatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Add AndAlso operatorResultType.
IsStringType
() Then
541
Debug.Assert(stringType.
IsStringType
)
788
If otherOperandType.
IsStringType
() Then
Binding\Binder_SelectCase.vb (1)
576
Dim isSelectExprStringType = selectExpr.Type.
IsStringType
Binding\Binder_Statements.vb (2)
3870
If(collectionType IsNot Nothing AndAlso collectionType.
IsStringType
, collectionType, collection.Type))
3953
ElseIf collectionType.
IsStringType
() Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
250
ElseIf underlyingTo.
IsStringType
() AndAlso underlyingFrom.IsCharSZArray() Then
256
If underlyingFrom.
IsStringType
() Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
465
Debug.Assert(midResult.Type.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (10)
280
ElseIf leftType.
IsStringType
() Then
299
ElseIf leftType.
IsStringType
() Then
318
ElseIf leftType.
IsStringType
() Then
337
ElseIf leftType.
IsStringType
() Then
356
ElseIf leftType.
IsStringType
() Then
375
ElseIf leftType.
IsStringType
() Then
678
Debug.Assert(node.Left.Type.
IsStringType
())
679
Debug.Assert(node.Right.Type.
IsStringType
())
754
(node.Type.IsBooleanType() AndAlso left.Type.
IsStringType
() AndAlso right.Type.
IsStringType
()))
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (8)
413
If resultType.
IsStringType
Then
421
ElseIf operandType.
IsStringType
Then
600
If operandType.
IsStringType
Then
619
If resultType.
IsStringType
Then
848
ElseIf underlyingTypeFrom.
IsStringType
() AndAlso
852
ElseIf underlyingTypeTo.
IsStringType
() AndAlso
997
Debug.Assert(typeTo.
IsStringType
())
1084
Debug.Assert(typeFrom.
IsStringType
())
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
35
(operand.Type.IsArrayType OrElse operand.Type.
IsStringType
) Then
132
ElseIf collectionType.
IsStringType
Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (1)
311
Debug.Assert(stringType.
IsStringType
)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (2)
111
If rewrittenSelectExpression.Type.
IsStringType
Then
342
Debug.Assert(node.ExpressionStatement.Expression.Type.
IsStringType
)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (3)
36
Debug.Assert(node.Type.
IsStringType
() AndAlso
37
node.Left.Type.
IsStringType
() AndAlso
38
node.Right.Type.
IsStringType
(), "concat args should be strings here")
Semantics\Conversions.vb (5)
534
(sourceEnumUnderlying.
IsStringType
() OrElse sourceEnumUnderlying.IsObjectType()) Then
539
(targetEnumUnderlying.
IsStringType
() OrElse targetEnumUnderlying.IsObjectType()) Then
722
If destination.
IsStringType
() Then
750
If
IsStringType
(sourceType) Then
767
If
IsStringType
(targetType) Then
Semantics\Operators.vb (4)
523
(enumUnderlying.
IsStringType
() OrElse enumUnderlying.IsObjectType()) Then
886
(leftEnumUnderlying.
IsStringType
() OrElse leftEnumUnderlying.IsObjectType() OrElse leftEnumUnderlying.IsCharSZArray())) OrElse
888
(rightEnumUnderlying.
IsStringType
() OrElse rightEnumUnderlying.IsObjectType() OrElse rightEnumUnderlying.IsCharSZArray())) Then
1091
ElseIf leftUnderlying.
IsStringType
() Then
Semantics\OverloadResolution.vb (2)
3114
Debug.Assert(Not isByRef OrElse param.IsExplicitByRef OrElse targetType.
IsStringType
())
3122
(param.IsExplicitByRef OrElse (argument.Type IsNot Nothing AndAlso argument.Type.
IsStringType
())) Then
Symbols\Source\SourceParameterSymbol.vb (2)
447
If Type.
IsStringType
() Then
494
If Type.
IsStringType
() AndAlso
Symbols\TypeSymbolExtensions.vb (1)
474
(value.Discriminator = ConstantValueTypeDiscriminator.Nothing AndAlso this.
IsStringType
())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Semantics\Conversions.vb (5)
285
Assert.Equal(If(testType.
IsStringType
(), ConstantValueTypeDiscriminator.Nothing, testType.GetConstantValueTypeDiscriminator()), resultValue.Discriminator)
335
Dim zero = ConstantValue.Default(If(convertibleType.
IsStringType
(), ConstantValueTypeDiscriminator.Nothing, convertibleType.GetConstantValueTypeDiscriminator()))
337
If convertibleType.
IsStringType
() Then
366
Dim zero = ConstantValue.Default(If(type1.
IsStringType
(), ConstantValueTypeDiscriminator.Nothing, type1.GetConstantValueTypeDiscriminator()))
368
If type1.
IsStringType
() Then