753 references to Kind
Microsoft.CodeAnalysis.VisualBasic (753)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
92
Select Case Branch.
Kind
Analysis\FlowAnalysis\AbstractFlowPass.vb (20)
399
Select Case pending.Branch.
Kind
425
Select Case pending.Branch.
Kind
460
Select Case branch.
Kind
474
Throw ExceptionUtilities.UnexpectedValue(branch.
Kind
)
719
Select Case node.
Kind
799
Select Case node.
Kind
893
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
896
If initializerExpr.
Kind
= BoundKind.LValueToRValueWrapper Then
919
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
922
If initializerExpr.
Kind
= BoundKind.LValueToRValueWrapper Then
984
Select Case node.
Kind
1117
If member.
Kind
<> BoundKind.LateMemberAccess Then
1185
Dim kind As BoundKind = originalReceiver.
Kind
1313
Dim kind As BoundKind = originalReceiver.
Kind
1727
Dim kind As BoundKind = originalReceiver.
Kind
1862
Select Case clause.
Kind
1870
Throw ExceptionUtilities.UnexpectedValue(clause.
Kind
)
2126
If child.
Kind
<> BoundKind.BinaryOperator Then
2637
Debug.Assert(item.
Kind
= BoundKind.Literal OrElse item.
Kind
= BoundKind.Interpolation)
Analysis\FlowAnalysis\ControlFlowPass.vb (4)
76
Select Case statement.
Kind
83
Select Case statement.
Kind
140
if branch.Branch.
Kind
= BoundKind.YieldStatement
162
If branch.Branch.
Kind
= BoundKind.YieldStatement
Analysis\FlowAnalysis\DataFlowPass.vb (17)
299
Select Case node.
Kind
419
Select Case node.
Kind
452
If fieldsymbol.IsShared OrElse receiverOpt Is Nothing OrElse receiverOpt.
Kind
= BoundKind.TypeExpression Then
997
If node.
Kind
= BoundKind.Local Then
1018
Select Case node.
Kind
1120
Select Case receiver.
Kind
1340
Select Case node.
Kind
1649
Select Case value.
Kind
1806
If left.
Kind
= BoundKind.Local Then
1882
If variableDeclarations.
Kind
= BoundKind.AsNewLocalDeclarations Then
1909
If variableDeclarations.
Kind
= BoundKind.AsNewLocalDeclarations Then
1954
Select Case expr.
Kind
1969
Throw ExceptionUtilities.UnexpectedValue(expr.
Kind
) ' TODO: is this reachable at all?
2023
(boundInitializer.
Kind
= BoundKind.ObjectCreationExpression OrElse boundInitializer.
Kind
= BoundKind.NewT) Then
2026
If boundInitializerBase IsNot Nothing AndAlso boundInitializerBase.
Kind
= BoundKind.ObjectInitializerExpression Then
2118
node.
Kind
= BoundKind.ObjectInitializerExpression AndAlso
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
99
Select Case node.
Kind
Analysis\FlowAnalysis\EntryPointsWalker.vb (2)
48
Select Case stmt.
Kind
56
Throw ExceptionUtilities.UnexpectedValue(stmt.
Kind
)
Analysis\FlowAnalysis\ExitPointsWalker.vb (2)
103
Select Case pending.Branch.
Kind
120
Throw ExceptionUtilities.UnexpectedValue(pending.Branch.
Kind
) ' there are no other branch statements
Analysis\FlowAnalysis\ReadWriteWalker.vb (2)
115
If node.
Kind
= BoundKind.FieldAccess Then NoteReceiverWritten(CType(node, BoundFieldAccess))
133
Select Case receiver.
Kind
Analysis\FlowAnalysis\RegionAnalysisContext.vb (1)
65
Select Case Me._firstInRegion.
Kind
Analysis\ForLoopVerification.vb (2)
73
controlVariable.
Kind
= BoundKind.BadExpression OrElse
132
Select Case expression.
Kind
Analysis\InitializerRewriter.vb (6)
208
initializer.
Kind
= BoundKind.GlobalStatementInitializer Then
210
If statement.
Kind
= BoundKind.ExpressionStatement Then
237
Select Case initializer.
Kind
243
Throw ExceptionUtilities.UnexpectedValue(initializer.
Kind
)
264
If firstBoundStatement.
Kind
= BoundKind.ExpressionStatement Then
267
If expression.
Kind
= BoundKind.Call Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
263
If right.
Kind
= BoundKind.ObjectCreationExpression Then
267
If arg0.
Kind
= BoundKind.Local AndAlso DirectCast(arg0, BoundLocal).LocalSymbol Is local Then
Binding\Binder_Attributes.vb (5)
572
If expression.
Kind
= BoundKind.GetType Then
575
ElseIf expression.
Kind
= BoundKind.ArrayCreation Then
727
Select Case argument.
Kind
731
Select Case assignment.Left.
Kind
755
Select Case node.
Kind
Binding\Binder_Conversions.vb (15)
98
Debug.Assert(argument.
Kind
<> BoundKind.DirectCast, "Associated wrong node with conversion?")
215
Debug.Assert(argument.
Kind
<> BoundKind.TryCast, "Associated wrong node with conversion?")
454
Debug.Assert(argument.
Kind
<> BoundKind.Conversion, "Associated wrong node with conversion?")
459
ElseIf Not argument.IsNothingLiteral() AndAlso argument.
Kind
<> BoundKind.ArrayLiteral Then
463
Debug.Assert(argument.
Kind
<> BoundKind.Conversion OrElse DirectCast(argument, BoundConversion).ExplicitCastInCode OrElse
474
Debug.Assert(argument.
Kind
<> BoundKind.ArrayLiteral OrElse (convKind.Key And ConversionKind.UserDefined) <> 0)
477
If argument.
Kind
= BoundKind.ArrayLiteral Then
1113
If argument.
Kind
= BoundKind.ArrayLiteral Then
1135
Debug.Assert(oldArgument IsNot argument AndAlso argument.
Kind
= BoundKind.Conversion)
1168
Debug.Assert(oldArgument IsNot argument AndAlso argument.
Kind
= BoundKind.Conversion)
1201
Debug.Assert(argument.
Kind
<> BoundKind.GroupTypeInferenceLambda)
1203
Select Case argument.
Kind
1266
If argument.
Kind
<> BoundKind.DelegateCreationExpression Then
1288
Return argument.
Kind
= BoundKind.Conversion
1585
If lambda.Expression.
Kind
= BoundKind.RangeVariableAssignment Then
Binding\Binder_Delegates.vb (10)
50
If boundOperand.
Kind
= BoundKind.LateMemberAccess Then
55
If boundOperand.
Kind
<> BoundKind.MethodGroup Then
122
Debug.Assert(boundFirstArgument.
Kind
= BoundKind.BadExpression OrElse
123
boundFirstArgument.
Kind
= BoundKind.LateAddressOfOperator OrElse
124
boundFirstArgument.
Kind
= BoundKind.AddressOfOperator OrElse
125
boundFirstArgument.
Kind
= BoundKind.UnboundLambda)
136
Debug.Assert(boundFirstArgument.
Kind
<> BoundKind.Conversion, "Associated wrong node with conversion?")
138
ElseIf boundFirstArgument.
Kind
= BoundKind.Conversion Then
1240
methodGroup.ReceiverOpt.
Kind
= BoundKind.Conversion Then
1244
receiver.Operand.
Kind
= BoundKind.Lambda AndAlso
Binding\Binder_Expressions.vb (52)
48
If IsEarlyAttributeBinder AndAlso result.
Kind
= BoundKind.MethodGroup AndAlso Not IsNameOfArgument(node) Then
121
If operand.
Kind
= BoundKind.TypeExpression Then
125
ElseIf operand.
Kind
= BoundKind.ArrayLiteral Then
540
Select Case expression.
Kind
630
result.
Kind
= BoundKind.NamespaceExpression Then
725
Select Case argument.
Kind
859
If receiver.
Kind
= BoundKind.TypeOrValueExpression Then
871
If receiver.
Kind
= BoundKind.TypeOrValueExpression Then
893
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
906
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
909
Select Case group.
Kind
927
Throw ExceptionUtilities.UnexpectedValue(group.
Kind
)
963
If expr.
Kind
= BoundKind.ConditionalAccess AndAlso expr.Type Is Nothing Then
988
Select Case expr.
Kind
1148
Select Case result.
Kind
1175
Throw ExceptionUtilities.UnexpectedValue(result.
Kind
)
1235
If expr.
Kind
= BoundKind.Parenthesized Then
1262
ElseIf expr.
Kind
= BoundKind.PropertyAccess Then
1307
ElseIf expr.
Kind
= BoundKind.AddressOfOperator Then
1315
If receiverOpt Is Nothing OrElse receiverOpt.
Kind
= BoundKind.MyBaseReference Then
1351
If expr.
Kind
= BoundKind.Parenthesized AndAlso Not expr.IsNothingLiteral() Then
1356
ElseIf expr.
Kind
= BoundKind.XmlMemberAccess Then
1381
ElseIf expr.
Kind
= BoundKind.PropertyAccess Then
1403
ElseIf expr.
Kind
= BoundKind.InterpolatedStringExpression Then
1443
Select Case expr.
Kind
1641
If expr.
Kind
= BoundKind.ArrayInitialization Then
1726
ElseIf expression.
Kind
= BoundKind.LateInvocation Then
1751
Select Case expression.
Kind
1811
If node.
Kind
= BoundKind.FieldAccess Then
1825
ElseIf node.
Kind
= BoundKind.Local Then
2712
If boundLeft.
Kind
= BoundKind.PropertyGroup Then
2851
If(left.
Kind
= BoundKind.TypeExpression, QualificationKind.QualifiedViaTypeName, QualificationKind.QualifiedViaValue),
2878
If left.
Kind
= BoundKind.NamespaceExpression Then
2901
ElseIf left.
Kind
= BoundKind.TypeExpression Then
2935
Dim effectiveOptions = If(left.
Kind
<> BoundKind.MyBaseReference, options,
3175
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
3207
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
3377
If receiver.
Kind
= BoundKind.NamespaceExpression Then
3459
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.NamespaceExpression Then
3640
receiver.
Kind
<> BoundKind.TypeOrValueExpression AndAlso receiver.
Kind
<> BoundKind.MyBaseReference AndAlso
3662
receiver.
Kind
= BoundKind.TypeExpression Then
3674
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeExpression AndAlso IsReceiverOfNameOfArgument(receiver.Syntax) Then
3755
If Not left.IsLValue AndAlso left.
Kind
<> BoundKind.LateMemberAccess Then
3780
Debug.Assert(defaultPropertyGroup Is Nothing OrElse defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup OrElse
3781
defaultPropertyGroup.
Kind
= BoundKind.MethodGroup OrElse defaultPropertyGroup.HasErrors)
3784
If defaultPropertyGroup IsNot Nothing AndAlso defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup Then
4525
Dim expressionKind As BoundKind = expression.
Kind
4665
operand.
Kind
= BoundKind.Call Then
4768
getAwaiter.
Kind
<> BoundKind.Call OrElse
4816
isCompleted.
Kind
<> BoundKind.PropertyAccess OrElse
4863
getResult.
Kind
<> BoundKind.Call Then
Binding\Binder_Initializers.vb (1)
211
If Me.Compilation.IsSubmission AndAlso isLast AndAlso boundStatement.
Kind
= BoundKind.ExpressionStatement AndAlso Not boundStatement.HasErrors Then
Binding\Binder_InterpolatedString.vb (1)
177
Select Case item.
Kind
Binding\Binder_Invocation.vb (46)
75
If receiver IsNot Nothing AndAlso (receiver.
Kind
= BoundKind.MeReference OrElse
76
receiver.
Kind
= BoundKind.MyBaseReference OrElse
77
receiver.
Kind
= BoundKind.MyClassReference) Then
139
If expr.
Kind
= BoundKind.Call Then
180
If target.
Kind
= BoundKind.MethodGroup Then
192
If target.
Kind
= BoundKind.MethodGroup OrElse target.
Kind
= BoundKind.PropertyGroup Then
204
If target.
Kind
= BoundKind.NamespaceExpression Then
209
ElseIf target.
Kind
= BoundKind.TypeExpression Then
261
Debug.Assert(target.
Kind
<> BoundKind.NamespaceExpression)
262
Debug.Assert(target.
Kind
<> BoundKind.TypeExpression)
263
Debug.Assert(target.
Kind
<> BoundKind.MethodGroup)
264
Debug.Assert(target.
Kind
<> BoundKind.PropertyGroup)
268
If Not target.IsLValue AndAlso target.
Kind
<> BoundKind.LateMemberAccess Then
331
If target.
Kind
= BoundKind.BadExpression Then
344
suppressLateBindingResolutionDiagnostics:=(target.
Kind
= BoundKind.LateMemberAccess))
352
Debug.Assert(defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup OrElse
353
defaultPropertyGroup.
Kind
= BoundKind.MethodGroup OrElse
358
If defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup OrElse defaultPropertyGroup.
Kind
= BoundKind.MethodGroup Then
374
ElseIf target.
Kind
= BoundKind.LateMemberAccess Then
427
If withoutArgs.
Kind
= BoundKind.Call OrElse withoutArgs.
Kind
= BoundKind.PropertyAccess Then
433
If withoutArgs.
Kind
= BoundKind.PropertyAccess Then
448
If withoutArgs.
Kind
= BoundKind.BadExpression Then
533
Debug.Assert((defaultMemberGroup.
Kind
= BoundKind.BadExpression) OrElse (defaultMemberGroup.
Kind
= BoundKind.PropertyGroup))
589
If group.
Kind
= BoundKind.MethodGroup Then
713
If group.
Kind
= BoundKind.MethodGroup Then
761
If group.
Kind
= BoundKind.MethodGroup Then
991
([property].IsShared OrElse (propertyAccess.ReceiverOpt IsNot Nothing AndAlso propertyAccess.ReceiverOpt.
Kind
= BoundKind.MeReference)) Then
1012
Select Case node.
Kind
1020
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
1050
Select Case oldReceiver.
Kind
1446
Debug.Assert(groupOpt IsNot Nothing AndAlso groupOpt.
Kind
= BoundKind.MethodGroup)
1491
groupOpt.
Kind
= BoundKind.PropertyGroup Then
1948
argument.
Kind
= BoundKind.UnboundLambda Then
2087
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
2405
If argument Is Nothing OrElse argument.
Kind
= BoundKind.OmittedArgument Then
2599
If argument.
Kind
= BoundKind.QueryLambda AndAlso targetDelegateType IsNot Nothing Then
2661
If arguments(i).
Kind
<> BoundKind.OmittedArgument Then
2677
If arguments(i).
Kind
<> BoundKind.OmittedArgument Then
2835
If isLValue AndAlso argument.
Kind
= BoundKind.PropertyAccess Then
2871
If argument.
Kind
= BoundKind.LateInvocation Then
2878
(copyBackExpression.
Kind
= BoundKind.AssignmentOperator AndAlso
3188
If Not (convertedValue.
Kind
= BoundKind.Conversion AndAlso (DirectCast(convertedValue, BoundConversion).ConversionKind And ConversionKind.UserDefined) <> 0) Then
Binding\Binder_Lambda.vb (5)
373
If node.ExpressionOpt.
Kind
= BoundKind.Local Then
681
If argument.
Kind
= BoundKind.PropertyAccess Then
696
ElseIf argument.
Kind
= BoundKind.FieldAccess Then
740
If receiverOpt Is Nothing OrElse receiverOpt.
Kind
<> BoundKind.FieldAccess Then
752
Loop While receiverOpt IsNot Nothing AndAlso receiverOpt.
Kind
= BoundKind.FieldAccess
Binding\Binder_Latebound.vb (9)
63
receiver.
Kind
= BoundKind.MeReference AndAlso
95
(receiver.
Kind
= BoundKind.TypeExpression OrElse receiver.
Kind
= BoundKind.NamespaceExpression) Then
130
Debug.Assert(receiver IsNot Nothing AndAlso receiver.
Kind
<> BoundKind.TypeOrValueExpression)
131
Debug.Assert(groupOpt Is Nothing OrElse groupOpt.ReceiverOpt Is Nothing OrElse groupOpt.ReceiverOpt.
Kind
<> BoundKind.TypeOrValueExpression)
164
Dim isIndexing As Boolean = receiver IsNot Nothing AndAlso Not receiver.
Kind
= BoundKind.LateMemberAccess
177
If argument.
Kind
= BoundKind.OmittedArgument Then
217
receiver.
Kind
= BoundKind.MeReference AndAlso
223
If receiver IsNot Nothing AndAlso Not receiver.IsLValue AndAlso receiver.
Kind
<> BoundKind.LateMemberAccess Then
Binding\Binder_ObjectInitializer.vb (4)
729
If target.
Kind
= BoundKind.FieldAccess OrElse target.
Kind
= BoundKind.PropertyGroup Then
752
If target.
Kind
= BoundKind.FieldAccess Then
994
If invocation.
Kind
= BoundKind.LateInvocation Then
Binding\Binder_Operators.vb (5)
474
If explicitSemanticForConcatArgument AndAlso left IsNot beforeConversion AndAlso left.
Kind
= BoundKind.Conversion Then
502
If explicitSemanticForConcatArgument AndAlso right IsNot beforeConversion AndAlso right.
Kind
= BoundKind.Conversion Then
931
While cast.
Kind
= BoundKind.Conversion OrElse cast.
Kind
= BoundKind.DirectCast
939
Select Case cast.
Kind
Binding\Binder_Query.vb (9)
175
If Not source.Type.IsErrorType() AndAlso source.
Kind
= BoundKind.QueryableSource AndAlso
176
DirectCast(source, BoundQueryableSource).Source.
Kind
= BoundKind.QuerySource Then
412
Dim suppressCallDiagnostics As Boolean = (firstSelectExpression.
Kind
= BoundKind.BadExpression)
414
If Not suppressCallDiagnostics AndAlso firstSelectExpression.HasErrors AndAlso firstSelectExpression.
Kind
= BoundKind.QueryClause Then
416
suppressCallDiagnostics = query.UnderlyingExpression.
Kind
= BoundKind.BadExpression
4357
If Not asQueryable.HasErrors AndAlso asQueryable.
Kind
= BoundKind.Call Then
4375
If Not asEnumerable.HasErrors AndAlso asEnumerable.
Kind
= BoundKind.Call Then
4398
If Not cast.HasErrors AndAlso cast.
Kind
= BoundKind.Call Then
4676
If arg.
Kind
= BoundKind.QueryLambda Then
Binding\Binder_SelectCase.vb (2)
455
Select Case caseClause.
Kind
466
Throw ExceptionUtilities.UnexpectedValue(caseClause.
Kind
)
Binding\Binder_Statements.vb (29)
276
Select Case clause.
Kind
284
Throw ExceptionUtilities.UnexpectedValue(clause.
Kind
)
427
Debug.Assert(initializer.Expression.
Kind
= BoundKind.Call OrElse
558
If(_enclosingSyncLockOrUsing.
Kind
= BoundKind.UsingStatement,
833
If boundLabelExpression.
Kind
= BoundKind.Label Then
1258
Debug.Assert(declarationInitializer.
Kind
= BoundKind.BadExpression)
1393
Select Case inferFrom.
Kind
1926
Select Case op1.
Kind
2087
Select Case boundStatement.
Kind
2116
Select Case localDecl.
Kind
2126
Throw ExceptionUtilities.UnexpectedValue(localDecl.
Kind
)
2258
Debug.Assert((original.
Kind
= BoundKind.CompoundAssignmentTargetPlaceholder) = (right.
Kind
= BoundKind.MidResult) OrElse original.HasErrors OrElse right.HasErrors)
2283
If toCheck.
Kind
= BoundKind.UnboundLambda Then
2306
handlerExpression.
Kind
= BoundKind.DelegateCreationExpression AndAlso
2435
If notParenthesized.
Kind
= BoundKind.EventAccess Then
2464
If target.
Kind
<> BoundKind.EventAccess Then
2633
If boundExpression.
Kind
= BoundKind.ConditionalAccess Then
2639
Not boundExpression.
Kind
= BoundKind.AwaitOperator AndAlso
2663
If boundExpression.
Kind
= BoundKind.Call Then
2720
Select Case boundInvocation.
Kind
3178
If stepValue IsNot stepValueBeforeConversion AndAlso stepValue.
Kind
= BoundKind.Conversion AndAlso
4008
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.
Kind
= BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral)
4164
boundMoveNextCall.
Kind
<> BoundKind.Call OrElse
4471
If localDeclarations.
Kind
<> BoundKind.AsNewLocalDeclarations Then
4483
If localDeclarations.
Kind
= BoundKind.LocalDeclaration Then
4822
Dim exprKind = exceptionSource.
Kind
5263
If boundLabelExpression.
Kind
= BoundKind.Label Then
5302
If boundLabelExpression.
Kind
= BoundKind.Label Then
Binding\Binder_Utils.vb (2)
1302
If boundExpression.
Kind
= BoundKind.Local Then
1318
Select Case boundExpression.
Kind
Binding\Binder_WithBlock.vb (2)
109
Debug.Assert(expressionPlaceholder IsNot Nothing AndAlso (expressionPlaceholder.
Kind
= BoundKind.WithLValueExpressionPlaceholder OrElse expressionPlaceholder.
Kind
= BoundKind.WithRValueExpressionPlaceholder))
Binding\Binder_XmlLiterals.vb (2)
243
If (childNode.
Kind
= BoundKind.XmlAttribute) AndAlso DirectCast(childNode, BoundXmlAttribute).MatchesImport Then
281
(expr.
Kind
= BoundKind.XmlEmbeddedExpression) AndAlso
Binding\MemberSemanticModel.vb (31)
123
Select Case boundExpression.
Kind
663
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.QueryableSource Then
684
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.RangeVariableAssignment Then
701
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.RangeVariableAssignment Then
750
If enumeratorInfo.GetEnumerator IsNot Nothing AndAlso enumeratorInfo.GetEnumerator.
Kind
= BoundKind.Call Then
758
If enumeratorInfo.MoveNext IsNot Nothing AndAlso enumeratorInfo.MoveNext.
Kind
= BoundKind.Call Then
766
If enumeratorInfo.Current IsNot Nothing AndAlso enumeratorInfo.Current.
Kind
= BoundKind.PropertyAccess Then
794
If originalCollection.
Kind
= BoundKind.Conversion Then
943
Debug.Assert(bound Is Nothing OrElse bound.
Kind
= BoundKind.QueryExpression)
944
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.QueryExpression Then
962
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.QueryClause Then
964
DirectCast(bound, BoundQueryClause).UnderlyingExpression.
Kind
= BoundKind.QueryClause Then
980
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.QueryClause Then
981
If DirectCast(bound, BoundQueryClause).UnderlyingExpression.
Kind
= BoundKind.QueryClause Then
995
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.Ordering Then
1005
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.AggregateClause Then
1040
If boundNodes(i).
Kind
= BoundKind.QueryClause OrElse boundNodes(i).
Kind
= BoundKind.QueryableSource Then
1054
If bound.
Kind
= BoundKind.QueryClause Then
1062
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.QueryableSource Then
1065
Select Case queryableSource.Source.
Kind
1090
Throw ExceptionUtilities.UnexpectedValue(queryableSource.Source.
Kind
)
1161
node.
Kind
= _targetBoundKind Then
1684
If boundNode Is Nothing OrElse boundNode.
Kind
<> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then
1738
If boundNode Is Nothing OrElse boundNode.
Kind
<> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then
1776
Debug.Assert(boundNode Is Nothing OrElse boundNode.
Kind
= BoundKind.Lambda, "all lambdas should be converted to bound lambdas now")
2078
If bound IsNot Nothing AndAlso bound.
Kind
= BoundKind.AwaitOperator Then
2173
Select Case node.
Kind
2182
Select Case conversion.Operand.
Kind
2219
If node.Left.
Kind
<> BoundKind.BinaryOperator Then
2237
While current.
Kind
= BoundKind.BinaryOperator
BoundTree\BoundArrayCreation.vb (1)
36
If item.
Kind
= BoundKind.ArrayInitialization Then
BoundTree\BoundAssignmentOperator.vb (11)
56
Select Case Left.
Kind
94
(Left.
Kind
= BoundKind.FieldAccess AndAlso
104
If rightNode.
Kind
= BoundKind.Conversion Then
107
If rightNode.
Kind
= BoundKind.UserDefinedConversion Then
112
If rightNode.
Kind
<> BoundKind.MidResult Then
113
Debug.Assert(rightNode.
Kind
= BoundKind.BinaryOperator OrElse
114
rightNode.
Kind
= BoundKind.UserDefinedBinaryOperator)
117
If rightNode.
Kind
= BoundKind.BinaryOperator Then
121
If boundUserDefinedOperator.UnderlyingExpression.
Kind
= BoundKind.Call Then
129
If leftNode.
Kind
= BoundKind.Conversion Then
132
If leftNode.
Kind
= BoundKind.UserDefinedConversion Then
BoundTree\BoundBinaryConditionalExpression.vb (2)
19
ElseIf ConvertedTestExpression.
Kind
<> BoundKind.Conversion Then
21
Debug.Assert(ConvertedTestExpression.
Kind
= BoundKind.BadExpression)
BoundTree\BoundCaseClause.vb (2)
14
Select Case conditionOpt.
Kind
24
ExceptionUtilities.UnexpectedValue(conditionOpt.
Kind
) ' This is going to assert
BoundTree\BoundCollectionInitializerExpression.vb (2)
17
Debug.Assert(initializer.
Kind
= BoundKind.Call OrElse initializer.
Kind
= BoundKind.LateInvocation)
BoundTree\BoundConversion.vb (8)
46
Debug.Assert(((ConversionKind And VisualBasic.ConversionKind.UserDefined) <> 0) = (Operand.
Kind
= BoundKind.UserDefinedConversion))
53
Debug.Assert(ExtendedInfoOpt Is Nothing OrElse ExtendedInfoOpt.
Kind
= BoundKind.RelaxationLambda)
60
Debug.Assert(Operand.
Kind
= BoundKind.ConvertedTupleLiteral OrElse Operand.HasErrors)
62
Debug.Assert(ExtendedInfoOpt.
Kind
= BoundKind.ConvertedTupleElements)
66
If Operand.
Kind
= BoundKind.UserDefinedConversion Then
84
Operand.
Kind
= BoundKind.UserDefinedConversion Then
87
If expr.
Kind
= BoundKind.Conversion Then
91
If expr.
Kind
= BoundKind.Call Then
BoundTree\BoundExpressionExtensions.vb (33)
39
Select Case node.
Kind
69
Select Case node.
Kind
93
Return node.
Kind
= BoundKind.MeReference
98
Return node.
Kind
= BoundKind.MyBaseReference
103
Return node.
Kind
= BoundKind.MyClassReference
118
Select Case node.
Kind
133
Return node.
Kind
= BoundKind.PropertyAccess AndAlso
139
Select Case node.
Kind
153
If node.
Kind
= BoundKind.PropertyAccess Then
162
Select Case node.
Kind
180
Select Case node.
Kind
212
Select Case node.
Kind
223
If group IsNot Nothing AndAlso group.
Kind
= BoundKind.MethodGroup Then
246
Select Case node.
Kind
254
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
261
Select Case node.
Kind
269
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
281
Select Case node.
Kind
292
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
299
Select Case node.
Kind
307
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
319
Select Case node.
Kind
357
While node.
Kind
= BoundKind.Parenthesized
361
Return node.
Kind
= BoundKind.Literal AndAlso
459
Debug.Assert(type IsNot Nothing OrElse node.
Kind
= BoundKind.Literal OrElse node.
Kind
= BoundKind.Parenthesized)
497
Select Case node.
Kind
526
While expression.
Kind
= BoundKind.Parenthesized
534
Select Case node.
Kind
589
Select Case node.
Kind
643
node.GetMostEnclosedParenthesizedExpression().
Kind
= BoundKind.AddressOfOperator OrElse
644
node.GetMostEnclosedParenthesizedExpression().
Kind
= BoundKind.Lambda OrElse
645
node.
Kind
= BoundKind.QueryLambda,
BoundTree\BoundInterpolatedStringExpression.vb (1)
25
If item.
Kind
= BoundKind.Interpolation Then Return True
BoundTree\BoundLateBoundArgumentSupportingAssignmentWithCapture.vb (1)
15
Debug.Assert(OriginalArgument.
Kind
<> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture)
BoundTree\BoundLateInvocation.vb (2)
24
If member.
Kind
= BoundKind.LateMemberAccess Then
35
If Member.
Kind
= BoundKind.LateMemberAccess Then
BoundTree\BoundLateMemberAccess.vb (1)
37
Debug.Assert(ReceiverOpt Is Nothing OrElse ReceiverOpt.
Kind
<> BoundKind.TypeExpression)
BoundTree\BoundMethodOrPropertyGroup.vb (4)
18
Select Case Me.
Kind
34
Throw ExceptionUtilities.UnexpectedValue(Me.
Kind
)
43
Select Case Me.
Kind
51
Throw ExceptionUtilities.UnexpectedValue(Me.
Kind
)
BoundTree\BoundNamespaceExpression.vb (1)
38
Debug.Assert(UnevaluatedReceiverOpt Is Nothing OrElse UnevaluatedReceiverOpt.
Kind
= BoundKind.NamespaceExpression)
BoundTree\BoundNodeExtensions.vb (2)
52
Select Case boundNode.
Kind
67
Dim kind = boundNode.
Kind
BoundTree\BoundObjectInitializerExpression.vb (4)
17
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
18
Debug.Assert(DirectCast(initializer, BoundAssignmentOperator).Left.
Kind
= BoundKind.BadExpression OrElse
19
DirectCast(initializer, BoundAssignmentOperator).Left.
Kind
= BoundKind.FieldAccess OrElse
20
DirectCast(initializer, BoundAssignmentOperator).Left.
Kind
= BoundKind.PropertyAccess)
BoundTree\BoundRedimClause.vb (1)
15
Select Case Operand.
Kind
BoundTree\BoundSpillSequence.vb (1)
30
Debug.Assert(Me.ValueOpt Is Nothing OrElse Me.ValueOpt.
Kind
<> BoundKind.SpillSequence)
BoundTree\BoundTreeRewriter.vb (2)
110
If child.
Kind
<> BoundKind.BinaryOperator Then
123
If child.
Kind
<> BoundKind.BinaryOperator Then
BoundTree\BoundTreeVisitor.vb (1)
18
Select Case node.
Kind
BoundTree\BoundTreeWalker.vb (2)
77
If node.Left.
Kind
<> BoundKind.BinaryOperator Then
91
While current.
Kind
= BoundKind.BinaryOperator
BoundTree\BoundUserDefinedBinaryOperator.vb (3)
35
Debug.Assert(UnderlyingExpression.
Kind
= BoundKind.BadExpression OrElse UnderlyingExpression.
Kind
= BoundKind.Call)
39
If UnderlyingExpression.
Kind
= BoundKind.Call Then
BoundTree\BoundUserDefinedShortCircuitingOperator.vb (3)
20
Debug.Assert(LeftTest.
Kind
= BoundKind.UserDefinedUnaryOperator OrElse
21
(LeftTest.
Kind
= BoundKind.NullableIsTrueOperator AndAlso
22
DirectCast(LeftTest, BoundNullableIsTrueOperator).Operand.
Kind
= BoundKind.UserDefinedUnaryOperator))
BoundTree\BoundUserDefinedUnaryOperator.vb (3)
29
Debug.Assert(UnderlyingExpression.
Kind
= BoundKind.BadExpression OrElse UnderlyingExpression.
Kind
= BoundKind.Call)
31
If UnderlyingExpression.
Kind
= BoundKind.Call Then
CodeGen\EmitAddress.vb (8)
43
Dim kind As BoundKind = expression.
Kind
192
Select Case value.
Kind
220
Select Case expression.
Kind
282
fieldAccess.ReceiverOpt.
Kind
= BoundKind.MeReference
291
If expression.
Kind
= BoundKind.ConditionalAccessReceiverPlaceholder OrElse
292
expression.
Kind
= BoundKind.ComplexConditionalAccessReceiver Then
299
Select Case expression.
Kind
485
If receiver.
Kind
<> BoundKind.ConditionalAccessReceiverPlaceholder Then
CodeGen\EmitArrayInitializer.vb (2)
271
If inits(0).
Kind
= BoundKind.ArrayInitialization Then
291
Return inits.Length <> 0 AndAlso inits(0).
Kind
= BoundKind.ArrayInitialization
CodeGen\EmitConversion.vb (1)
115
Select Case conversion.Operand.
Kind
CodeGen\EmitExpression.vb (26)
40
Debug.Assert(expression.
Kind
= BoundKind.FieldAccess)
76
Select Case expression.
Kind
168
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
209
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
495
Debug.Assert(thisRef.
Kind
= BoundKind.MeReference OrElse thisRef.
Kind
= BoundKind.MyClassReference)
725
ElseIf receiver.
Kind
= BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then
731
ElseIf receiver.
Kind
= BoundKind.FieldAccess Then
756
If receiver.
Kind
= BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then
765
Select Case receiver.
Kind
881
Debug.Assert(receiver.
Kind
<> BoundKind.MyBaseReference, "MyBase should always use call")
882
Debug.Assert(receiver.
Kind
<> BoundKind.MyClassReference, "MyClass should always use call")
890
Select Case receiver.
Kind
947
Select Case receiver.
Kind
1184
Debug.Assert(Not receiverType.IsReferenceType OrElse receiver.
Kind
<> BoundKind.ComplexConditionalAccessReceiver)
1186
(receiver.
Kind
= BoundKind.ConditionalAccessReceiverPlaceholder OrElse
1512
Select Case (expr.
Kind
)
1696
If target.
Kind
= BoundKind.Local AndAlso IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol) Then
1702
Debug.Assert(target.
Kind
<> BoundKind.Local OrElse Not IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol))
1815
If right.
Kind
= BoundKind.ObjectCreationExpression Then
1833
Return AllowedToTakeRef(left, AddressKind.Writeable) AndAlso Not (left.
Kind
= BoundKind.ArrayAccess AndAlso left.Type.TypeKind = TypeKind.TypeParameter)
1875
Select Case left.
Kind
1891
Select Case assignmentTarget.
Kind
1967
Throw ExceptionUtilities.UnexpectedValue(assignmentTarget.
Kind
)
2020
Select Case expression.
Kind
2074
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
CodeGen\EmitOperators.vb (6)
158
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
177
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
624
If condition.
Kind
= BoundKind.BinaryOperator Then
654
If condition.
Kind
= BoundKind.BinaryOperator Then
661
ElseIf condition.
Kind
= BoundKind.TypeOf Then
687
While condition.
Kind
= BoundKind.UnaryOperator
CodeGen\EmitStatement.vb (15)
18
Select Case statement.
Kind
73
Throw ExceptionUtilities.UnexpectedValue(statement.
Kind
)
208
If catchBlock.ExceptionFilterOpt IsNot Nothing AndAlso catchBlock.ExceptionFilterOpt.
Kind
= BoundKind.UnstructuredExceptionHandlingCatchFilter Then
318
While exceptionSource.
Kind
= BoundKind.Sequence
328
Select Case exceptionSource.
Kind
378
Throw ExceptionUtilities.UnexpectedValue(exceptionSource.
Kind
)
414
(catchBlock.ExceptionFilterOpt Is Nothing OrElse catchBlock.ExceptionFilterOpt.
Kind
<> BoundKind.UnstructuredExceptionHandlingCatchFilter) Then
691
Select Case condition.
Kind
851
(_currentCatchBlock.ExceptionFilterOpt Is Nothing OrElse _currentCatchBlock.ExceptionFilterOpt.
Kind
<> BoundKind.UnstructuredExceptionHandlingCatchFilter) AndAlso
992
Select Case caseClause.
Kind
1013
Throw ExceptionUtilities.UnexpectedValue(caseClause.
Kind
)
1016
Throw ExceptionUtilities.UnexpectedValue(caseClause.
Kind
)
1054
If selectExpression.
Kind
= BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then
1057
ElseIf selectExpression.
Kind
= BoundKind.Parameter AndAlso Not DirectCast(selectExpression, BoundParameter).ParameterSymbol.IsByRef Then
1068
If selectExpression.
Kind
= BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then
CodeGen\Optimizer\StackScheduler.Analyzer.vb (9)
103
Debug.Assert(expr.
Kind
<> BoundKind.Label)
259
Select Case node.
Kind
579
If right.
Kind
= BoundKind.ObjectCreationExpression Then
623
Select Case node.
Kind
652
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
682
Debug.Assert(receiver Is Nothing OrElse receiver.
Kind
= BoundKind.TypeExpression)
907
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
920
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
1018
If expressionStatement.Expression.
Kind
= BoundKind.Local Then
CodeGen\Optimizer\StackScheduler.Rewriter.vb (2)
64
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
77
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
Compilation\MethodCompiler.vb (4)
1441
If expression.
Kind
<> BoundKind.Call Then
1844
ElseIf theFirstStatementOpt.
Kind
= BoundKind.ExpressionStatement Then
1890
(node.ReceiverOpt.
Kind
= BoundKind.MeReference OrElse node.ReceiverOpt.
Kind
= BoundKind.MyClassReference) AndAlso
Compilation\SemanticModel.vb (14)
942
If lowestExpr.
Kind
= BoundKind.ArrayCreation AndAlso DirectCast(lowestExpr, BoundArrayCreation).ArrayLiteralOpt IsNot Nothing Then
945
ElseIf lowestExpr.
Kind
= BoundKind.ConvertedTupleLiteral Then
963
lowestExpr.
Kind
= BoundKind.Local Then
978
If highestExpr.
Kind
= BoundKind.Conversion Then
1025
Select Case boundNodes.LowestBoundNode.
Kind
1040
boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
= BoundKind.BadExpression AndAlso
1146
If lowestExpr.
Kind
= BoundKind.BadExpression AndAlso lowestExpr.Syntax.Kind = SyntaxKind.ObjectCreationExpression Then
1151
If child.
Kind
= BoundKind.MethodGroup AndAlso child.Syntax Is typeSyntax Then
1190
If highestBoundNodeExpr.
Kind
= BoundKind.BadExpression AndAlso bindingSymbols.Length = 0 Then
1258
boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
= BoundKind.LateInvocation Then
1290
Select Case boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
1354
Select Case boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
1441
Select Case boundNodeOfSyntacticParent.
Kind
1455
Throw ExceptionUtilities.UnexpectedValue(boundNodeOfSyntacticParent.
Kind
)
Generated\BoundNodes.xml.Generated.vb (1)
9341
Select Case node.
Kind
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (18)
36
If valueOpt Is Nothing OrElse valueOpt.
Kind
<> BoundKind.SpillSequence Then
85
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
219
Debug.Assert(receiverOpt.
Kind
= BoundKind.SpillSequence)
295
Debug.Assert(left.
Kind
= BoundKind.SpillSequence)
344
Debug.Assert(rewrittenRight.
Kind
= BoundKind.SpillSequence)
388
Debug.Assert(receiverOpt.
Kind
= BoundKind.SpillSequence)
409
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
430
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
450
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
474
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
497
Debug.Assert(condition.
Kind
= BoundKind.SpillSequence)
530
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
826
Debug.Assert(rewrittenInitializer Is Nothing OrElse rewrittenInitializer.
Kind
= BoundKind.ArrayInitialization)
864
rewrittenParts(index) = If(part.
Kind
= BoundKind.ArrayInitialization,
911
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
926
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
971
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
989
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (13)
24
Select Case node.
Kind
30
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
54
If initializer.
Kind
= BoundKind.ArrayInitialization Then
160
If arg.
Kind
= BoundKind.ArrayInitialization Then
175
If arg.
Kind
= BoundKind.SpillSequence Then
232
Select Case expr.
Kind
243
Debug.Assert(sideEffect.
Kind
= BoundKind.SpillSequence)
376
Debug.Assert(Not expr.IsLValue, "stack spilling for lvalue: " + expr.
Kind
.ToString())
384
Select Case expr.
Kind
416
If expr.
Kind
= BoundKind.SpillSequence Then
425
Throw ExceptionUtilities.UnexpectedValue(expr.
Kind
)
557
Select Case node.
Kind
566
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Statements.vb (5)
29
If expression.
Kind
= BoundKind.SpillSequence Then
53
If expression.
Kind
<> BoundKind.SpillSequence Then
64
If expression Is Nothing OrElse expression.
Kind
<> BoundKind.SpillSequence Then
68
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
81
If condition.
Kind
<> BoundKind.SpillSequence Then
Lowering\AsyncRewriter\AsyncRewriter.vb (4)
279
If body.
Kind
<> BoundKind.Block Then
407
Select Case expression.
Kind
471
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
594
If result.
Kind
= BoundKind.PropertyAccess Then
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (11)
19
If initializer IsNot Nothing AndAlso initializer.
Kind
= BoundKind.ObjectInitializerExpression AndAlso node.ConstantValueOpt Is Nothing Then
126
If boundExpression.
Kind
= BoundKind.AssignmentOperator Then
161
Not (node.Left.
Kind
= BoundKind.PropertyAccess AndAlso node.LeftOnTheRightOpt Is Nothing) Then
214
block.Statements(1).
Kind
= BoundKind.ReturnStatement AndAlso
217
block.Statements(1).
Kind
= BoundKind.LabelStatement AndAlso
218
block.Statements(2).
Kind
= BoundKind.ReturnStatement) Then
222
Select Case stmt.
Kind
298
(operand.
Kind
= BoundKind.Lambda OrElse operand.
Kind
= BoundKind.QueryLambda))
300
If operand.
Kind
= BoundKind.Lambda AndAlso Not CheckLambdaForByRefParameters(DirectCast(operand, BoundLambda)) AndAlso relaxationLambda IsNot Nothing Then
377
If node.Member.
Kind
<> BoundKind.LateMemberAccess Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (20)
137
Debug.Assert(block.Statements(0).
Kind
<> BoundKind.SequencePoint)
140
block.Statements(1).
Kind
= BoundKind.ReturnStatement AndAlso
143
block.Statements(1).
Kind
= BoundKind.LabelStatement AndAlso
144
block.Statements(2).
Kind
= BoundKind.ReturnStatement))
154
Select Case stmt.
Kind
206
Select Case node.
Kind
271
If node.
Kind
= BoundKind.GetType Then
285
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
288
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
381
If receiverOpt.
Kind
= BoundKind.MyBaseReference Then
413
If origReceiverOpt.
Kind
= BoundKind.MyBaseReference Then
440
Debug.Assert(origReceiverOpt.
Kind
<> BoundKind.MyBaseReference AndAlso origReceiverOpt.
Kind
<> BoundKind.MyClassReference)
471
If receiverOpt.
Kind
= BoundKind.MyBaseReference Then
570
Select Case initializerOpt.
Kind
580
Throw ExceptionUtilities.UnexpectedValue(initializerOpt.
Kind
)
593
Debug.Assert(initializers(i).
Kind
= BoundKind.AssignmentOperator)
600
Select Case left.
Kind
609
Throw ExceptionUtilities.UnexpectedValue(left.
Kind
)
642
Debug.Assert(initializers(i).
Kind
= BoundKind.Call)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
547
If resultType.IsNullableType AndAlso originalRight.
Kind
= BoundKind.Conversion Then
727
If oldArg.
Kind
= BoundKind.ObjectCreationExpression Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (2)
51
Select Case convTestExpr.
Kind
60
Throw ExceptionUtilities.UnexpectedValue(convTestExpr.
Kind
)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
91
If operand.
Kind
= BoundKind.Lambda Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (2)
123
Select Case operand.
Kind
143
If operand.
Kind
= BoundKind.ObjectCreationExpression Then
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
478
Select Case statement.
Kind
Lowering\Instrumentation\DebugInfoInjector.vb (2)
402
If localDeclaration.
Kind
= BoundKind.LocalDeclaration Then
405
Debug.Assert(localDeclaration.
Kind
= BoundKind.AsNewLocalDeclarations)
Lowering\LambdaRewriter\LambdaRewriter.vb (4)
1411
If rewritten.
Kind
= BoundKind.Call Then
1443
node.ReceiverOrCondition.
Kind
<> result.ReceiverOrCondition.
Kind
Then
1468
receiver.
Kind
= BoundKind.DelegateCreationExpression AndAlso
Lowering\LocalRewriter\LocalRewriter.vb (6)
76
If placeholder.IsLValue AndAlso value.
Kind
<> BoundKind.MeReference Then
322
(result.
Kind
= BoundKind.MeReference AndAlso TypeOf node Is BoundLValuePlaceholderBase))
329
If (node.
Kind
= BoundKind.ObjectCreationExpression OrElse node.
Kind
= BoundKind.NewT) AndAlso
331
DirectCast(node, BoundObjectCreationExpressionBase).InitializerOpt.
Kind
= BoundKind.ObjectInitializerExpression AndAlso
342
Select Case result.
Kind
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (6)
43
result = RewriteWinRtEvent(node, unwrappedEventAccess, isAddition:=(node.
Kind
= BoundKind.AddHandlerStatement))
45
result = MakeEventAccessorCall(node, unwrappedEventAccess, If(node.
Kind
= BoundKind.AddHandlerStatement, [event].AddMethod, [event].RemoveMethod))
181
Select Case expression.
Kind
248
If node.
Kind
= BoundKind.EventAccess Then
252
Debug.Assert(node.
Kind
= BoundKind.Parenthesized, "node can only be EventAccess or Parenthesized")
280
Dim addRemove = factory.WellKnownMember(Of MethodSymbol)(If(node.
Kind
= BoundKind.AddHandlerStatement,
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (2)
116
If initializer IsNot Nothing AndAlso (initializer.
Kind
= BoundKind.ObjectCreationExpression OrElse initializer.
Kind
= BoundKind.NewT) Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (14)
23
If node.Right.
Kind
= BoundKind.MidResult Then
28
(midResult.Original.
Kind
= BoundKind.Parenthesized AndAlso DirectCast(midResult.Original, BoundParenthesized).Expression Is node.LeftOnTheRightOpt))
51
Debug.Assert(nodeLeft.
Kind
<> BoundKind.FieldAccess OrElse
125
Select Case node.Left.
Kind
151
If leftNode.
Kind
= BoundKind.FieldAccess Then
175
Select Case setNode.
Kind
183
Throw ExceptionUtilities.UnexpectedValue(setNode.
Kind
)
200
(propertyIsStatic OrElse receiver.
Kind
= BoundKind.MeReference) AndAlso
283
If assignmentTarget.
Kind
= BoundKind.LateMemberAccess Then
294
If invocation.Member.
Kind
= BoundKind.LateMemberAccess Then
362
Select Case nodeToCheck.
Kind
413
If nodeToCheck.
Kind
= BoundKind.DirectCast Then
417
ElseIf nodeToCheck.
Kind
= BoundKind.TryCast Then
464
(midResult.Original.
Kind
= BoundKind.Parenthesized AndAlso node.LeftOnTheRightOpt Is DirectCast(midResult.Original, BoundParenthesized).Expression)))
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (8)
89
If child.
Kind
<> BoundKind.BinaryOperator Then
112
If child.
Kind
<> BoundKind.BinaryOperator Then
179
Select Case operand.
Kind
222
Debug.Assert(operand.
Kind
<> BoundKind.Parenthesized) ' Must have been removed by now.
561
If left.
Kind
= BoundKind.DirectCast Then
569
If right.
Kind
= BoundKind.DirectCast Then
878
If (rightValue.IsConstant OrElse rightValue.
Kind
= BoundKind.Local OrElse rightValue.
Kind
= BoundKind.Parameter) AndAlso
Lowering\LocalRewriter\LocalRewriter_Call.vb (3)
177
If argument.
Kind
= BoundKind.ByRefArgumentWithCopyBack Then
343
If secondUse.
Kind
= BoundKind.LateMemberAccess Then
355
If invocation.Member.
Kind
= BoundKind.LateMemberAccess Then
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (4)
17
Select Case receiver.
Kind
178
If operand.
Kind
= BoundKind.Sequence Then
190
If operand.
Kind
= BoundKind.LoweredConditionalAccess Then
205
If operand.
Kind
= BoundKind.Sequence Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
28
If convertedTestExpression.
Kind
= BoundKind.Conversion Then
59
Select Case rewrittenTestExpression.
Kind
162
Return If(node.
Kind
<> BoundKind.BinaryConditionalExpression, node,
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
28
Return If(node.
Kind
= BoundKind.Literal, node, New BoundLiteral(node.Syntax, constantValue, node.Type, hasErrors:=constantValue.IsBad))
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (10)
34
If node.Operand.
Kind
= BoundKind.UserDefinedConversion Then
74
While operand.
Kind
= BoundKind.Parenthesized
78
If operand.
Kind
= BoundKind.BinaryOperator Then
110
If node.ExtendedInfoOpt IsNot Nothing AndAlso node.ExtendedInfoOpt.
Kind
= BoundKind.RelaxationLambda Then
121
If returnValue.
Kind
= BoundKind.Conversion Then
142
Select Case rewrittenNode.
Kind
363
Select Case node.
Kind
731
ElseIf operand.
Kind
= BoundKind.Lambda Then
1197
If operand.
Kind
= BoundKind.Call Then
1331
If operand.
Kind
<> BoundKind.Lambda Then
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.vb (1)
36
Select Case expression.
Kind
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (3)
91
If initialValueToRewrite.
Kind
= BoundKind.ObjectCreationExpression OrElse initialValueToRewrite.
Kind
= BoundKind.NewT Then
94
objectCreationExpression.InitializerOpt.
Kind
= BoundKind.ObjectInitializerExpression Then
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
31
If node.Collection.
Kind
= BoundKind.Conversion Then
201
If collectionExpression.
Kind
= BoundKind.Conversion Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (5)
416
If assignmentTarget.
Kind
= BoundKind.LateMemberAccess Then
426
ElseIf assignmentTarget.
Kind
= BoundKind.LateInvocation Then
429
If invocation.Member.
Kind
= BoundKind.LateMemberAccess Then
466
Debug.Assert(node.Member.
Kind
<> BoundKind.LateMemberAccess)
877
If argument.
Kind
= BoundKind.LateBoundArgumentSupportingAssignmentWithCapture Then
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (2)
27
If node.Member.
Kind
= BoundKind.LateMemberAccess Then
51
Debug.Assert(receiverExpression.
Kind
<> BoundKind.LateMemberAccess)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (4)
36
If initializerOpt.
Kind
= BoundKind.ObjectCreationExpression OrElse initializerOpt.
Kind
= BoundKind.NewT Then
40
objectCreationExpression.InitializerOpt.
Kind
= BoundKind.ObjectInitializerExpression Then
88
(DirectCast(node.InitializerOpt, BoundObjectCreationExpressionBase).InitializerOpt.
Kind
= BoundKind.ObjectInitializerExpression AndAlso
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (9)
77
Return right.
Kind
= BoundKind.Local OrElse
78
right.
Kind
= BoundKind.Parameter
100
If operand.
Kind
= BoundKind.Local AndAlso Not DirectCast(operand, BoundLocal).LocalSymbol.IsByRef Then
104
If operand.
Kind
= BoundKind.Parameter AndAlso Not DirectCast(operand, BoundParameter).ParameterSymbol.IsByRef Then
157
Select Case expr.
Kind
310
candidateNullExpression.
Kind
<> BoundKind.ObjectCreationExpression Then
355
If expr.
Kind
= BoundKind.ObjectCreationExpression Then
372
Select Case expr.
Kind
562
Select Case operand.
Kind
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (4)
109
If objectInitializer.
Kind
= BoundKind.CollectionInitializerExpression Then
404
Select Case rewrittenObjectCreationExpression.
Kind
418
Debug.Assert(sequence.ValueOpt IsNot Nothing AndAlso sequence.ValueOpt.
Kind
= BoundKind.ObjectCreationExpression)
425
Throw ExceptionUtilities.UnexpectedValue(rewrittenObjectCreationExpression.
Kind
)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
30
Debug.Assert(receiver.
Kind
= BoundKind.FieldAccess)
37
fieldAccessReceiver.
Kind
= BoundKind.MeReference)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (2)
42
If arrayValueAccess.
Kind
= BoundKind.PropertyAccess Then
76
If assignmentTarget.
Kind
= BoundKind.PropertyAccess Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (3)
227
Dim needTempLocal = caseBlocks.Any() AndAlso (Not recommendSwitchTable OrElse rewrittenSelectExpression.
Kind
<> BoundKind.Local)
351
Select Case caseClause.
Kind
370
Throw ExceptionUtilities.UnexpectedValue(caseClause.
Kind
)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
116
Select Case lowered.
Kind
Lowering\LocalRewriter\LocalRewriter_Try.vb (2)
45
Select Case statement.
Kind
201
If node.ExceptionFilterOpt Is Nothing OrElse node.ExceptionFilterOpt.
Kind
<> BoundKind.UnstructuredExceptionHandlingCatchFilter Then
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (2)
43
Select Case current.
Kind
82
If result.
Kind
= BoundKind.UnaryOperator Then
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (5)
485
If statement.
Kind
<> BoundKind.IfStatement Then
490
If statement.
Kind
<> BoundKind.CaseBlock Then
495
If statement.
Kind
<> BoundKind.LocalDeclaration OrElse
504
If statement.
Kind
<> BoundKind.ExpressionStatement OrElse
522
Select Case statement.
Kind
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
93
If localDeclaration.
Kind
= BoundKind.LocalDeclaration Then
Lowering\LocalRewriter\LocalRewriter_While.vb (6)
63
Select Case statement.
Kind
70
Throw ExceptionUtilities.UnexpectedValue(statement.
Kind
)
79
Select Case statement.
Kind
87
Throw ExceptionUtilities.UnexpectedValue(statement.
Kind
)
102
Select Case statement.
Kind
110
Throw ExceptionUtilities.UnexpectedValue(statement.
Kind
)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
168
Debug.Assert(rewriterInfo.ObjectCreation.
Kind
= BoundKind.ObjectCreationExpression)
232
Debug.Assert(origSideEffects(i).
Kind
= BoundKind.Call)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (3)
25
receiverOpt IsNot Nothing AndAlso (receiverOpt.
Kind
= BoundKind.MyBaseReference OrElse receiverOpt.
Kind
= BoundKind.MyClassReference) Then
84
Debug.Assert(isMyBase OrElse receiver.
Kind
= BoundKind.MyClassReference)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
386
Select Case nodeStatements(0).
Kind
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
299
If statement.
Kind
= BoundKind.Block Then
302
If rewrittenStatements.Length = 1 AndAlso rewrittenStatements(0).
Kind
= BoundKind.StateMachineScope Then
Lowering\SyntheticBoundNodeFactory.vb (1)
1127
If body.
Kind
<> BoundKind.Block Then
Lowering\UseTwiceRewriter.vb (12)
47
Select Case value.
Kind
63
Debug.Assert(value.
Kind
<> BoundKind.ByRefArgumentWithCopyBack AndAlso
64
value.
Kind
<> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture)
118
Select Case value.
Kind
168
Dim kind As BoundKind = value.
Kind
186
Debug.Assert(value.
Kind
<> BoundKind.Literal)
378
If boundArgument.
Kind
= BoundKind.ArrayCreation AndAlso DirectCast(boundArgument, BoundArrayCreation).IsParamArrayArgument Then
420
If node.Member.
Kind
= BoundKind.LateMemberAccess Then
509
(result.Second.
Kind
= BoundKind.Literal AndAlso result.First.ConstantValueOpt IsNot Nothing) OrElse
510
(result.Second.
Kind
= BoundKind.Local AndAlso result.Second.WasCompilerGenerated AndAlso
512
result.First.
Kind
= BoundKind.AssignmentOperator AndAlso result.First.WasCompilerGenerated AndAlso
513
DirectCast(result.First, BoundAssignmentOperator).Left.
Kind
= BoundKind.Local AndAlso
Lowering\WithExpressionRewriter.vb (9)
147
Dim kind As BoundKind = value.
Kind
166
Debug.Assert(value.
Kind
<> BoundKind.Literal)
210
Select Case value.
Kind
284
Dim kind = value.
Kind
324
If Not (state.DoNotUseByRefLocal OrElse (value.
Kind
= BoundKind.ArrayAccess AndAlso value.Type.Kind = SymbolKind.TypeParameter)) Then
330
Select Case value.
Kind
339
Throw ExceptionUtilities.UnexpectedValue(value.
Kind
)
351
Throw ExceptionUtilities.UnexpectedValue(value.
Kind
)
362
Throw ExceptionUtilities.UnexpectedValue(value.
Kind
)
Semantics\Conversions.vb (12)
954
If source.
Kind
= BoundKind.FieldAccess Then
956
ElseIf source.
Kind
= BoundKind.Local Then
987
Dim sourceType As TypeSymbol = If(source.
Kind
= BoundKind.TupleLiteral,
992
Dim mostEnclosing = source.GetMostEnclosedParenthesizedExpression().
Kind
1048
Select Case source.
Kind
1330
If sourceElement.
Kind
= BoundKind.ArrayInitialization Then
2117
If source.
Kind
= BoundKind.ArrayLiteral Then
2119
ElseIf source.
Kind
= BoundKind.TupleLiteral Then
2144
If (source.
Kind
<> BoundKind.ArrayLiteral) Then
2155
Debug.Assert(source.
Kind
<> BoundKind.ArrayLiteral)
4236
If expressionOpt Is Nothing OrElse expressionOpt.
Kind
<> BoundKind.Conversion OrElse expressionOpt.HasErrors Then
4254
Debug.Assert(conversion.Operand.IsNothingLiteral() OrElse conversion.Operand.
Kind
= BoundKind.Lambda)
Semantics\OverloadResolution.vb (17)
864
If group.
Kind
= BoundKind.MethodGroup Then
2317
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
2379
Debug.Assert(argument Is Nothing OrElse argument.
Kind
<> BoundKind.OmittedArgument)
2495
If argument.
Kind
= BoundKind.QueryLambda Then
2508
Dim argType As TypeSymbol = If(argument.
Kind
<> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType)
2620
If arguments(k).
Kind
<> BoundKind.OmittedArgument AndAlso
2636
Debug.Assert(argument Is Nothing OrElse argument.
Kind
<> BoundKind.OmittedArgument)
2656
If argument.
Kind
= BoundKind.QueryLambda Then
3100
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
3307
Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.
Kind
<> BoundKind.OmittedArgument)
3426
If argument Is Nothing OrElse argument.
Kind
= BoundKind.OmittedArgument Then
3672
While underlying.
Kind
= BoundKind.Parenthesized AndAlso underlying.Type Is Nothing
3676
Dim unbound = If(underlying.
Kind
= BoundKind.UnboundLambda, DirectCast(underlying, UnboundLambda), Nothing)
3753
methodOrPropertyGroup.
Kind
= BoundKind.MethodGroup AndAlso
4678
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
4762
Debug.Assert(argument.
Kind
<> BoundKind.OmittedArgument)
4858
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
Semantics\TypeInference\TypeArgumentInference.vb (21)
439
If Expression.
Kind
= BoundKind.UnboundLambda AndAlso ParameterType.IsDelegateType() Then
498
Select Case Expression.
Kind
563
If Expression.
Kind
= BoundKind.ArrayLiteral Then
568
ElseIf Expression.
Kind
= BoundKind.TupleLiteral Then
937
Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.
Kind
<> BoundKind.OmittedArgument)
990
If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.
Kind
= BoundKind.OmittedArgument Then
1031
Select Case argument.
Kind
1124
Debug.Assert(argNode.Expression.
Kind
= BoundKind.TupleLiteral)
1150
Debug.Assert(argNode.Expression.
Kind
= BoundKind.AddressOfOperator)
1198
Select Case argNode.Expression.
Kind
1206
Throw ExceptionUtilities.UnexpectedValue(argNode.Expression.
Kind
)
1245
If argument.
Kind
= BoundKind.ArrayLiteral Then
1985
Debug.Assert(argument.
Kind
= BoundKind.UnboundLambda OrElse
1986
argument.
Kind
= BoundKind.QueryLambda OrElse
1987
argument.
Kind
= BoundKind.GroupTypeInferenceLambda)
1992
Select Case argument.
Kind
2016
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
2063
Select Case argument.
Kind
2071
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
2114
Select Case argument.
Kind
2217
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
Semantics\TypeInference\TypeInferenceCollection.vb (1)
406
If sourceElement.
Kind
= BoundKind.ArrayInitialization Then
Symbols\PropertySymbol.vb (5)
166
Debug.Assert(receiverOpt.
Kind
= BoundKind.WithLValueExpressionPlaceholder)
176
If receiverOpt.
Kind
= BoundKind.WithLValueExpressionPlaceholder OrElse receiverOpt.
Kind
= BoundKind.WithRValueExpressionPlaceholder Then
195
Select Case receiverOpt.
Kind
214
(propertyIsStatic OrElse (receiverOpt IsNot Nothing AndAlso receiverOpt.
Kind
= BoundKind.MeReference)) AndAlso
Symbols\Source\SourceMethodSymbol.vb (1)
1195
If boundStatement.
Kind
= BoundKind.Block Then
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
123
If boundStatement.
Kind
= BoundKind.Block Then