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()))
234
Debug.Assert(argument.
IsNothingLiteral
() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.IsErrorType()))
459
ElseIf Not argument.
IsNothingLiteral
() AndAlso argument.Kind <> BoundKind.ArrayLiteral Then
464
Not argument.
IsNothingLiteral
() OrElse
504
Debug.Assert(argument.
IsNothingLiteral
() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.IsErrorType()))
1205
If argument.Type Is Nothing AndAlso Not argument.
IsNothingLiteral
() Then
Binding\Binder_Expressions.vb (22)
536
If Not expression.
IsNothingLiteral
Then
551
If expression.
IsNothingLiteral
Then
990
If Not expr.
IsNothingLiteral
() Then
1236
If Not expr.
IsNothingLiteral
() Then
1351
If expr.Kind = BoundKind.Parenthesized AndAlso Not expr.
IsNothingLiteral
() Then
1435
If expr.
IsNothingLiteral
() Then
1942
If boundWhenTrueArg.
IsNothingLiteral
AndAlso boundWhenFalseArg.
IsNothingLiteral
Then
1995
(candidate.
IsNothingLiteral
OrElse (candidate.Type IsNot Nothing AndAlso candidate.Type.AllowsCompileTimeOperations()))
2008
If boundFirstArg.
IsNothingLiteral
AndAlso boundSecondArg.
IsNothingLiteral
Then
2013
ElseIf boundFirstArg.Type IsNot Nothing AndAlso boundFirstArg.Type.IsNullableType AndAlso boundSecondArg.
IsNothingLiteral
Then
2049
(boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.ConstantValueOpt.IsString) Then
2053
If (boundFirstArg.
IsNothingLiteral
) Then
2056
If Not boundSecondArg.
IsNothingLiteral
Then
2083
If boundFirstArg.
IsNothingLiteral
Then
2096
If boundFirstArg.
IsNothingLiteral
Then
2106
Debug.Assert(hasErrors OrElse boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.Type IsNot Nothing)
2119
If Not hasErrors AndAlso Not (boundFirstArg.
IsNothingLiteral
OrElse boundFirstArg.Type.IsNullableType OrElse boundFirstArg.Type.IsReferenceType) Then
4521
If Not expression.
IsNothingLiteral
Then
4564
If Not expression.
IsNothingLiteral
Then
4676
If operand.
IsNothingLiteral
() Then
Binding\Binder_Invocation.vb (1)
2332
paramArrayArgument.
IsNothingLiteral
() Then
Binding\Binder_Latebound.vb (1)
137
If receiver.
IsNothingLiteral
Then
Binding\Binder_Operators.vb (8)
103
If targetArgument.
IsNothingLiteral
() Then
116
If Not otherArgument.HasErrors AndAlso Not otherArgument.
IsNothingLiteral
() Then
125
If Not otherArgument.HasErrors AndAlso Not otherArgument.
IsNothingLiteral
() Then
956
Return cast.
IsNothingLiteral
()
1016
If left.
IsNothingLiteral
() Then
1018
If right.
IsNothingLiteral
() Then
1101
ElseIf right.
IsNothingLiteral
() Then
1139
If Not operand.HasErrors AndAlso operand.
IsNothingLiteral
Then
Binding\Binder_Query.vb (1)
2338
If predicate.
IsNothingLiteral
() Then
Binding\Binder_Statements.vb (11)
1386
If Not inferFrom.
IsNothingLiteral
Then
1581
If Not collectionExpression.IsLValue AndAlso Not collectionExpression.
IsNothingLiteral
Then
3414
If Not collection.IsLValue AndAlso Not collection.
IsNothingLiteral
Then
3775
If Not collection.
IsNothingLiteral
AndAlso
3812
If ((collection.
IsNothingLiteral
OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <> OptionStrict.On) OrElse
3813
(Not collection.
IsNothingLiteral
AndAlso Not collectionType.IsArrayType AndAlso IsOrInheritsFromOrImplementsInterface(collectionType, ienumerable, useSiteInfo, matchingInterfaces)) Then
3815
Debug.Assert(collection.
IsNothingLiteral
OrElse collectionType.IsObjectType OrElse (TypeSymbol.Equals(matchingInterfaces.First, ienumerable, TypeCompareKind.ConsiderEverything) AndAlso matchingInterfaces.Count = 1))
3828
Debug.Assert(collectionType IsNot Nothing OrElse collection.
IsNothingLiteral
AndAlso Me.OptionStrict = OptionStrict.On)
3832
If collection.
IsNothingLiteral
Then
4008
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.
IsNothingLiteral
)
4089
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)
435
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)
224
If originalLeft.
IsNothingLiteral
Then
231
ElseIf originalRight.
IsNothingLiteral
Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
63
If operand.
IsNothingLiteral
() Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (3)
1310
Debug.Assert(left.
IsNothingLiteral
OrElse right.
IsNothingLiteral
)
1317
Return RewriteNullableIsOrIsNotOperator((node.OperatorKind And BinaryOperatorKind.OpMask) = BinaryOperatorKind.Is, If(left.
IsNothingLiteral
, right, left), node.Type)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
183
Debug.Assert(testExpr.
IsNothingLiteral
OrElse Not testExpr.Type.IsValueType)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
719
If operand.
IsNothingLiteral
() Then
821
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)
625
Debug.Assert(Not expression.
IsNothingLiteral
) ' Not supported yet
636
Debug.Assert(expression.
IsNothingLiteral
OrElse expression.Type.IsReferenceType OrElse expression.Type.IsTypeParameter()) 'Others are not supported yet
637
Debug.Assert(type.IsReferenceType OrElse (type.IsTypeParameter AndAlso expression.
IsNothingLiteral
)) 'Others are not supported yet
643
If(expression.
IsNothingLiteral
,
1015
If arg.
IsNothingLiteral
() Then
Semantics\Conversions.vb (2)
723
If source.
IsNothingLiteral
() Then
4254
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)
956
If paramArrayItems.Count = 1 AndAlso arguments(paramArrayItems(0)).
IsNothingLiteral
() Then
1025
If Not argument.
IsNothingLiteral
Then
Symbols\ConstantValueUtils.vb (1)
43
If boundValue.
IsNothingLiteral
Then