62 references to IsStringType
Microsoft.CodeAnalysis.VisualBasic (57)
Binding\Binder_Invocation.vb (4)
2444Debug.Assert(Not isByRef OrElse param.IsExplicitByRef OrElse targetType.IsStringType()) 2456(param.IsExplicitByRef OrElse (argument.Type IsNot Nothing AndAlso argument.Type.IsStringType())) Then 2808Debug.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 335If OptionCompareText AndAlso (operandType.IsObjectType() OrElse operandType.IsStringType()) Then 429If operandType.IsStringType() Then 480If (operatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Add AndAlso operatorResultType.IsStringType() Then 541Debug.Assert(stringType.IsStringType) 788If otherOperandType.IsStringType() Then
Binding\Binder_SelectCase.vb (1)
576Dim isSelectExprStringType = selectExpr.Type.IsStringType
Binding\Binder_Statements.vb (2)
3870If(collectionType IsNot Nothing AndAlso collectionType.IsStringType, collectionType, collection.Type)) 3953ElseIf collectionType.IsStringType() Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
250ElseIf underlyingTo.IsStringType() AndAlso underlyingFrom.IsCharSZArray() Then 256If underlyingFrom.IsStringType() Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
465Debug.Assert(midResult.Type.IsStringType())
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (10)
280ElseIf leftType.IsStringType() Then 299ElseIf leftType.IsStringType() Then 318ElseIf leftType.IsStringType() Then 337ElseIf leftType.IsStringType() Then 356ElseIf leftType.IsStringType() Then 375ElseIf leftType.IsStringType() Then 678Debug.Assert(node.Left.Type.IsStringType()) 679Debug.Assert(node.Right.Type.IsStringType()) 754(node.Type.IsBooleanType() AndAlso left.Type.IsStringType() AndAlso right.Type.IsStringType()))
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (8)
413If resultType.IsStringType Then 421ElseIf operandType.IsStringType Then 600If operandType.IsStringType Then 619If resultType.IsStringType Then 848ElseIf underlyingTypeFrom.IsStringType() AndAlso 852ElseIf underlyingTypeTo.IsStringType() AndAlso 997Debug.Assert(typeTo.IsStringType()) 1084Debug.Assert(typeFrom.IsStringType())
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
35(operand.Type.IsArrayType OrElse operand.Type.IsStringType) Then 132ElseIf collectionType.IsStringType Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (1)
311Debug.Assert(stringType.IsStringType)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (2)
111If rewrittenSelectExpression.Type.IsStringType Then 342Debug.Assert(node.ExpressionStatement.Expression.Type.IsStringType)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (3)
36Debug.Assert(node.Type.IsStringType() AndAlso 37node.Left.Type.IsStringType() AndAlso 38node.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 722If destination.IsStringType() Then 750If IsStringType(sourceType) Then 767If 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 1091ElseIf leftUnderlying.IsStringType() Then
Semantics\OverloadResolution.vb (2)
3114Debug.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)
447If Type.IsStringType() Then 494If 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)
285Assert.Equal(If(testType.IsStringType(), ConstantValueTypeDiscriminator.Nothing, testType.GetConstantValueTypeDiscriminator()), resultValue.Discriminator) 335Dim zero = ConstantValue.Default(If(convertibleType.IsStringType(), ConstantValueTypeDiscriminator.Nothing, convertibleType.GetConstantValueTypeDiscriminator())) 337If convertibleType.IsStringType() Then 366Dim zero = ConstantValue.Default(If(type1.IsStringType(), ConstantValueTypeDiscriminator.Nothing, type1.GetConstantValueTypeDiscriminator())) 368If type1.IsStringType() Then