87 references to IsNothingLiteral
Microsoft.CodeAnalysis.VisualBasic (87)
Binding\Binder_Conversions.vb (6)
117
Debug.Assert(argument.
IsNothingLiteral
() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.IsErrorType()))
230
Debug.Assert(argument.
IsNothingLiteral
() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.IsErrorType()))
451
ElseIf Not argument.
IsNothingLiteral
() AndAlso argument.Kind <> BoundKind.ArrayLiteral Then
456
Not argument.
IsNothingLiteral
() OrElse
496
Debug.Assert(argument.
IsNothingLiteral
() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.IsErrorType()))
1192
If argument.Type Is Nothing AndAlso Not argument.
IsNothingLiteral
() Then
Binding\Binder_Expressions.vb (22)
515
If Not expression.
IsNothingLiteral
Then
530
If expression.
IsNothingLiteral
Then
969
If Not expr.
IsNothingLiteral
() Then
1215
If Not expr.
IsNothingLiteral
() Then
1330
If expr.Kind = BoundKind.Parenthesized AndAlso Not expr.
IsNothingLiteral
() Then
1410
If expr.
IsNothingLiteral
() Then
1917
If boundWhenTrueArg.
IsNothingLiteral
AndAlso boundWhenFalseArg.
IsNothingLiteral
Then
1970
(candidate.
IsNothingLiteral
OrElse (candidate.Type IsNot Nothing AndAlso candidate.Type.AllowsCompileTimeOperations()))
1983
If boundFirstArg.
IsNothingLiteral
AndAlso boundSecondArg.
IsNothingLiteral
Then
1988
ElseIf boundFirstArg.Type IsNot Nothing AndAlso boundFirstArg.Type.IsNullableType AndAlso boundSecondArg.
IsNothingLiteral
Then
2024
(boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.ConstantValueOpt.IsString) Then
2028
If (boundFirstArg.
IsNothingLiteral
) Then
2031
If Not boundSecondArg.
IsNothingLiteral
Then
2058
If boundFirstArg.
IsNothingLiteral
Then
2071
If boundFirstArg.
IsNothingLiteral
Then
2081
Debug.Assert(hasErrors OrElse boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.Type IsNot Nothing)
2094
If Not hasErrors AndAlso Not (boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.Type.IsNullableType OrElse boundFirstArg.Type.IsReferenceType) Then
4494
If Not expression.
IsNothingLiteral
Then
4537
If Not expression.
IsNothingLiteral
Then
4649
If operand.
IsNothingLiteral
() Then
Binding\Binder_Invocation.vb (1)
2338
paramArrayArgument.
IsNothingLiteral
() Then
Binding\Binder_Latebound.vb (1)
137
If receiver.
IsNothingLiteral
Then
Binding\Binder_Operators.vb (8)
73
If targetArgument.
IsNothingLiteral
() Then
86
If Not otherArgument.HasErrors AndAlso Not otherArgument.
IsNothingLiteral
() Then
95
If Not otherArgument.HasErrors AndAlso Not otherArgument.
IsNothingLiteral
() Then
926
Return cast.
IsNothingLiteral
()
986
If left.
IsNothingLiteral
() Then
988
If right.
IsNothingLiteral
() Then
1071
ElseIf right.
IsNothingLiteral
() Then
1109
If Not operand.HasErrors AndAlso operand.
IsNothingLiteral
Then
Binding\Binder_Query.vb (1)
2338
If predicate.
IsNothingLiteral
() Then
Binding\Binder_Statements.vb (11)
1357
If Not inferFrom.
IsNothingLiteral
Then
1552
If Not collectionExpression.IsLValue AndAlso Not collectionExpression.
IsNothingLiteral
Then
3385
If Not collection.IsLValue AndAlso Not collection.
IsNothingLiteral
Then
3746
If Not collection.
IsNothingLiteral
AndAlso
3783
If ((collection.
IsNothingLiteral
OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <> OptionStrict.On) OrElse
3784
(Not collection.
IsNothingLiteral
AndAlso Not collectionType.IsArrayType AndAlso IsOrInheritsFromOrImplementsInterface(collectionType, ienumerable, useSiteInfo, matchingInterfaces)) Then
3786
Debug.Assert(collection.
IsNothingLiteral
OrElse collectionType.IsObjectType OrElse (TypeSymbol.Equals(matchingInterfaces.First, ienumerable, TypeCompareKind.ConsiderEverything) AndAlso matchingInterfaces.Count = 1))
3799
Debug.Assert(collectionType IsNot Nothing OrElse collection.
IsNothingLiteral
AndAlso Me.OptionStrict = OptionStrict.On)
3803
If collection.
IsNothingLiteral
Then
3979
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.
IsNothingLiteral
)
4060
If collection.
IsNothingLiteral
OrElse
Binding\Binder_Utils.vb (1)
1400
If operand.
IsNothingLiteral
Then
BoundTree\BoundBinaryConditionalExpression.vb (1)
28
Debug.Assert(ElseExpression.
IsNothingLiteral
() OrElse
BoundTree\BoundExpressionExtensions.vb (2)
489
If Not
IsNothingLiteral
(node) Then
642
node.
IsNothingLiteral
() OrElse
BoundTree\BoundTernaryConditionalExpression.vb (1)
23
Debug.Assert(Condition.
IsNothingLiteral
() OrElse Condition.Type.IsBooleanType() OrElse Not Condition.Type.IsValueType)
CodeGen\EmitConversion.vb (4)
158
If conversion.Operand.
IsNothingLiteral
Then
287
Return Not conversion.Operand.
IsNothingLiteral
AndAlso
305
If conversion.Operand.
IsNothingLiteral
Then
470
If conversion.Operand.
IsNothingLiteral
Then
CodeGen\EmitOperators.vb (1)
418
Debug.Assert(operandType IsNot Nothing OrElse (binOp.Left.
IsNothingLiteral
() AndAlso (opKind = BinaryOperatorKind.Is OrElse opKind = BinaryOperatorKind.IsNot)))
CodeGen\EmitStatement.vb (4)
520
Debug.Assert(nonConstType IsNot Nothing OrElse (nonConstOp.
IsNothingLiteral
() AndAlso (opKind = BinaryOperatorKind.Is OrElse opKind = BinaryOperatorKind.IsNot)))
567
Debug.Assert(operandType IsNot Nothing OrElse (expression.Left.
IsNothingLiteral
() AndAlso (opKind = BinaryOperatorKind.Is OrElse opKind = BinaryOperatorKind.IsNot)))
815
Debug.Assert(binOp.Left.
IsNothingLiteral
() OrElse binOp.Left.Type.SpecialType = SpecialType.System_Object OrElse binOp.WasCompilerGenerated)
816
Debug.Assert(binOp.Right.
IsNothingLiteral
() OrElse binOp.Right.Type.SpecialType = SpecialType.System_Object OrElse binOp.WasCompilerGenerated)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
160
If originalLeft.
IsNothingLiteral
Then
167
ElseIf originalRight.
IsNothingLiteral
Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
63
If operand.
IsNothingLiteral
() Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (3)
1315
Debug.Assert(left.
IsNothingLiteral
OrElse right.
IsNothingLiteral
)
1322
Return RewriteNullableIsOrIsNotOperator((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Is, If(left.
IsNothingLiteral
, right, left), node.Type)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
188
Debug.Assert(testExpr.
IsNothingLiteral
OrElse Not testExpr.Type.IsValueType)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
805
If operand.
IsNothingLiteral
() Then
907
Debug.Assert(node.Operand.
IsNothingLiteral
() OrElse
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
34
If Not conversion.ExplicitCastInCode AndAlso Not operand.
IsNothingLiteral
AndAlso
Lowering\SyntheticBoundNodeFactory.vb (5)
621
Debug.Assert(Not expression.
IsNothingLiteral
) ' Not supported yet
632
Debug.Assert(expression.
IsNothingLiteral
OrElse expression.Type.IsReferenceType OrElse expression.Type.IsTypeParameter()) 'Others are not supported yet
633
Debug.Assert(type.IsReferenceType OrElse (type.IsTypeParameter AndAlso expression.
IsNothingLiteral
)) 'Others are not supported yet
639
If(expression.
IsNothingLiteral
,
981
If arg.
IsNothingLiteral
() Then
Semantics\Conversions.vb (2)
719
If source.
IsNothingLiteral
() Then
4249
Debug.Assert(conversion.Operand.
IsNothingLiteral
() OrElse conversion.Operand.Kind = BoundKind.Lambda)
Semantics\OverloadResolution.vb (3)
2968
Debug.Assert(paramArrayArgument.
IsNothingLiteral
())
3002
If paramArrayItems.Count = 1 AndAlso arguments(paramArrayItems(0)).
IsNothingLiteral
() AndAlso Not forceExpandedForm Then
3449
If
IsNothingLiteral
(expression) Then
Semantics\TypeInference\TypeArgumentInference.vb (2)
960
If paramArrayItems.Count = 1 AndAlso arguments(paramArrayItems(0)).
IsNothingLiteral
() Then
1029
If Not argument.
IsNothingLiteral
Then
Symbols\ConstantValueUtils.vb (1)
43
If boundValue.
IsNothingLiteral
Then