836 references to Kind
Microsoft.CodeAnalysis.VisualBasic (824)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
92
Select Case Branch.
Kind
Analysis\FlowAnalysis\AbstractFlowPass.vb (21)
390
Select Case pending.Branch.
Kind
416
Select Case pending.Branch.
Kind
451
Select Case branch.
Kind
465
Throw ExceptionUtilities.UnexpectedValue(branch.
Kind
)
710
Select Case node.
Kind
790
Select Case node.
Kind
884
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
887
If initializerExpr.
Kind
= BoundKind.LValueToRValueWrapper Then
910
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
913
If initializerExpr.
Kind
= BoundKind.LValueToRValueWrapper Then
975
Select Case node.
Kind
1108
If member.
Kind
<> BoundKind.LateMemberAccess Then
1176
Dim kind As BoundKind = originalReceiver.
Kind
1297
Dim kind As BoundKind = originalReceiver.
Kind
1711
Dim kind As BoundKind = originalReceiver.
Kind
1846
Select Case clause.
Kind
1854
Throw ExceptionUtilities.UnexpectedValue(clause.
Kind
)
2033
Dim unionBranchWithFinallyState As Boolean = pend.Branch.
Kind
<> BoundKind.YieldStatement
2110
If child.
Kind
<> BoundKind.BinaryOperator Then
2621
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
1114
Select Case receiver.
Kind
1334
Select Case node.
Kind
1643
Select Case value.
Kind
1800
If left.
Kind
= BoundKind.Local Then
1876
If variableDeclarations.
Kind
= BoundKind.AsNewLocalDeclarations Then
1903
If variableDeclarations.
Kind
= BoundKind.AsNewLocalDeclarations Then
1948
Select Case expr.
Kind
1963
Throw ExceptionUtilities.UnexpectedValue(expr.
Kind
) ' TODO: is this reachable at all?
2017
(boundInitializer.
Kind
= BoundKind.ObjectCreationExpression OrElse boundInitializer.
Kind
= BoundKind.NewT) Then
2020
If boundInitializerBase IsNot Nothing AndAlso boundInitializerBase.
Kind
= BoundKind.ObjectInitializerExpression Then
2112
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)
253
If right.
Kind
= BoundKind.ObjectCreationExpression Then
257
If arg0.
Kind
= BoundKind.Local AndAlso DirectCast(arg0, BoundLocal).LocalSymbol Is local Then
Binding\Binder_Attributes.vb (6)
356
Debug.Assert(Not boundArguments.Any(Function(a) a.
Kind
= BoundKind.ByRefArgumentWithCopyBack))
569
If expression.
Kind
= BoundKind.GetType Then
572
ElseIf expression.
Kind
= BoundKind.ArrayCreation Then
724
Select Case argument.
Kind
728
Select Case assignment.Left.
Kind
752
Select Case node.
Kind
Binding\Binder_Conversions.vb (15)
98
Debug.Assert(argument.
Kind
<> BoundKind.DirectCast, "Associated wrong node with conversion?")
211
Debug.Assert(argument.
Kind
<> BoundKind.TryCast, "Associated wrong node with conversion?")
446
Debug.Assert(argument.
Kind
<> BoundKind.Conversion, "Associated wrong node with conversion?")
451
ElseIf Not argument.IsNothingLiteral() AndAlso argument.
Kind
<> BoundKind.ArrayLiteral Then
455
Debug.Assert(argument.
Kind
<> BoundKind.Conversion OrElse DirectCast(argument, BoundConversion).ExplicitCastInCode OrElse
466
Debug.Assert(argument.
Kind
<> BoundKind.ArrayLiteral OrElse (convKind.Key And ConversionKind.UserDefined) <> 0)
469
If argument.
Kind
= BoundKind.ArrayLiteral Then
1100
If argument.
Kind
= BoundKind.ArrayLiteral Then
1122
Debug.Assert(oldArgument IsNot argument AndAlso argument.
Kind
= BoundKind.Conversion)
1155
Debug.Assert(oldArgument IsNot argument AndAlso argument.
Kind
= BoundKind.Conversion)
1188
Debug.Assert(argument.
Kind
<> BoundKind.GroupTypeInferenceLambda)
1190
Select Case argument.
Kind
1253
If argument.
Kind
<> BoundKind.DelegateCreationExpression Then
1275
Return argument.
Kind
= BoundKind.Conversion
1572
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
1243
methodGroup.ReceiverOpt.
Kind
= BoundKind.Conversion Then
1247
receiver.Operand.
Kind
= BoundKind.Lambda AndAlso
Binding\Binder_Expressions.vb (50)
100
If operand.
Kind
= BoundKind.TypeExpression Then
104
ElseIf operand.
Kind
= BoundKind.ArrayLiteral Then
519
Select Case expression.
Kind
609
result.
Kind
= BoundKind.NamespaceExpression Then
704
Select Case argument.
Kind
838
If receiver.
Kind
= BoundKind.TypeOrValueExpression Then
850
If receiver.
Kind
= BoundKind.TypeOrValueExpression Then
872
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
885
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
888
Select Case group.
Kind
906
Throw ExceptionUtilities.UnexpectedValue(group.
Kind
)
942
If expr.
Kind
= BoundKind.ConditionalAccess AndAlso expr.Type Is Nothing Then
967
Select Case expr.
Kind
1127
Select Case result.
Kind
1154
Throw ExceptionUtilities.UnexpectedValue(result.
Kind
)
1214
If expr.
Kind
= BoundKind.Parenthesized Then
1241
ElseIf expr.
Kind
= BoundKind.PropertyAccess Then
1286
ElseIf expr.
Kind
= BoundKind.AddressOfOperator Then
1294
If receiverOpt Is Nothing OrElse receiverOpt.
Kind
= BoundKind.MyBaseReference Then
1330
If expr.
Kind
= BoundKind.Parenthesized AndAlso Not expr.IsNothingLiteral() Then
1335
ElseIf expr.
Kind
= BoundKind.XmlMemberAccess Then
1360
ElseIf expr.
Kind
= BoundKind.PropertyAccess Then
1418
Select Case expr.
Kind
1616
If expr.
Kind
= BoundKind.ArrayInitialization Then
1701
ElseIf expression.
Kind
= BoundKind.LateInvocation Then
1726
Select Case expression.
Kind
1786
If node.
Kind
= BoundKind.FieldAccess Then
1800
ElseIf node.
Kind
= BoundKind.Local Then
2687
If boundLeft.
Kind
= BoundKind.PropertyGroup Then
2824
If(left.
Kind
= BoundKind.TypeExpression, QualificationKind.QualifiedViaTypeName, QualificationKind.QualifiedViaValue),
2851
If left.
Kind
= BoundKind.NamespaceExpression Then
2874
ElseIf left.
Kind
= BoundKind.TypeExpression Then
2908
Dim effectiveOptions = If(left.
Kind
<> BoundKind.MyBaseReference, options,
3148
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
3180
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeOrValueExpression Then
3350
If receiver.
Kind
= BoundKind.NamespaceExpression Then
3432
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.NamespaceExpression Then
3613
receiver.
Kind
<> BoundKind.TypeOrValueExpression AndAlso receiver.
Kind
<> BoundKind.MyBaseReference AndAlso
3635
receiver.
Kind
= BoundKind.TypeExpression Then
3647
If receiver IsNot Nothing AndAlso receiver.
Kind
= BoundKind.TypeExpression AndAlso IsReceiverOfNameOfArgument(receiver.Syntax) Then
3728
If Not left.IsLValue AndAlso left.
Kind
<> BoundKind.LateMemberAccess Then
3753
Debug.Assert(defaultPropertyGroup Is Nothing OrElse defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup OrElse
3754
defaultPropertyGroup.
Kind
= BoundKind.MethodGroup OrElse defaultPropertyGroup.HasErrors)
3757
If defaultPropertyGroup IsNot Nothing AndAlso defaultPropertyGroup.
Kind
= BoundKind.PropertyGroup Then
4498
Dim expressionKind As BoundKind = expression.
Kind
4638
operand.
Kind
= BoundKind.Call Then
4741
getAwaiter.
Kind
<> BoundKind.Call OrElse
4789
isCompleted.
Kind
<> BoundKind.PropertyAccess OrElse
4836
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_Invocation.vb (48)
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
955
Debug.Assert(Not boundArguments.Any(Function(a) a.
Kind
= BoundKind.ByRefArgumentWithCopyBack))
993
([property].IsShared OrElse (propertyAccess.ReceiverOpt IsNot Nothing AndAlso propertyAccess.ReceiverOpt.
Kind
= BoundKind.MeReference)) Then
1014
Select Case node.
Kind
1022
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
1052
Select Case oldReceiver.
Kind
1448
Debug.Assert(groupOpt IsNot Nothing AndAlso groupOpt.
Kind
= BoundKind.MethodGroup)
1493
groupOpt.
Kind
= BoundKind.PropertyGroup Then
1950
argument.
Kind
= BoundKind.UnboundLambda Then
2089
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
2156
If parameterToArgumentMap(paramIndex) <> -1 AndAlso arguments(parameterToArgumentMap(paramIndex)).
Kind
<> BoundKind.OmittedArgument Then
2411
If argument Is Nothing OrElse argument.
Kind
= BoundKind.OmittedArgument Then
2605
If argument.
Kind
= BoundKind.QueryLambda AndAlso targetDelegateType IsNot Nothing Then
2667
If arguments(i).
Kind
<> BoundKind.OmittedArgument Then
2683
If arguments(i).
Kind
<> BoundKind.OmittedArgument Then
2841
If isLValue AndAlso argument.
Kind
= BoundKind.PropertyAccess Then
2877
If argument.
Kind
= BoundKind.LateInvocation Then
2884
(copyBackExpression.
Kind
= BoundKind.AssignmentOperator AndAlso
3194
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)
660
If target.
Kind
= BoundKind.FieldAccess OrElse target.
Kind
= BoundKind.PropertyGroup Then
683
If target.
Kind
= BoundKind.FieldAccess Then
925
If invocation.
Kind
= BoundKind.LateInvocation Then
Binding\Binder_Operators.vb (5)
444
If explicitSemanticForConcatArgument AndAlso left IsNot beforeConversion AndAlso left.
Kind
= BoundKind.Conversion Then
472
If explicitSemanticForConcatArgument AndAlso right IsNot beforeConversion AndAlso right.
Kind
= BoundKind.Conversion Then
901
While cast.
Kind
= BoundKind.Conversion OrElse cast.
Kind
= BoundKind.DirectCast
909
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 (4)
455
Select Case caseClause.
Kind
466
Throw ExceptionUtilities.UnexpectedValue(caseClause.
Kind
)
585
Select Case caseClause.
Kind
662
Select Case caseClause.
Kind
Binding\Binder_Statements.vb (28)
276
Select Case clause.
Kind
284
Throw ExceptionUtilities.UnexpectedValue(clause.
Kind
)
527
If(_enclosingSyncLockOrUsing.
Kind
= BoundKind.UsingStatement,
802
If boundLabelExpression.
Kind
= BoundKind.Label Then
1227
Debug.Assert(declarationInitializer.
Kind
= BoundKind.BadExpression)
1364
Select Case inferFrom.
Kind
1897
Select Case op1.
Kind
2058
Select Case boundStatement.
Kind
2087
Select Case localDecl.
Kind
2097
Throw ExceptionUtilities.UnexpectedValue(localDecl.
Kind
)
2229
Debug.Assert((original.
Kind
= BoundKind.CompoundAssignmentTargetPlaceholder) = (right.
Kind
= BoundKind.MidResult) OrElse original.HasErrors OrElse right.HasErrors)
2254
If toCheck.
Kind
= BoundKind.UnboundLambda Then
2277
handlerExpression.
Kind
= BoundKind.DelegateCreationExpression AndAlso
2406
If notParenthesized.
Kind
= BoundKind.EventAccess Then
2435
If target.
Kind
<> BoundKind.EventAccess Then
2604
If boundExpression.
Kind
= BoundKind.ConditionalAccess Then
2610
Not boundExpression.
Kind
= BoundKind.AwaitOperator AndAlso
2634
If boundExpression.
Kind
= BoundKind.Call Then
2691
Select Case boundInvocation.
Kind
3149
If stepValue IsNot stepValueBeforeConversion AndAlso stepValue.
Kind
= BoundKind.Conversion AndAlso
3979
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.
Kind
= BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral)
4135
boundMoveNextCall.
Kind
<> BoundKind.Call OrElse
4442
If localDeclarations.
Kind
<> BoundKind.AsNewLocalDeclarations Then
4454
If localDeclarations.
Kind
= BoundKind.LocalDeclaration Then
4791
Dim exprKind = exceptionSource.
Kind
5232
If boundLabelExpression.
Kind
= BoundKind.Label Then
5271
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)
108
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 (33)
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
2153
Debug.Assert(existing(i).
Kind
= added(i).
Kind
, "New bound node does not match existing bound node")
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 (3)
25
If item.
Kind
= BoundKind.Interpolation Then Return True
41
Debug.Assert(Not Contents.Where(Function(content) content.
Kind
<> BoundKind.Interpolation AndAlso content.
Kind
<> BoundKind.Literal).Any())
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)
37
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 (4)
269
If inits(0).
Kind
= BoundKind.ArrayInitialization Then
285
Debug.Assert(inits.All(Function(init) init.
Kind
<> BoundKind.ArrayInitialization) OrElse
286
inits.All(Function(init) init.
Kind
= BoundKind.ArrayInitialization),
289
Return inits.Length <> 0 AndAlso inits(0).
Kind
= BoundKind.ArrayInitialization
CodeGen\EmitConversion.vb (1)
115
Select Case conversion.Operand.
Kind
CodeGen\EmitExpression.vb (26)
38
Debug.Assert(expression.
Kind
= BoundKind.FieldAccess)
74
Select Case expression.
Kind
166
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
207
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
490
Debug.Assert(thisRef.
Kind
= BoundKind.MeReference OrElse thisRef.
Kind
= BoundKind.MyClassReference)
720
ElseIf receiver.
Kind
= BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then
726
ElseIf receiver.
Kind
= BoundKind.FieldAccess Then
751
If receiver.
Kind
= BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then
760
Select Case receiver.
Kind
876
Debug.Assert(receiver.
Kind
<> BoundKind.MyBaseReference, "MyBase should always use call")
877
Debug.Assert(receiver.
Kind
<> BoundKind.MyClassReference, "MyClass should always use call")
885
Select Case receiver.
Kind
942
Select Case receiver.
Kind
1054
Debug.Assert(Not receiverType.IsReferenceType OrElse receiver.
Kind
<> BoundKind.ComplexConditionalAccessReceiver)
1056
(receiver.
Kind
= BoundKind.ConditionalAccessReceiverPlaceholder OrElse Not AllowedToTakeRef(receiver, AddressKind.ReadOnly)),
1389
Select Case (expr.
Kind
)
1573
If target.
Kind
= BoundKind.Local AndAlso IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol) Then
1579
Debug.Assert(target.
Kind
<> BoundKind.Local OrElse Not IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol))
1692
If right.
Kind
= BoundKind.ObjectCreationExpression Then
1710
Return AllowedToTakeRef(left, AddressKind.Writeable) AndAlso Not (left.
Kind
= BoundKind.ArrayAccess AndAlso left.Type.TypeKind = TypeKind.TypeParameter)
1752
Select Case left.
Kind
1768
Select Case assignmentTarget.
Kind
1844
Throw ExceptionUtilities.UnexpectedValue(assignmentTarget.
Kind
)
1897
Select Case expression.
Kind
1951
Throw ExceptionUtilities.UnexpectedValue(expression.
Kind
)
CodeGen\EmitOperators.vb (4)
141
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
160
If child.
Kind
<> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
594
While condition.
Kind
= BoundKind.UnaryOperator
612
If condition.
Kind
= BoundKind.BinaryOperator Then
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 (10)
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
1260
top.expression.
Kind
= BoundKind.Local AndAlso
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)
1421
If expression.
Kind
<> BoundKind.Call Then
1795
ElseIf theFirstStatement.
Kind
= BoundKind.ExpressionStatement Then
1840
(node.ReceiverOpt.
Kind
= BoundKind.MeReference OrElse node.ReceiverOpt.
Kind
= BoundKind.MyClassReference) AndAlso
Compilation\SemanticModel.vb (14)
938
If lowestExpr.
Kind
= BoundKind.ArrayCreation AndAlso DirectCast(lowestExpr, BoundArrayCreation).ArrayLiteralOpt IsNot Nothing Then
941
ElseIf lowestExpr.
Kind
= BoundKind.ConvertedTupleLiteral Then
959
lowestExpr.
Kind
= BoundKind.Local Then
974
If highestExpr.
Kind
= BoundKind.Conversion Then
1021
Select Case boundNodes.LowestBoundNode.
Kind
1036
boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
= BoundKind.BadExpression AndAlso
1142
If lowestExpr.
Kind
= BoundKind.BadExpression AndAlso lowestExpr.Syntax.Kind = SyntaxKind.ObjectCreationExpression Then
1147
If child.
Kind
= BoundKind.MethodGroup AndAlso child.Syntax Is typeSyntax Then
1186
If highestBoundNodeExpr.
Kind
= BoundKind.BadExpression AndAlso bindingSymbols.Length = 0 Then
1254
boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
= BoundKind.LateInvocation Then
1286
Select Case boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
1350
Select Case boundNodes.LowestBoundNodeOfSyntacticParent.
Kind
1437
Select Case boundNodeOfSyntacticParent.
Kind
1451
Throw ExceptionUtilities.UnexpectedValue(boundNodeOfSyntacticParent.
Kind
)
Generated\BoundNodes.xml.Generated.vb (1)
9307
Select Case node.
Kind
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (18)
35
If valueOpt Is Nothing OrElse valueOpt.
Kind
<> BoundKind.SpillSequence Then
84
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
148
Debug.Assert(receiverOpt.
Kind
= BoundKind.SpillSequence)
224
Debug.Assert(left.
Kind
= BoundKind.SpillSequence)
273
Debug.Assert(rewrittenRight.
Kind
= BoundKind.SpillSequence)
317
Debug.Assert(receiverOpt.
Kind
= BoundKind.SpillSequence)
338
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
359
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
379
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
403
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
426
Debug.Assert(condition.
Kind
= BoundKind.SpillSequence)
459
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
719
Debug.Assert(rewrittenInitializer Is Nothing OrElse rewrittenInitializer.
Kind
= BoundKind.ArrayInitialization)
757
rewrittenParts(index) = If(part.
Kind
= BoundKind.ArrayInitialization,
801
Debug.Assert(expression.
Kind
= BoundKind.SpillSequence)
816
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
861
Debug.Assert(operand.
Kind
= BoundKind.SpillSequence)
879
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
189
If arg.
Kind
= BoundKind.ArrayInitialization Then
204
If arg.
Kind
= BoundKind.SpillSequence Then
262
Select Case expr.
Kind
273
Debug.Assert(sideEffect.
Kind
= BoundKind.SpillSequence)
350
Debug.Assert(Not expr.IsLValue, "stack spilling for lvalue: " + expr.
Kind
.ToString())
358
Select Case expr.
Kind
390
If expr.
Kind
= BoundKind.SpillSequence Then
399
Throw ExceptionUtilities.UnexpectedValue(expr.
Kind
)
531
Select Case node.
Kind
540
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 (12)
19
If initializer IsNot Nothing AndAlso initializer.
Kind
= BoundKind.ObjectInitializerExpression AndAlso node.ConstantValueOpt Is Nothing Then
69
Debug.Assert(node.Declarations.All(Function(d) d.
Kind
= BoundKind.AnonymousTypePropertyAccess))
125
Debug.Assert(initializer.
Kind
= BoundKind.AssignmentOperator)
158
Not (node.Left.
Kind
= BoundKind.PropertyAccess AndAlso node.LeftOnTheRightOpt Is Nothing) Then
211
block.Statements(1).
Kind
= BoundKind.ReturnStatement AndAlso
214
block.Statements(1).
Kind
= BoundKind.LabelStatement AndAlso
215
block.Statements(2).
Kind
= BoundKind.ReturnStatement) Then
219
Select Case stmt.
Kind
295
(operand.
Kind
= BoundKind.Lambda OrElse operand.
Kind
= BoundKind.QueryLambda))
297
If operand.
Kind
= BoundKind.Lambda AndAlso Not CheckLambdaForByRefParameters(DirectCast(operand, BoundLambda)) AndAlso relaxationLambda IsNot Nothing Then
374
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
201
Select Case node.
Kind
266
If node.
Kind
= BoundKind.GetType Then
280
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
283
Throw ExceptionUtilities.UnexpectedValue(node.
Kind
)
372
If receiverOpt.
Kind
= BoundKind.MyBaseReference Then
404
If origReceiverOpt.
Kind
= BoundKind.MyBaseReference Then
428
Debug.Assert(origReceiverOpt.
Kind
<> BoundKind.MyBaseReference AndAlso origReceiverOpt.
Kind
<> BoundKind.MyClassReference)
456
If receiverOpt.
Kind
= BoundKind.MyBaseReference Then
549
Select Case initializerOpt.
Kind
559
Throw ExceptionUtilities.UnexpectedValue(initializerOpt.
Kind
)
572
Debug.Assert(initializers(i).
Kind
= BoundKind.AssignmentOperator)
579
Select Case left.
Kind
588
Throw ExceptionUtilities.UnexpectedValue(left.
Kind
)
614
Debug.Assert(initializers(i).
Kind
= BoundKind.Call)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
423
If resultType.IsNullableType AndAlso originalRight.
Kind
= BoundKind.Conversion Then
645
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)
110
Select Case operand.
Kind
130
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)
1363
If rewritten.
Kind
= BoundKind.Call Then
1395
node.ReceiverOrCondition.
Kind
<> result.ReceiverOrCondition.
Kind
Then
1420
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
240
If node.
Kind
= BoundKind.EventAccess Then
244
Debug.Assert(node.
Kind
= BoundKind.Parenthesized, "node can only be EventAccess or Parenthesized")
272
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)
94
If child.
Kind
<> BoundKind.BinaryOperator Then
117
If child.
Kind
<> BoundKind.BinaryOperator Then
184
Select Case operand.
Kind
227
Debug.Assert(operand.
Kind
<> BoundKind.Parenthesized) ' Must have been removed by now.
566
If left.
Kind
= BoundKind.DirectCast Then
574
If right.
Kind
= BoundKind.DirectCast Then
883
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
170
If operand.
Kind
= BoundKind.Sequence Then
182
If operand.
Kind
= BoundKind.LoweredConditionalAccess Then
197
If operand.
Kind
= BoundKind.Sequence Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
33
If convertedTestExpression.
Kind
= BoundKind.Conversion Then
64
Select Case rewrittenTestExpression.
Kind
167
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
817
ElseIf operand.
Kind
= BoundKind.Lambda Then
1283
If operand.
Kind
= BoundKind.Call Then
1417
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_InterpolatedString.vb (1)
124
Select Case item.
Kind
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (5)
420
If assignmentTarget.
Kind
= BoundKind.LateMemberAccess Then
430
ElseIf assignmentTarget.
Kind
= BoundKind.LateInvocation Then
433
If invocation.Member.
Kind
= BoundKind.LateMemberAccess Then
470
Debug.Assert(node.Member.
Kind
<> BoundKind.LateMemberAccess)
881
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)
81
Return right.
Kind
= BoundKind.Local OrElse
82
right.
Kind
= BoundKind.Parameter
104
If operand.
Kind
= BoundKind.Local AndAlso Not DirectCast(operand, BoundLocal).LocalSymbol.IsByRef Then
108
If operand.
Kind
= BoundKind.Parameter AndAlso Not DirectCast(operand, BoundParameter).ParameterSymbol.IsByRef Then
161
Select Case expr.
Kind
289
candidateNullExpression.
Kind
<> BoundKind.ObjectCreationExpression Then
334
If expr.
Kind
= BoundKind.ObjectCreationExpression Then
351
Select Case expr.
Kind
541
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)
355
Select Case caseClause.
Kind
374
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\Rewriter.vb (1)
77
If node.
Kind
= BoundKind.Literal Then
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
298
If statement.
Kind
= BoundKind.Block Then
301
If rewrittenStatements.Length = 1 AndAlso rewrittenStatements(0).
Kind
= BoundKind.StateMachineScope Then
Lowering\SyntheticBoundNodeFactory.vb (1)
1093
If body.
Kind
<> BoundKind.Block Then
Lowering\UseTwiceRewriter.vb (14)
45
Select Case value.
Kind
61
Debug.Assert(value.
Kind
<> BoundKind.ByRefArgumentWithCopyBack AndAlso
62
value.
Kind
<> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture)
116
Select Case value.
Kind
129
Debug.Assert(value.
Kind
<> BoundKind.RangeVariable)
166
Dim kind As BoundKind = value.
Kind
184
Debug.Assert(value.
Kind
<> BoundKind.Literal)
341
If boundArgument.
Kind
= BoundKind.ArrayCreation AndAlso DirectCast(boundArgument, BoundArrayCreation).IsParamArrayArgument Then
383
If node.Member.
Kind
= BoundKind.LateMemberAccess Then
472
(result.Second.
Kind
= BoundKind.Literal AndAlso result.First.ConstantValueOpt IsNot Nothing) OrElse
473
(result.Second.
Kind
= BoundKind.Local AndAlso result.Second.WasCompilerGenerated AndAlso
475
result.First.
Kind
= BoundKind.AssignmentOperator AndAlso result.First.WasCompilerGenerated AndAlso
476
DirectCast(result.First, BoundAssignmentOperator).Left.
Kind
= BoundKind.Local AndAlso
502
Debug.Assert(boundArray.Bounds.All(Function(expr) expr.
Kind
= BoundKind.Literal))
Lowering\WithExpressionRewriter.vb (7)
140
Dim kind As BoundKind = value.
Kind
159
Debug.Assert(value.
Kind
<> BoundKind.Literal)
203
Select Case value.
Kind
276
Dim kind = value.
Kind
316
If Not (state.DoNotUseByRefLocal OrElse (value.
Kind
= BoundKind.ArrayAccess AndAlso value.Type.Kind = SymbolKind.TypeParameter)) Then
322
Select Case value.
Kind
330
Throw ExceptionUtilities.UnexpectedValue(value.
Kind
)
Operations\VisualBasicOperationFactory.vb (21)
62
Debug.Assert(boundNode.
Kind
<> BoundKind.UserDefinedConversion)
64
Select Case boundNode.
Kind
327
Throw ExceptionUtilities.UnexpectedValue(boundNode.
Kind
)
444
If(boundCall.ReceiverOpt?.
Kind
<> BoundKind.MyBaseReference, False) AndAlso
445
If(boundCall.ReceiverOpt?.
Kind
<> BoundKind.MyClassReference, False)
483
Select Case boundOperator.
Kind
488
If userDefined.UnderlyingExpression.
Kind
= BoundKind.Call Then
494
Throw ExceptionUtilities.UnexpectedValue(boundOperator.
Kind
)
525
Return If(boundUserDefinedUnaryOperator.UnderlyingExpression.
Kind
= BoundKind.Call, boundUserDefinedUnaryOperator.Call.Method, Nothing)
529
Select Case binaryOperator.
Kind
545
Throw ExceptionUtilities.UnexpectedValue(binaryOperator.
Kind
)
609
If convertedTestExpression.
Kind
= BoundKind.Conversion Then
612
Debug.Assert(convertedTestExpression.
Kind
= BoundKind.BadExpression)
638
unaryOperatorMethod = TryGetOperatorMethod(DirectCast(If(leftTest.
Kind
= BoundKind.UserDefinedUnaryOperator,
704
If syntax.IsMissing AndAlso boundConversion.Operand.
Kind
= BoundKind.BadExpression Then
728
If boundOperand.
Kind
= BoundKind.ConvertedTupleLiteral AndAlso TypeSymbol.Equals(boundOperand.Type, boundConversionOrCast.Type, TypeCompareKind.ConsiderEverything) Then
966
Debug.Assert(boundLateMemberAccess.ReceiverOpt Is Nothing OrElse boundLateMemberAccess.ReceiverOpt.
Kind
<> BoundKind.TypeExpression)
1030
Select Case knownParent.
Kind
1273
If(boundCatchBlock.ExceptionSourceOpt?.
Kind
= BoundKind.Local, False) AndAlso
1489
If receiverOpt?.
Kind
= BoundKind.FieldAccess Then
1570
If part.
Kind
= BoundKind.Interpolation Then
Operations\VisualBasicOperationFactory_Methods.vb (38)
15
If node.
Kind
= BoundKind.Conversion Then
18
If node.
Kind
= BoundKind.UserDefinedConversion Then
23
Return node.
Kind
= BoundKind.MidResult
28
Select Case boundAssignment.Right.
Kind
35
Throw ExceptionUtilities.UnexpectedValue(boundAssignment.
Kind
)
39
Select Case binaryOperator.
Kind
48
Throw ExceptionUtilities.UnexpectedValue(boundAssignment.
Kind
)
57
Select Case boundAssignment.Right.
Kind
65
Throw ExceptionUtilities.UnexpectedValue(boundAssignment.
Kind
)
69
Select Case binaryOperator.
Kind
76
Throw ExceptionUtilities.UnexpectedValue(boundAssignment.
Kind
)
80
If leftOnTheRight.
Kind
= BoundKind.Conversion Then
141
operatorMethod:=If(boundUserDefinedBinaryOperator.UnderlyingExpression.
Kind
= BoundKind.Call, boundUserDefinedBinaryOperator.Call.Method, Nothing),
156
If [operator].UnderlyingExpression.
Kind
= BoundKind.Call Then
170
Select Case boundNode.
Kind
190
Throw ExceptionUtilities.UnexpectedValue(boundNode.
Kind
)
213
Select Case argument.
Kind
232
ElseIf argument.
Kind
= BoundKind.ArrayCreation AndAlso DirectCast(argument, BoundArrayCreation).IsParamArrayArgument Then
276
If node Is Nothing OrElse node.
Kind
= BoundKind.TypeExpression Then
283
(node.
Kind
= BoundKind.MeReference OrElse
284
node.
Kind
= BoundKind.WithLValueExpressionPlaceholder OrElse
285
node.
Kind
= BoundKind.WithRValueExpressionPlaceholder) Then
368
Select Case conditionOpt.
Kind
378
Throw ExceptionUtilities.UnexpectedValue(conditionOpt.
Kind
)
394
If declaration.
Kind
= BoundKind.LocalDeclaration AndAlso
408
If first.
Kind
= BoundKind.LocalDeclaration Then
479
Dim adds = statement.
Kind
= BoundKind.AddHandlerStatement
515
If boundOperand.
Kind
= BoundKind.Parenthesized Then
527
ElseIf boundOperand.
Kind
= topLevelConversion.
Kind
Then
561
If operand.
Kind
= BoundKind.DelegateCreationExpression Then
574
If expression.
Kind
= BoundKind.Conversion Then
578
If conversionKind.HasFlag(VisualBasic.ConversionKind.UserDefined) AndAlso conversion.Operand.
Kind
= BoundKind.UserDefinedConversion Then
582
ElseIf expression.
Kind
= BoundKind.TryCast OrElse expression.
Kind
= BoundKind.DirectCast Then
606
Dim validLambdaConversionNode = operand.
Kind
= BoundKind.Lambda OrElse
607
operand.
Kind
= BoundKind.QueryLambda OrElse
608
operand.
Kind
= BoundKind.UnboundLambda
Operations\VisualBasicOperationFactory_QueryLambdaRewriter.vb (2)
57
Select Case expression.
Kind
67
Debug.Fail($"Unexpected bound kind '{expression.
Kind
}' generated for range variable rewrite by method '{NameOf(LocalRewriter.PopulateRangeVariableMapForQueryLambdaRewrite)}'")
Semantics\Conversions.vb (12)
950
If source.
Kind
= BoundKind.FieldAccess Then
952
ElseIf source.
Kind
= BoundKind.Local Then
983
Dim sourceType As TypeSymbol = If(source.
Kind
= BoundKind.TupleLiteral,
988
Dim mostEnclosing = source.GetMostEnclosedParenthesizedExpression().
Kind
1044
Select Case source.
Kind
1326
If sourceElement.
Kind
= BoundKind.ArrayInitialization Then
2112
If source.
Kind
= BoundKind.ArrayLiteral Then
2114
ElseIf source.
Kind
= BoundKind.TupleLiteral Then
2139
If (source.
Kind
<> BoundKind.ArrayLiteral) Then
2150
Debug.Assert(source.
Kind
<> BoundKind.ArrayLiteral)
4231
If expressionOpt Is Nothing OrElse expressionOpt.
Kind
<> BoundKind.Conversion OrElse expressionOpt.HasErrors Then
4249
Debug.Assert(conversion.Operand.IsNothingLiteral() OrElse conversion.Operand.
Kind
= BoundKind.Lambda)
Semantics\OverloadResolution.vb (17)
816
If group.
Kind
= BoundKind.MethodGroup Then
1957
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
2019
Debug.Assert(argument Is Nothing OrElse argument.
Kind
<> BoundKind.OmittedArgument)
2135
If argument.
Kind
= BoundKind.QueryLambda Then
2148
Dim argType As TypeSymbol = If(argument.
Kind
<> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType)
2260
If arguments(k).
Kind
<> BoundKind.OmittedArgument AndAlso
2276
Debug.Assert(argument Is Nothing OrElse argument.
Kind
<> BoundKind.OmittedArgument)
2296
If argument.
Kind
= BoundKind.QueryLambda Then
2740
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
2947
Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.
Kind
<> BoundKind.OmittedArgument)
3066
If argument Is Nothing OrElse argument.
Kind
= BoundKind.OmittedArgument Then
3312
While underlying.
Kind
= BoundKind.Parenthesized AndAlso underlying.Type Is Nothing
3316
Dim unbound = If(underlying.
Kind
= BoundKind.UnboundLambda, DirectCast(underlying, UnboundLambda), Nothing)
3393
methodOrPropertyGroup.
Kind
= BoundKind.MethodGroup AndAlso
4278
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
4362
Debug.Assert(argument.
Kind
<> BoundKind.OmittedArgument)
4458
If arguments(i).
Kind
= BoundKind.OmittedArgument Then
Semantics\TypeInference\TypeArgumentInference.vb (21)
439
If Expression.
Kind
= BoundKind.UnboundLambda AndAlso ParameterType.IsDelegateType() Then
504
Select Case Expression.
Kind
569
If Expression.
Kind
= BoundKind.ArrayLiteral Then
574
ElseIf Expression.
Kind
= BoundKind.TupleLiteral Then
941
Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.
Kind
<> BoundKind.OmittedArgument)
994
If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.
Kind
= BoundKind.OmittedArgument Then
1035
Select Case argument.
Kind
1128
Debug.Assert(argNode.Expression.
Kind
= BoundKind.TupleLiteral)
1154
Debug.Assert(argNode.Expression.
Kind
= BoundKind.AddressOfOperator)
1202
Select Case argNode.Expression.
Kind
1210
Throw ExceptionUtilities.UnexpectedValue(argNode.Expression.
Kind
)
1249
If argument.
Kind
= BoundKind.ArrayLiteral Then
1989
Debug.Assert(argument.
Kind
= BoundKind.UnboundLambda OrElse
1990
argument.
Kind
= BoundKind.QueryLambda OrElse
1991
argument.
Kind
= BoundKind.GroupTypeInferenceLambda)
1996
Select Case argument.
Kind
2020
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
2067
Select Case argument.
Kind
2075
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
2118
Select Case argument.
Kind
2238
Throw ExceptionUtilities.UnexpectedValue(argument.
Kind
)
Semantics\TypeInference\TypeInferenceCollection.vb (1)
406
If sourceElement.
Kind
= BoundKind.ArrayInitialization Then
Symbols\PropertySymbol.vb (5)
168
Debug.Assert(receiverOpt.
Kind
= BoundKind.WithLValueExpressionPlaceholder)
178
If receiverOpt.
Kind
= BoundKind.WithLValueExpressionPlaceholder OrElse receiverOpt.
Kind
= BoundKind.WithRValueExpressionPlaceholder Then
197
Select Case receiverOpt.
Kind
216
(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)
122
If boundStatement.
Kind
= BoundKind.Block Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (5)
CompilationContext.vb (1)
541
Select Case expression.
Kind
Rewriters\MayHaveSideEffectsVisitor.vb (1)
59
Dim expr = If(initializer.
Kind
= BoundKind.AssignmentOperator,
Symbols\EEMethodSymbol.vb (3)
473
If body.
Kind
<> BoundKind.ReturnStatement Then
598
Select Case body.
Kind
605
Throw ExceptionUtilities.UnexpectedValue(body.
Kind
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Semantics\FieldInitializerBindingTests.vb (7)
1541
Assert.[True](boundInit.
Kind
= BoundKind.FieldInitializer OrElse boundInit.
Kind
= BoundKind.PropertyInitializer)
1551
If boundInit.
Kind
= BoundKind.FieldInitializer Then
1559
Select Case boundFieldInit.MemberAccessExpressionOpt.
Kind
1565
Throw TestExceptionUtilities.UnexpectedValue(boundFieldInit.MemberAccessExpressionOpt.
Kind
)
1568
Assert.Equal(BoundKind.FieldAccess, boundFieldInit.MemberAccessExpressionOpt.
Kind
)
1573
Assert.Equal(BoundKind.MeReference, boundReceiver.
Kind
)