1787 references to BoundKind
Microsoft.CodeAnalysis.VisualBasic (1787)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (4)
93Case BoundKind.ConditionalGoto 95Case BoundKind.GotoStatement 97Case BoundKind.ExitStatement 99Case BoundKind.ContinueStatement
Analysis\FlowAnalysis\AbstractFlowPass.vb (49)
400Case BoundKind.ExitStatement 426Case BoundKind.ContinueStatement 461Case BoundKind.GotoStatement 463Case BoundKind.ConditionalGoto 465Case BoundKind.ExitStatement 467Case BoundKind.ReturnStatement 469Case BoundKind.ContinueStatement 471Case BoundKind.YieldStatement 720Case BoundKind.Local 726Case BoundKind.Parameter, BoundKind.MeReference, BoundKind.MyClassReference, BoundKind.MyBaseReference 729Case BoundKind.FieldAccess 732Case BoundKind.WithLValueExpressionPlaceholder, 733BoundKind.WithRValueExpressionPlaceholder, 734BoundKind.LValuePlaceholder, 735BoundKind.RValuePlaceholder 801Case BoundKind.Local 805Case BoundKind.FieldAccess 893Debug.Assert(initializer.Kind = BoundKind.AssignmentOperator) 896If initializerExpr.Kind = BoundKind.LValueToRValueWrapper Then 919Debug.Assert(initializer.Kind = BoundKind.AssignmentOperator) 922If initializerExpr.Kind = BoundKind.LValueToRValueWrapper Then 985Case BoundKind.Local 988Case BoundKind.Parameter 991Case BoundKind.Literal 994Case BoundKind.MeReference 997Case BoundKind.FieldAccess 1117If member.Kind <> BoundKind.LateMemberAccess Then 1185Dim kind As BoundKind = originalReceiver.Kind 1186If (kind <> BoundKind.TypeExpression) AndAlso 1187(kind <> BoundKind.NamespaceExpression) AndAlso 1188(kind <> BoundKind.TypeOrValueExpression) Then 1313Dim kind As BoundKind = originalReceiver.Kind 1314If (kind <> BoundKind.TypeExpression) AndAlso 1315(kind <> BoundKind.NamespaceExpression) AndAlso 1316(kind <> BoundKind.TypeOrValueExpression) Then 1727Dim kind As BoundKind = originalReceiver.Kind 1728If (kind <> BoundKind.TypeExpression) AndAlso 1729(kind <> BoundKind.NamespaceExpression) AndAlso 1730(kind <> BoundKind.TypeOrValueExpression) Then 1863Case BoundKind.RelationalCaseClause 1865Case BoundKind.SimpleCaseClause 1867Case BoundKind.RangeCaseClause 2049Dim unionBranchWithFinallyState As Boolean = pend.Branch.Kind <> BoundKind.YieldStatement 2126If child.Kind <> BoundKind.BinaryOperator Then 2637Debug.Assert(item.Kind = BoundKind.Literal OrElse item.Kind = BoundKind.Interpolation)
Analysis\FlowAnalysis\ControlFlowPass.vb (8)
77Case BoundKind.LabelStatement, BoundKind.NoOpStatement, BoundKind.Block 84Case BoundKind.LocalDeclaration 93Case BoundKind.ReturnStatement 104Case BoundKind.DimStatement 140if branch.Branch.Kind = BoundKind.YieldStatement 162If branch.Branch.Kind = BoundKind.YieldStatement
Analysis\FlowAnalysis\DataFlowPass.vb (62)
301Case BoundKind.FieldAccess 309Case BoundKind.PropertyAccess 313Case BoundKind.MeReference 316Case BoundKind.Local 319Case BoundKind.RangeVariable 322Case BoundKind.Parameter 325Case BoundKind.WithLValueExpressionPlaceholder, BoundKind.WithRValueExpressionPlaceholder 333Case BoundKind.LocalDeclaration 336Case BoundKind.ForToStatement, 337BoundKind.ForEachStatement 340Case BoundKind.ByRefArgumentWithCopyBack 421Case BoundKind.MeReference, BoundKind.MyBaseReference, BoundKind.MyClassReference 426Case BoundKind.Local 440Case BoundKind.RangeVariable 443Case BoundKind.Parameter 446Case BoundKind.FieldAccess 452If fieldsymbol.IsShared OrElse receiverOpt Is Nothing OrElse receiverOpt.Kind = BoundKind.TypeExpression Then 468Case BoundKind.WithLValueExpressionPlaceholder, BoundKind.WithRValueExpressionPlaceholder 997If node.Kind = BoundKind.Local Then 1020Case BoundKind.MeReference 1023Case BoundKind.Local 1040Case BoundKind.RangeVariable 1045Case BoundKind.Parameter 1048Case BoundKind.FieldAccess 1056Case BoundKind.WithLValueExpressionPlaceholder, BoundKind.WithRValueExpressionPlaceholder 1121Case BoundKind.Local 1124Case BoundKind.FieldAccess 1341Case BoundKind.LocalDeclaration 1351Case BoundKind.ForToStatement, 1352BoundKind.ForEachStatement 1360Case BoundKind.Local 1378Case BoundKind.Parameter 1385Case BoundKind.MeReference 1391Case BoundKind.FieldAccess, BoundKind.PropertyAccess 1400Case BoundKind.WithLValueExpressionPlaceholder, BoundKind.WithRValueExpressionPlaceholder 1406Case BoundKind.ByRefArgumentWithCopyBack 1650Case BoundKind.Lambda 1653Case BoundKind.Conversion 1656Case BoundKind.DirectCast 1659Case BoundKind.TryCast 1662Case BoundKind.Parenthesized 1806If left.Kind = BoundKind.Local Then 1882If variableDeclarations.Kind = BoundKind.AsNewLocalDeclarations Then 1909If variableDeclarations.Kind = BoundKind.AsNewLocalDeclarations Then 1955Case BoundKind.Local 1958Case BoundKind.Parameter 1961Case BoundKind.FieldAccess 1968Case BoundKind.EventAccess 1971Case BoundKind.MeReference, 1972BoundKind.MyClassReference, 1973BoundKind.MyBaseReference 2023(boundInitializer.Kind = BoundKind.ObjectCreationExpression OrElse boundInitializer.Kind = BoundKind.NewT) Then 2026If boundInitializerBase IsNot Nothing AndAlso boundInitializerBase.Kind = BoundKind.ObjectInitializerExpression Then 2118node.Kind = BoundKind.ObjectInitializerExpression AndAlso
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (3)
101Case BoundKind.Parameter, BoundKind.MeReference 117Case BoundKind.Local
Analysis\FlowAnalysis\EntryPointsWalker.vb (2)
49Case BoundKind.GotoStatement 52Case BoundKind.ReturnStatement
Analysis\FlowAnalysis\ExitPointsWalker.vb (5)
104Case BoundKind.GotoStatement 108Case BoundKind.ExitStatement 112Case BoundKind.ContinueStatement 116Case BoundKind.YieldStatement 117Case BoundKind.ReturnStatement
Analysis\FlowAnalysis\ReadWriteWalker.vb (7)
115If node.Kind = BoundKind.FieldAccess Then NoteReceiverWritten(CType(node, BoundFieldAccess)) 134Case BoundKind.Local 136Case BoundKind.MeReference 138Case BoundKind.MyBaseReference 140Case BoundKind.Parameter 142Case BoundKind.RangeVariable 144Case BoundKind.FieldAccess
Analysis\FlowAnalysis\RegionAnalysisContext.vb (2)
66Case BoundKind.NamespaceExpression, 67BoundKind.TypeExpression
Analysis\ForLoopVerification.vb (9)
73controlVariable.Kind = BoundKind.BadExpression OrElse 133Case BoundKind.ArrayAccess 135Case BoundKind.PropertyAccess 137Case BoundKind.Call 139Case BoundKind.Local 141Case BoundKind.RangeVariable 143Case BoundKind.FieldAccess 145Case BoundKind.Parameter 147Case BoundKind.Parenthesized
Analysis\InitializerRewriter.vb (7)
208initializer.Kind = BoundKind.GlobalStatementInitializer Then 210If statement.Kind = BoundKind.ExpressionStatement Then 238Case BoundKind.FieldInitializer, BoundKind.PropertyInitializer 240Case BoundKind.GlobalStatementInitializer 264If firstBoundStatement.Kind = BoundKind.ExpressionStatement Then 267If expression.Kind = BoundKind.Call Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
263If right.Kind = BoundKind.ObjectCreationExpression Then 267If arg0.Kind = BoundKind.Local AndAlso DirectCast(arg0, BoundLocal).LocalSymbol Is local Then
Binding\Binder_Attributes.vb (13)
358Debug.Assert(Not boundArguments.Any(Function(a) a.Kind = BoundKind.ByRefArgumentWithCopyBack)) 572If expression.Kind = BoundKind.GetType Then 575ElseIf expression.Kind = BoundKind.ArrayCreation Then 728Case BoundKind.AssignmentOperator 732Case BoundKind.FieldAccess 736Case BoundKind.PropertyAccess 756Case BoundKind.GetType 759Case BoundKind.ArrayCreation 762Case BoundKind.DirectCast 776Case BoundKind.TryCast 790Case BoundKind.Conversion 815Case BoundKind.Parenthesized 818Case BoundKind.BadExpression
Binding\Binder_Conversions.vb (22)
98Debug.Assert(argument.Kind <> BoundKind.DirectCast, "Associated wrong node with conversion?") 215Debug.Assert(argument.Kind <> BoundKind.TryCast, "Associated wrong node with conversion?") 454Debug.Assert(argument.Kind <> BoundKind.Conversion, "Associated wrong node with conversion?") 459ElseIf Not argument.IsNothingLiteral() AndAlso argument.Kind <> BoundKind.ArrayLiteral Then 463Debug.Assert(argument.Kind <> BoundKind.Conversion OrElse DirectCast(argument, BoundConversion).ExplicitCastInCode OrElse 474Debug.Assert(argument.Kind <> BoundKind.ArrayLiteral OrElse (convKind.Key And ConversionKind.UserDefined) <> 0) 477If argument.Kind = BoundKind.ArrayLiteral Then 1113If argument.Kind = BoundKind.ArrayLiteral Then 1135Debug.Assert(oldArgument IsNot argument AndAlso argument.Kind = BoundKind.Conversion) 1168Debug.Assert(oldArgument IsNot argument AndAlso argument.Kind = BoundKind.Conversion) 1201Debug.Assert(argument.Kind <> BoundKind.GroupTypeInferenceLambda) 1204Case BoundKind.Parenthesized 1217Case BoundKind.UnboundLambda 1222Case BoundKind.QueryLambda 1228Case BoundKind.LateAddressOfOperator 1239Case BoundKind.AddressOfOperator 1266If argument.Kind <> BoundKind.DelegateCreationExpression Then 1281Case BoundKind.ArrayLiteral 1285Case BoundKind.InterpolatedStringExpression 1288Return argument.Kind = BoundKind.Conversion 1290Case BoundKind.TupleLiteral 1585If lambda.Expression.Kind = BoundKind.RangeVariableAssignment Then
Binding\Binder_Delegates.vb (10)
50If boundOperand.Kind = BoundKind.LateMemberAccess Then 55If boundOperand.Kind <> BoundKind.MethodGroup Then 122Debug.Assert(boundFirstArgument.Kind = BoundKind.BadExpression OrElse 123boundFirstArgument.Kind = BoundKind.LateAddressOfOperator OrElse 124boundFirstArgument.Kind = BoundKind.AddressOfOperator OrElse 125boundFirstArgument.Kind = BoundKind.UnboundLambda) 136Debug.Assert(boundFirstArgument.Kind <> BoundKind.Conversion, "Associated wrong node with conversion?") 138ElseIf boundFirstArgument.Kind = BoundKind.Conversion Then 1240methodGroup.ReceiverOpt.Kind = BoundKind.Conversion Then 1244receiver.Operand.Kind = BoundKind.Lambda AndAlso
Binding\Binder_Expressions.vb (74)
48If IsEarlyAttributeBinder AndAlso result.Kind = BoundKind.MethodGroup AndAlso Not IsNameOfArgument(node) Then 121If operand.Kind = BoundKind.TypeExpression Then 125ElseIf operand.Kind = BoundKind.ArrayLiteral Then 541Case BoundKind.UnboundLambda 544Case BoundKind.TupleLiteral 547Case BoundKind.ArrayLiteral 630result.Kind = BoundKind.NamespaceExpression Then 726Case BoundKind.MethodGroup 745Case BoundKind.PropertyGroup 761Case BoundKind.NamespaceExpression 859If receiver.Kind = BoundKind.TypeOrValueExpression Then 871If receiver.Kind = BoundKind.TypeOrValueExpression Then 893If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.TypeOrValueExpression Then 906If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.TypeOrValueExpression Then 910Case BoundKind.MethodGroup 919Case BoundKind.PropertyGroup 963If expr.Kind = BoundKind.ConditionalAccess AndAlso expr.Type Is Nothing Then 989Case BoundKind.Parenthesized 994Case BoundKind.MethodGroup, 995BoundKind.PropertyGroup 1016Case BoundKind.TypeExpression 1029Case BoundKind.EventAccess 1033Case BoundKind.NamespaceExpression 1037Case BoundKind.Label 1149Case BoundKind.PropertyAccess 1160Case BoundKind.FieldAccess 1165Case BoundKind.Call 1235If expr.Kind = BoundKind.Parenthesized Then 1262ElseIf expr.Kind = BoundKind.PropertyAccess Then 1307ElseIf expr.Kind = BoundKind.AddressOfOperator Then 1315If receiverOpt Is Nothing OrElse receiverOpt.Kind = BoundKind.MyBaseReference Then 1351If expr.Kind = BoundKind.Parenthesized AndAlso Not expr.IsNothingLiteral() Then 1356ElseIf expr.Kind = BoundKind.XmlMemberAccess Then 1381ElseIf expr.Kind = BoundKind.PropertyAccess Then 1403ElseIf expr.Kind = BoundKind.InterpolatedStringExpression Then 1444Case BoundKind.Parenthesized 1450Case BoundKind.UnboundLambda 1453Case BoundKind.AddressOfOperator 1467Case BoundKind.ArrayLiteral 1470Case BoundKind.TupleLiteral 1641If expr.Kind = BoundKind.ArrayInitialization Then 1726ElseIf expression.Kind = BoundKind.LateInvocation Then 1752Case BoundKind.PropertyAccess 1766Case BoundKind.XmlMemberAccess 1769Case BoundKind.Call 1772Case BoundKind.LateInvocation 1777Case BoundKind.LateMemberAccess 1811If node.Kind = BoundKind.FieldAccess Then 1825ElseIf node.Kind = BoundKind.Local Then 2712If boundLeft.Kind = BoundKind.PropertyGroup Then 2851If(left.Kind = BoundKind.TypeExpression, QualificationKind.QualifiedViaTypeName, QualificationKind.QualifiedViaValue), 2878If left.Kind = BoundKind.NamespaceExpression Then 2901ElseIf left.Kind = BoundKind.TypeExpression Then 2935Dim effectiveOptions = If(left.Kind <> BoundKind.MyBaseReference, options, 3175If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.TypeOrValueExpression Then 3207If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.TypeOrValueExpression Then 3377If receiver.Kind = BoundKind.NamespaceExpression Then 3459If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.NamespaceExpression Then 3640receiver.Kind <> BoundKind.TypeOrValueExpression AndAlso receiver.Kind <> BoundKind.MyBaseReference AndAlso 3662receiver.Kind = BoundKind.TypeExpression Then 3674If receiver IsNot Nothing AndAlso receiver.Kind = BoundKind.TypeExpression AndAlso IsReceiverOfNameOfArgument(receiver.Syntax) Then 3755If Not left.IsLValue AndAlso left.Kind <> BoundKind.LateMemberAccess Then 3780Debug.Assert(defaultPropertyGroup Is Nothing OrElse defaultPropertyGroup.Kind = BoundKind.PropertyGroup OrElse 3781defaultPropertyGroup.Kind = BoundKind.MethodGroup OrElse defaultPropertyGroup.HasErrors) 3784If defaultPropertyGroup IsNot Nothing AndAlso defaultPropertyGroup.Kind = BoundKind.PropertyGroup Then 4525Dim expressionKind As BoundKind = expression.Kind 4528If expressionKind = BoundKind.UnboundLambda Then 4532ElseIf expressionKind = BoundKind.TupleLiteral Then 4538ElseIf expressionKind = BoundKind.ArrayLiteral Then 4665operand.Kind = BoundKind.Call Then 4768getAwaiter.Kind <> BoundKind.Call OrElse 4816isCompleted.Kind <> BoundKind.PropertyAccess OrElse 4863getResult.Kind <> BoundKind.Call Then
Binding\Binder_Initializers.vb (1)
211If Me.Compilation.IsSubmission AndAlso isLast AndAlso boundStatement.Kind = BoundKind.ExpressionStatement AndAlso Not boundStatement.HasErrors Then
Binding\Binder_InterpolatedString.vb (2)
179Case BoundKind.Literal 183Case BoundKind.Interpolation
Binding\Binder_Invocation.vb (50)
75If receiver IsNot Nothing AndAlso (receiver.Kind = BoundKind.MeReference OrElse 76receiver.Kind = BoundKind.MyBaseReference OrElse 77receiver.Kind = BoundKind.MyClassReference) Then 139If expr.Kind = BoundKind.Call Then 180If target.Kind = BoundKind.MethodGroup Then 192If target.Kind = BoundKind.MethodGroup OrElse target.Kind = BoundKind.PropertyGroup Then 204If target.Kind = BoundKind.NamespaceExpression Then 209ElseIf target.Kind = BoundKind.TypeExpression Then 261Debug.Assert(target.Kind <> BoundKind.NamespaceExpression) 262Debug.Assert(target.Kind <> BoundKind.TypeExpression) 263Debug.Assert(target.Kind <> BoundKind.MethodGroup) 264Debug.Assert(target.Kind <> BoundKind.PropertyGroup) 268If Not target.IsLValue AndAlso target.Kind <> BoundKind.LateMemberAccess Then 331If target.Kind = BoundKind.BadExpression Then 344suppressLateBindingResolutionDiagnostics:=(target.Kind = BoundKind.LateMemberAccess)) 352Debug.Assert(defaultPropertyGroup.Kind = BoundKind.PropertyGroup OrElse 353defaultPropertyGroup.Kind = BoundKind.MethodGroup OrElse 358If defaultPropertyGroup.Kind = BoundKind.PropertyGroup OrElse defaultPropertyGroup.Kind = BoundKind.MethodGroup Then 374ElseIf target.Kind = BoundKind.LateMemberAccess Then 427If withoutArgs.Kind = BoundKind.Call OrElse withoutArgs.Kind = BoundKind.PropertyAccess Then 433If withoutArgs.Kind = BoundKind.PropertyAccess Then 448If withoutArgs.Kind = BoundKind.BadExpression Then 533Debug.Assert((defaultMemberGroup.Kind = BoundKind.BadExpression) OrElse (defaultMemberGroup.Kind = BoundKind.PropertyGroup)) 589If group.Kind = BoundKind.MethodGroup Then 713If group.Kind = BoundKind.MethodGroup Then 761If group.Kind = BoundKind.MethodGroup Then 953Debug.Assert(Not boundArguments.Any(Function(a) a.Kind = BoundKind.ByRefArgumentWithCopyBack)) 991([property].IsShared OrElse (propertyAccess.ReceiverOpt IsNot Nothing AndAlso propertyAccess.ReceiverOpt.Kind = BoundKind.MeReference)) Then 1013Case BoundKind.XmlMemberAccess 1016Case BoundKind.PropertyAccess 1051Case BoundKind.MeReference, 1052BoundKind.WithLValueExpressionPlaceholder, 1053BoundKind.WithRValueExpressionPlaceholder 1446Debug.Assert(groupOpt IsNot Nothing AndAlso groupOpt.Kind = BoundKind.MethodGroup) 1491groupOpt.Kind = BoundKind.PropertyGroup Then 1948argument.Kind = BoundKind.UnboundLambda Then 2087If arguments(i).Kind = BoundKind.OmittedArgument Then 2154If parameterToArgumentMap(paramIndex) <> -1 AndAlso arguments(parameterToArgumentMap(paramIndex)).Kind <> BoundKind.OmittedArgument Then 2405If argument Is Nothing OrElse argument.Kind = BoundKind.OmittedArgument Then 2599If argument.Kind = BoundKind.QueryLambda AndAlso targetDelegateType IsNot Nothing Then 2661If arguments(i).Kind <> BoundKind.OmittedArgument Then 2677If arguments(i).Kind <> BoundKind.OmittedArgument Then 2835If isLValue AndAlso argument.Kind = BoundKind.PropertyAccess Then 2871If argument.Kind = BoundKind.LateInvocation Then 2878(copyBackExpression.Kind = BoundKind.AssignmentOperator AndAlso 3188If Not (convertedValue.Kind = BoundKind.Conversion AndAlso (DirectCast(convertedValue, BoundConversion).ConversionKind And ConversionKind.UserDefined) <> 0) Then
Binding\Binder_Lambda.vb (5)
373If node.ExpressionOpt.Kind = BoundKind.Local Then 681If argument.Kind = BoundKind.PropertyAccess Then 696ElseIf argument.Kind = BoundKind.FieldAccess Then 740If receiverOpt Is Nothing OrElse receiverOpt.Kind <> BoundKind.FieldAccess Then 752Loop While receiverOpt IsNot Nothing AndAlso receiverOpt.Kind = BoundKind.FieldAccess
Binding\Binder_Latebound.vb (9)
63receiver.Kind = BoundKind.MeReference AndAlso 95(receiver.Kind = BoundKind.TypeExpression OrElse receiver.Kind = BoundKind.NamespaceExpression) Then 130Debug.Assert(receiver IsNot Nothing AndAlso receiver.Kind <> BoundKind.TypeOrValueExpression) 131Debug.Assert(groupOpt Is Nothing OrElse groupOpt.ReceiverOpt Is Nothing OrElse groupOpt.ReceiverOpt.Kind <> BoundKind.TypeOrValueExpression) 164Dim isIndexing As Boolean = receiver IsNot Nothing AndAlso Not receiver.Kind = BoundKind.LateMemberAccess 177If argument.Kind = BoundKind.OmittedArgument Then 217receiver.Kind = BoundKind.MeReference AndAlso 223If receiver IsNot Nothing AndAlso Not receiver.IsLValue AndAlso receiver.Kind <> BoundKind.LateMemberAccess Then
Binding\Binder_ObjectInitializer.vb (4)
729If target.Kind = BoundKind.FieldAccess OrElse target.Kind = BoundKind.PropertyGroup Then 752If target.Kind = BoundKind.FieldAccess Then 994If invocation.Kind = BoundKind.LateInvocation Then
Binding\Binder_Operators.vb (6)
474If explicitSemanticForConcatArgument AndAlso left IsNot beforeConversion AndAlso left.Kind = BoundKind.Conversion Then 502If explicitSemanticForConcatArgument AndAlso right IsNot beforeConversion AndAlso right.Kind = BoundKind.Conversion Then 931While cast.Kind = BoundKind.Conversion OrElse cast.Kind = BoundKind.DirectCast 940Case BoundKind.Conversion 945Case BoundKind.DirectCast
Binding\Binder_Query.vb (9)
175If Not source.Type.IsErrorType() AndAlso source.Kind = BoundKind.QueryableSource AndAlso 176DirectCast(source, BoundQueryableSource).Source.Kind = BoundKind.QuerySource Then 412Dim suppressCallDiagnostics As Boolean = (firstSelectExpression.Kind = BoundKind.BadExpression) 414If Not suppressCallDiagnostics AndAlso firstSelectExpression.HasErrors AndAlso firstSelectExpression.Kind = BoundKind.QueryClause Then 416suppressCallDiagnostics = query.UnderlyingExpression.Kind = BoundKind.BadExpression 4357If Not asQueryable.HasErrors AndAlso asQueryable.Kind = BoundKind.Call Then 4375If Not asEnumerable.HasErrors AndAlso asEnumerable.Kind = BoundKind.Call Then 4398If Not cast.HasErrors AndAlso cast.Kind = BoundKind.Call Then 4676If arg.Kind = BoundKind.QueryLambda Then
Binding\Binder_SelectCase.vb (6)
456Case BoundKind.RelationalCaseClause 459Case BoundKind.SimpleCaseClause 462Case BoundKind.RangeCaseClause 586Case BoundKind.RelationalCaseClause 602Case BoundKind.RangeCaseClause 663Case BoundKind.RangeCaseClause
Binding\Binder_Statements.vb (41)
277Case BoundKind.SimpleCaseClause, BoundKind.RelationalCaseClause 279Case BoundKind.RangeCaseClause 427Debug.Assert(initializer.Expression.Kind = BoundKind.Call OrElse 558If(_enclosingSyncLockOrUsing.Kind = BoundKind.UsingStatement, 833If boundLabelExpression.Kind = BoundKind.Label Then 1258Debug.Assert(declarationInitializer.Kind = BoundKind.BadExpression) 1394Case BoundKind.UnboundLambda 1397Case BoundKind.ArrayLiteral 1401Case BoundKind.TupleLiteral 1927Case BoundKind.XmlMemberAccess 1932Case BoundKind.PropertyAccess 1991Case BoundKind.LateMemberAccess 1995Case BoundKind.LateInvocation 2088Case BoundKind.LocalDeclaration 2092Case BoundKind.AsNewLocalDeclarations 2096Case BoundKind.DimStatement 2117Case BoundKind.LocalDeclaration 2120Case BoundKind.AsNewLocalDeclarations 2258Debug.Assert((original.Kind = BoundKind.CompoundAssignmentTargetPlaceholder) = (right.Kind = BoundKind.MidResult) OrElse original.HasErrors OrElse right.HasErrors) 2283If toCheck.Kind = BoundKind.UnboundLambda Then 2306handlerExpression.Kind = BoundKind.DelegateCreationExpression AndAlso 2435If notParenthesized.Kind = BoundKind.EventAccess Then 2464If target.Kind <> BoundKind.EventAccess Then 2633If boundExpression.Kind = BoundKind.ConditionalAccess Then 2639Not boundExpression.Kind = BoundKind.AwaitOperator AndAlso 2663If boundExpression.Kind = BoundKind.Call Then 2721Case BoundKind.PropertyAccess 2729Case BoundKind.LateMemberAccess 2733Case BoundKind.LateInvocation 2745Case BoundKind.ConditionalAccess 3178If stepValue IsNot stepValueBeforeConversion AndAlso stepValue.Kind = BoundKind.Conversion AndAlso 4008Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral) 4164boundMoveNextCall.Kind <> BoundKind.Call OrElse 4471If localDeclarations.Kind <> BoundKind.AsNewLocalDeclarations Then 4483If localDeclarations.Kind = BoundKind.LocalDeclaration Then 4823If Not (exprKind = BoundKind.Parameter OrElse 4824exprKind = BoundKind.Local AndAlso Not DirectCast(exceptionSource, BoundLocal).LocalSymbol.IsStatic) Then 5263If boundLabelExpression.Kind = BoundKind.Label Then 5302If boundLabelExpression.Kind = BoundKind.Label Then
Binding\Binder_Utils.vb (8)
1302If boundExpression.Kind = BoundKind.Local Then 1319Case BoundKind.DirectCast 1324Case BoundKind.TryCast 1329Case BoundKind.Conversion 1334Case BoundKind.BinaryOperator 1345Case BoundKind.UnaryOperator 1348Case BoundKind.Parenthesized 1351Case BoundKind.BadExpression
Binding\Binder_WithBlock.vb (2)
109Debug.Assert(expressionPlaceholder IsNot Nothing AndAlso (expressionPlaceholder.Kind = BoundKind.WithLValueExpressionPlaceholder OrElse expressionPlaceholder.Kind = BoundKind.WithRValueExpressionPlaceholder))
Binding\Binder_XmlLiterals.vb (2)
243If (childNode.Kind = BoundKind.XmlAttribute) AndAlso DirectCast(childNode, BoundXmlAttribute).MatchesImport Then 281(expr.Kind = BoundKind.XmlEmbeddedExpression) AndAlso
Binding\MemberSemanticModel.vb (42)
124Case BoundKind.Lambda 141Case BoundKind.ArrayCreation 663If bound IsNot Nothing AndAlso bound.Kind = BoundKind.QueryableSource Then 684If bound IsNot Nothing AndAlso bound.Kind = BoundKind.RangeVariableAssignment Then 701If bound IsNot Nothing AndAlso bound.Kind = BoundKind.RangeVariableAssignment Then 750If enumeratorInfo.GetEnumerator IsNot Nothing AndAlso enumeratorInfo.GetEnumerator.Kind = BoundKind.Call Then 758If enumeratorInfo.MoveNext IsNot Nothing AndAlso enumeratorInfo.MoveNext.Kind = BoundKind.Call Then 766If enumeratorInfo.Current IsNot Nothing AndAlso enumeratorInfo.Current.Kind = BoundKind.PropertyAccess Then 794If originalCollection.Kind = BoundKind.Conversion Then 943Debug.Assert(bound Is Nothing OrElse bound.Kind = BoundKind.QueryExpression) 944If bound IsNot Nothing AndAlso bound.Kind = BoundKind.QueryExpression Then 962If bound IsNot Nothing AndAlso bound.Kind = BoundKind.QueryClause Then 964DirectCast(bound, BoundQueryClause).UnderlyingExpression.Kind = BoundKind.QueryClause Then 980If bound IsNot Nothing AndAlso bound.Kind = BoundKind.QueryClause Then 981If DirectCast(bound, BoundQueryClause).UnderlyingExpression.Kind = BoundKind.QueryClause Then 995If bound IsNot Nothing AndAlso bound.Kind = BoundKind.Ordering Then 1005If bound IsNot Nothing AndAlso bound.Kind = BoundKind.AggregateClause Then 1016Dim select1Node = DirectCast(CompilerGeneratedNodeFinder.FindIn(bound, node, BoundKind.QueryClause), BoundQueryClause) 1040If boundNodes(i).Kind = BoundKind.QueryClause OrElse boundNodes(i).Kind = BoundKind.QueryableSource Then 1054If bound.Kind = BoundKind.QueryClause Then 1062If bound IsNot Nothing AndAlso bound.Kind = BoundKind.QueryableSource Then 1066Case BoundKind.QueryClause 1072node.Expression, BoundKind.ToQueryableCollectionConversion), 1081Case BoundKind.ToQueryableCollectionConversion 1085Case BoundKind.QuerySource 1138Private ReadOnly _targetBoundKind As BoundKind 1141Private Sub New(targetSyntax As VisualBasicSyntaxNode, targetBoundKind As BoundKind) 1146Public Shared Function FindIn(context As BoundNode, targetSyntax As VisualBasicSyntaxNode, targetBoundKind As BoundKind) As BoundNode 1147Debug.Assert(targetBoundKind <> BoundKind.BinaryOperator) ' Otherwise VisitBinaryOperator should be adjusted 1684If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 1738If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 1776Debug.Assert(boundNode Is Nothing OrElse boundNode.Kind = BoundKind.Lambda, "all lambdas should be converted to bound lambdas now") 2078If bound IsNot Nothing AndAlso bound.Kind = BoundKind.AwaitOperator Then 2174Case BoundKind.UnboundLambda 2178Case BoundKind.Conversion 2183Case BoundKind.RValuePlaceholder, 2184BoundKind.LValuePlaceholder, 2185BoundKind.WithLValueExpressionPlaceholder, 2186BoundKind.WithRValueExpressionPlaceholder 2219If node.Left.Kind <> BoundKind.BinaryOperator Then 2237While current.Kind = BoundKind.BinaryOperator
BoundTree\BoundArrayCreation.vb (1)
36If item.Kind = BoundKind.ArrayInitialization Then
BoundTree\BoundAssignmentOperator.vb (14)
57Case BoundKind.PropertyAccess 64Case BoundKind.XmlMemberAccess 68Case BoundKind.LateMemberAccess 71Case BoundKind.LateInvocation 94(Left.Kind = BoundKind.FieldAccess AndAlso 104If rightNode.Kind = BoundKind.Conversion Then 107If rightNode.Kind = BoundKind.UserDefinedConversion Then 112If rightNode.Kind <> BoundKind.MidResult Then 113Debug.Assert(rightNode.Kind = BoundKind.BinaryOperator OrElse 114rightNode.Kind = BoundKind.UserDefinedBinaryOperator) 117If rightNode.Kind = BoundKind.BinaryOperator Then 121If boundUserDefinedOperator.UnderlyingExpression.Kind = BoundKind.Call Then 129If leftNode.Kind = BoundKind.Conversion Then 132If leftNode.Kind = BoundKind.UserDefinedConversion Then
BoundTree\BoundBinaryConditionalExpression.vb (2)
19ElseIf ConvertedTestExpression.Kind <> BoundKind.Conversion Then 21Debug.Assert(ConvertedTestExpression.Kind = BoundKind.BadExpression)
BoundTree\BoundCaseClause.vb (2)
15Case BoundKind.BinaryOperator 19Case BoundKind.UserDefinedBinaryOperator
BoundTree\BoundCollectionInitializerExpression.vb (2)
17Debug.Assert(initializer.Kind = BoundKind.Call OrElse initializer.Kind = BoundKind.LateInvocation)
BoundTree\BoundConversion.vb (8)
46Debug.Assert(((ConversionKind And VisualBasic.ConversionKind.UserDefined) <> 0) = (Operand.Kind = BoundKind.UserDefinedConversion)) 53Debug.Assert(ExtendedInfoOpt Is Nothing OrElse ExtendedInfoOpt.Kind = BoundKind.RelaxationLambda) 60Debug.Assert(Operand.Kind = BoundKind.ConvertedTupleLiteral OrElse Operand.HasErrors) 62Debug.Assert(ExtendedInfoOpt.Kind = BoundKind.ConvertedTupleElements) 66If Operand.Kind = BoundKind.UserDefinedConversion Then 84Operand.Kind = BoundKind.UserDefinedConversion Then 87If expr.Kind = BoundKind.Conversion Then 91If expr.Kind = BoundKind.Call Then
BoundTree\BoundExpressionExtensions.vb (76)
40Case BoundKind.Conversion 44Case BoundKind.DirectCast 52Case BoundKind.TryCast 56Case BoundKind.ObjectCreationExpression 70Case BoundKind.Parenthesized 73Case BoundKind.BadExpression 76Case BoundKind.TypeExpression, 77BoundKind.NamespaceExpression, 78BoundKind.MethodGroup, 79BoundKind.PropertyGroup, 80BoundKind.ArrayInitialization, 81BoundKind.TypeArguments, 82BoundKind.Label, 83BoundKind.EventAccess 93Return node.Kind = BoundKind.MeReference 98Return node.Kind = BoundKind.MyBaseReference 103Return node.Kind = BoundKind.MyClassReference 119Case BoundKind.XmlMemberAccess 122Case BoundKind.PropertyAccess 133Return node.Kind = BoundKind.PropertyAccess AndAlso 140Case BoundKind.LateMemberAccess, 141BoundKind.LateInvocation 153If node.Kind = BoundKind.PropertyAccess Then 163Case BoundKind.XmlMemberAccess 166Case BoundKind.PropertyAccess 181Case BoundKind.XmlMemberAccess 184Case BoundKind.PropertyAccess 213Case BoundKind.LateMemberAccess 217Case BoundKind.LateInvocation 223If group IsNot Nothing AndAlso group.Kind = BoundKind.MethodGroup Then 232Case BoundKind.LateBoundArgumentSupportingAssignmentWithCapture 247Case BoundKind.XmlMemberAccess 250Case BoundKind.PropertyAccess 262Case BoundKind.LateMemberAccess 265Case BoundKind.LateInvocation 282Case BoundKind.XmlMemberAccess 286Case BoundKind.PropertyAccess 300Case BoundKind.LateMemberAccess 303Case BoundKind.LateInvocation 320Case BoundKind.XmlMemberAccess 324Case BoundKind.PropertyAccess 329Case BoundKind.LateMemberAccess 332Case BoundKind.LateInvocation 357While node.Kind = BoundKind.Parenthesized 361Return node.Kind = BoundKind.Literal AndAlso 459Debug.Assert(type IsNot Nothing OrElse node.Kind = BoundKind.Literal OrElse node.Kind = BoundKind.Parenthesized) 498Case BoundKind.Literal 501Case BoundKind.Parenthesized 505Case BoundKind.Conversion 526While expression.Kind = BoundKind.Parenthesized 535Case BoundKind.Call, 536BoundKind.Local, 537BoundKind.RangeVariable, 538BoundKind.FieldAccess, 539BoundKind.PropertyAccess, 540BoundKind.EventAccess, 541BoundKind.MethodGroup, 542BoundKind.PropertyGroup, 543BoundKind.ObjectCreationExpression, 544BoundKind.TypeExpression, 545BoundKind.NamespaceExpression, 546BoundKind.Conversion 549Case BoundKind.BadExpression 590Case BoundKind.MethodGroup 593Case BoundKind.PropertyGroup 596Case BoundKind.BadExpression 599Case BoundKind.QueryClause 602Case BoundKind.AggregateClause 605Case BoundKind.Ordering 608Case BoundKind.QuerySource 611Case BoundKind.ToQueryableCollectionConversion 614Case BoundKind.QueryableSource 643node.GetMostEnclosedParenthesizedExpression().Kind = BoundKind.AddressOfOperator OrElse 644node.GetMostEnclosedParenthesizedExpression().Kind = BoundKind.Lambda OrElse 645node.Kind = BoundKind.QueryLambda,
BoundTree\BoundInterpolatedStringExpression.vb (3)
25If item.Kind = BoundKind.Interpolation Then Return True 41Debug.Assert(Not Contents.Where(Function(content) content.Kind <> BoundKind.Interpolation AndAlso content.Kind <> BoundKind.Literal).Any())
BoundTree\BoundLateBoundArgumentSupportingAssignmentWithCapture.vb (1)
15Debug.Assert(OriginalArgument.Kind <> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture)
BoundTree\BoundLateInvocation.vb (2)
24If member.Kind = BoundKind.LateMemberAccess Then 35If Member.Kind = BoundKind.LateMemberAccess Then
BoundTree\BoundLateMemberAccess.vb (1)
37Debug.Assert(ReceiverOpt Is Nothing OrElse ReceiverOpt.Kind <> BoundKind.TypeExpression)
BoundTree\BoundMethodOrPropertyGroup.vb (4)
19Case BoundKind.MethodGroup 26Case BoundKind.PropertyGroup 44Case BoundKind.MethodGroup 47Case BoundKind.PropertyGroup
BoundTree\BoundNamespaceExpression.vb (1)
38Debug.Assert(UnevaluatedReceiverOpt Is Nothing OrElse UnevaluatedReceiverOpt.Kind = BoundKind.NamespaceExpression)
BoundTree\BoundNode.vb (7)
11Private ReadOnly _kind As BoundKind 28Public Sub New(kind As BoundKind, syntax As SyntaxNode) 35Public Sub New(kind As BoundKind, syntax As SyntaxNode, hasErrors As Boolean) 50Private Shared Sub ValidateLocationInformation(kind As BoundKind, syntax As SyntaxNode) 53Debug.Assert(kind = BoundKind.SequencePoint OrElse kind = BoundKind.SequencePointExpression OrElse syntax IsNot Nothing) 86Public ReadOnly Property Kind As BoundKind
BoundTree\BoundNodeExtensions.vb (7)
53Case BoundKind.UnboundLambda 55Case BoundKind.QueryLambda 57Case BoundKind.GroupTypeInferenceLambda 68Return kind = BoundKind.UnboundLambda OrElse kind = BoundKind.Lambda OrElse kind = BoundKind.QueryLambda OrElse kind = BoundKind.GroupTypeInferenceLambda
BoundTree\BoundObjectInitializerExpression.vb (4)
17Debug.Assert(initializer.Kind = BoundKind.AssignmentOperator) 18Debug.Assert(DirectCast(initializer, BoundAssignmentOperator).Left.Kind = BoundKind.BadExpression OrElse 19DirectCast(initializer, BoundAssignmentOperator).Left.Kind = BoundKind.FieldAccess OrElse 20DirectCast(initializer, BoundAssignmentOperator).Left.Kind = BoundKind.PropertyAccess)
BoundTree\BoundRedimClause.vb (1)
16Case BoundKind.LateInvocation
BoundTree\BoundSpillSequence.vb (1)
30Debug.Assert(Me.ValueOpt Is Nothing OrElse Me.ValueOpt.Kind <> BoundKind.SpillSequence)
BoundTree\BoundTreeRewriter.vb (2)
110If child.Kind <> BoundKind.BinaryOperator Then 123If child.Kind <> BoundKind.BinaryOperator Then
BoundTree\BoundTreeVisitor.vb (48)
19Case BoundKind.OmittedArgument 21Case BoundKind.Parenthesized 23Case BoundKind.ArrayAccess 25Case BoundKind.TypeExpression 27Case BoundKind.NamespaceExpression 29Case BoundKind.UnaryOperator 31Case BoundKind.BinaryOperator 33Case BoundKind.AssignmentOperator 35Case BoundKind.TernaryConditionalExpression 37Case BoundKind.BinaryConditionalExpression 39Case BoundKind.Conversion 41Case BoundKind.DirectCast 43Case BoundKind.TryCast 45Case BoundKind.TypeOf 47Case BoundKind.SequencePoint 49Case BoundKind.SequencePointWithSpan 51Case BoundKind.NoOpStatement 53Case BoundKind.MethodGroup 55Case BoundKind.PropertyGroup 57Case BoundKind.ReturnStatement 59Case BoundKind.Call 61Case BoundKind.ObjectCreationExpression 63Case BoundKind.DelegateCreationExpression 65Case BoundKind.FieldAccess 67Case BoundKind.PropertyAccess 69Case BoundKind.Block 71Case BoundKind.LocalDeclaration 73Case BoundKind.FieldInitializer 75Case BoundKind.PropertyInitializer 77Case BoundKind.Sequence 79Case BoundKind.ExpressionStatement 81Case BoundKind.IfStatement 83Case BoundKind.ForToStatement 85Case BoundKind.ExitStatement 87Case BoundKind.ContinueStatement 89Case BoundKind.TryStatement 91Case BoundKind.CatchBlock 93Case BoundKind.Literal 95Case BoundKind.MeReference 97Case BoundKind.Local 99Case BoundKind.Parameter 101Case BoundKind.ByRefArgumentPlaceholder 103Case BoundKind.ByRefArgumentWithCopyBack 105Case BoundKind.LabelStatement 107Case BoundKind.GotoStatement 109Case BoundKind.StatementList 111Case BoundKind.ConditionalGoto 113Case BoundKind.Lambda
BoundTree\BoundTreeWalker.vb (2)
77If node.Left.Kind <> BoundKind.BinaryOperator Then 91While current.Kind = BoundKind.BinaryOperator
BoundTree\BoundUserDefinedBinaryOperator.vb (3)
35Debug.Assert(UnderlyingExpression.Kind = BoundKind.BadExpression OrElse UnderlyingExpression.Kind = BoundKind.Call) 39If UnderlyingExpression.Kind = BoundKind.Call Then
BoundTree\BoundUserDefinedShortCircuitingOperator.vb (3)
20Debug.Assert(LeftTest.Kind = BoundKind.UserDefinedUnaryOperator OrElse 21(LeftTest.Kind = BoundKind.NullableIsTrueOperator AndAlso 22DirectCast(LeftTest, BoundNullableIsTrueOperator).Operand.Kind = BoundKind.UserDefinedUnaryOperator))
BoundTree\BoundUserDefinedUnaryOperator.vb (3)
29Debug.Assert(UnderlyingExpression.Kind = BoundKind.BadExpression OrElse UnderlyingExpression.Kind = BoundKind.Call) 31If UnderlyingExpression.Kind = BoundKind.Call Then
BoundTree\BoundYieldStatement.vb (1)
20MyBase.New(BoundKind.YieldStatement, syntax, hasErrors OrElse expression.NonNullAndHasErrors())
CodeGen\EmitAddress.vb (44)
43Dim kind As BoundKind = expression.Kind 54Case BoundKind.Local 64Case BoundKind.Dup 68Case BoundKind.ReferenceAssignment 71Case BoundKind.ConditionalAccessReceiverPlaceholder 76Case BoundKind.ComplexConditionalAccessReceiver 79Case BoundKind.Parameter 82Case BoundKind.FieldAccess 85Case BoundKind.ArrayAccess 88Case BoundKind.MeReference, 89BoundKind.MyClassReference 94Case BoundKind.ValueTypeMeReference 97Case BoundKind.MyBaseReference 100Case BoundKind.Parenthesized 109Case BoundKind.Sequence 112Case BoundKind.SequencePointExpression 115Case BoundKind.PseudoVariable 118Case BoundKind.Call 193Case BoundKind.Local 199Case BoundKind.Sequence 202Case BoundKind.FieldAccess 221Case BoundKind.Sequence 225Case BoundKind.FieldAccess 228Case BoundKind.MeReference, 229BoundKind.MyBaseReference, 230BoundKind.ArrayAccess, 231BoundKind.ReferenceAssignment, 232BoundKind.Parameter 235Case BoundKind.Local 241Case BoundKind.Call 245Case BoundKind.Dup 250Case BoundKind.ValueTypeMeReference 282fieldAccess.ReceiverOpt.Kind = BoundKind.MeReference 291If expression.Kind = BoundKind.ConditionalAccessReceiverPlaceholder OrElse 292expression.Kind = BoundKind.ComplexConditionalAccessReceiver Then 300Case BoundKind.Sequence 304Case BoundKind.FieldAccess 307Case BoundKind.Local 311Case BoundKind.Parameter 316Case BoundKind.PseudoVariable 319Case BoundKind.Dup 323Case BoundKind.MeReference, BoundKind.MyClassReference 485If receiver.Kind <> BoundKind.ConditionalAccessReceiverPlaceholder Then
CodeGen\EmitArrayInitializer.vb (4)
271If inits(0).Kind = BoundKind.ArrayInitialization Then 287Debug.Assert(inits.All(Function(init) init.Kind <> BoundKind.ArrayInitialization) OrElse 288inits.All(Function(init) init.Kind = BoundKind.ArrayInitialization), 291Return inits.Length <> 0 AndAlso inits(0).Kind = BoundKind.ArrayInitialization
CodeGen\EmitConversion.vb (2)
116Case BoundKind.BinaryOperator 129Case BoundKind.UnaryOperator
CodeGen\EmitExpression.vb (110)
40Debug.Assert(expression.Kind = BoundKind.FieldAccess) 77Case BoundKind.AssignmentOperator 80Case BoundKind.Call 83Case BoundKind.TernaryConditionalExpression 86Case BoundKind.BinaryConditionalExpression 89Case BoundKind.ObjectCreationExpression 92Case BoundKind.ArrayCreation 95Case BoundKind.ArrayLength 98Case BoundKind.Conversion 101Case BoundKind.DirectCast 104Case BoundKind.TryCast 107Case BoundKind.TypeOf 110Case BoundKind.Local 113Case BoundKind.Parameter 118Case BoundKind.Dup 121Case BoundKind.FieldAccess 124Case BoundKind.ArrayAccess 127Case BoundKind.MeReference, BoundKind.MyClassReference 132Case BoundKind.MyBaseReference 137Case BoundKind.Sequence 140Case BoundKind.SequencePointExpression 143Case BoundKind.UnaryOperator 146Case BoundKind.BinaryOperator 149Case BoundKind.DelegateCreationExpression 152Case BoundKind.GetType 155Case BoundKind.FieldInfo 158Case BoundKind.MethodInfo 161Case BoundKind.ReferenceAssignment 164Case BoundKind.ValueTypeMeReference 170Case BoundKind.LoweredConditionalAccess 173Case BoundKind.ConditionalAccessReceiverPlaceholder 176Case BoundKind.ComplexConditionalAccessReceiver 179Case BoundKind.PseudoVariable 182Case BoundKind.ModuleVersionId 186Case BoundKind.ModuleVersionIdString 190Case BoundKind.InstrumentationPayloadRoot 194Case BoundKind.MethodDefIndex 198Case BoundKind.MaximumMethodDefIndex 202Case BoundKind.SourceDocumentIndex 495Debug.Assert(thisRef.Kind = BoundKind.MeReference OrElse thisRef.Kind = BoundKind.MyClassReference) 725ElseIf receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then 731ElseIf receiver.Kind = BoundKind.FieldAccess Then 756If receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then 766Case BoundKind.Parameter 770Case BoundKind.Local 774Case BoundKind.Sequence 777Case BoundKind.FieldAccess 881Debug.Assert(receiver.Kind <> BoundKind.MyBaseReference, "MyBase should always use call") 882Debug.Assert(receiver.Kind <> BoundKind.MyClassReference, "MyClass should always use call") 891Case BoundKind.ArrayCreation 894Case BoundKind.ObjectCreationExpression 899Case BoundKind.DirectCast 911Case BoundKind.MeReference, BoundKind.MyBaseReference, BoundKind.MyClassReference 916Case BoundKind.DelegateCreationExpression, BoundKind.AddressOfOperator 919Case BoundKind.Sequence 923Case BoundKind.AssignmentOperator 927Case BoundKind.GetType 930Case BoundKind.FieldAccess 933Case BoundKind.ConditionalAccessReceiverPlaceholder, 934BoundKind.ComplexConditionalAccessReceiver 948Case BoundKind.MeReference, 949BoundKind.MyClassReference 952Case BoundKind.Sequence 1184Debug.Assert(Not receiverType.IsReferenceType OrElse receiver.Kind <> BoundKind.ComplexConditionalAccessReceiver) 1186(receiver.Kind = BoundKind.ConditionalAccessReceiverPlaceholder OrElse 1277Case BoundKind.Local, BoundKind.Parameter, BoundKind.MeReference, BoundKind.MyBaseReference, BoundKind.MyClassReference 1513Case BoundKind.DirectCast 1520Case BoundKind.TryCast 1534Case BoundKind.AssignmentOperator 1538Case BoundKind.Sequence 1542Case BoundKind.Local 1549Case BoundKind.Dup 1696If target.Kind = BoundKind.Local AndAlso IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol) Then 1702Debug.Assert(target.Kind <> BoundKind.Local OrElse Not IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol)) 1815If right.Kind = BoundKind.ObjectCreationExpression Then 1833Return AllowedToTakeRef(left, AddressKind.Writeable) AndAlso Not (left.Kind = BoundKind.ArrayAccess AndAlso left.Type.TypeKind = TypeKind.TypeParameter) 1876Case BoundKind.Local 1879Case BoundKind.Parameter 1882Case BoundKind.ReferenceAssignment 1892Case BoundKind.Local 1903Case BoundKind.ReferenceAssignment 1907Case BoundKind.FieldAccess 1917Case BoundKind.Parameter 1924Case BoundKind.ArrayAccess 1930Case BoundKind.MeReference 1940Case BoundKind.PseudoVariable 1944Case BoundKind.Sequence 1958Case BoundKind.Call 1964Case BoundKind.ModuleVersionId, BoundKind.InstrumentationPayloadRoot 2021Case BoundKind.FieldAccess 2024Case BoundKind.Local 2036Case BoundKind.ReferenceAssignment, 2037BoundKind.PseudoVariable 2040Case BoundKind.ArrayAccess 2045Case BoundKind.MeReference 2048Case BoundKind.Parameter 2051Case BoundKind.Sequence 2063Case BoundKind.Call 2067Case BoundKind.ModuleVersionId 2070Case BoundKind.InstrumentationPayloadRoot
CodeGen\EmitOperators.vb (6)
158If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then 177If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then 624If condition.Kind = BoundKind.BinaryOperator Then 654If condition.Kind = BoundKind.BinaryOperator Then 661ElseIf condition.Kind = BoundKind.TypeOf Then 687While condition.Kind = BoundKind.UnaryOperator
CodeGen\EmitStatement.vb (33)
20Case BoundKind.Block 23Case BoundKind.SequencePoint 26Case BoundKind.SequencePointWithSpan 29Case BoundKind.ExpressionStatement 32Case BoundKind.NoOpStatement 35Case BoundKind.StatementList 42Case BoundKind.ReturnStatement 45Case BoundKind.ThrowStatement 48Case BoundKind.GotoStatement 51Case BoundKind.LabelStatement 54Case BoundKind.ConditionalGoto 57Case BoundKind.TryStatement 60Case BoundKind.SelectStatement 63Case BoundKind.UnstructuredExceptionOnErrorSwitch 66Case BoundKind.UnstructuredExceptionResumeSwitch 69Case BoundKind.StateMachineScope 208If catchBlock.ExceptionFilterOpt IsNot Nothing AndAlso catchBlock.ExceptionFilterOpt.Kind = BoundKind.UnstructuredExceptionHandlingCatchFilter Then 318While exceptionSource.Kind = BoundKind.Sequence 329Case BoundKind.Local 333Case BoundKind.Parameter 347Case BoundKind.FieldAccess 414(catchBlock.ExceptionFilterOpt Is Nothing OrElse catchBlock.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter) Then 692Case BoundKind.BinaryOperator 756Case BoundKind.UnaryOperator 767Case BoundKind.TypeOf 792Case BoundKind.Sequence 851(_currentCatchBlock.ExceptionFilterOpt Is Nothing OrElse _currentCatchBlock.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter) AndAlso 993Case BoundKind.SimpleCaseClause 1001Case BoundKind.RelationalCaseClause 1010Case BoundKind.RangeCaseClause 1054If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then 1057ElseIf selectExpression.Kind = BoundKind.Parameter AndAlso Not DirectCast(selectExpression, BoundParameter).ParameterSymbol.IsByRef Then 1068If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then
CodeGen\Optimizer\StackScheduler.Analyzer.vb (22)
103Debug.Assert(expr.Kind <> BoundKind.Label) 260Case BoundKind.Local, BoundKind.Parameter 263Case BoundKind.FieldAccess 266Case BoundKind.Sequence 579If right.Kind = BoundKind.ObjectCreationExpression Then 624Case BoundKind.Parameter 626Case BoundKind.Local 628Case BoundKind.Call 630Case BoundKind.Sequence 634Case BoundKind.PseudoVariable 636Case BoundKind.ReferenceAssignment 638Case BoundKind.ValueTypeMeReference 641Case BoundKind.ModuleVersionId, 642BoundKind.InstrumentationPayloadRoot 646Case BoundKind.FieldAccess, 647BoundKind.ArrayAccess 682Debug.Assert(receiver Is Nothing OrElse receiver.Kind = BoundKind.TypeExpression) 907If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then 920If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then 1018If expressionStatement.Expression.Kind = BoundKind.Local Then 1260top.expression.Kind = BoundKind.Local AndAlso
CodeGen\Optimizer\StackScheduler.Rewriter.vb (2)
64If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then 77If child.Kind <> BoundKind.BinaryOperator OrElse child.ConstantValueOpt IsNot Nothing Then
Compilation\MethodCompiler.vb (4)
1441If expression.Kind <> BoundKind.Call Then 1844ElseIf theFirstStatementOpt.Kind = BoundKind.ExpressionStatement Then 1890(node.ReceiverOpt.Kind = BoundKind.MeReference OrElse node.ReceiverOpt.Kind = BoundKind.MyClassReference) AndAlso
Compilation\SemanticModel.vb (29)
942If lowestExpr.Kind = BoundKind.ArrayCreation AndAlso DirectCast(lowestExpr, BoundArrayCreation).ArrayLiteralOpt IsNot Nothing Then 945ElseIf lowestExpr.Kind = BoundKind.ConvertedTupleLiteral Then 963lowestExpr.Kind = BoundKind.Local Then 978If highestExpr.Kind = BoundKind.Conversion Then 1026Case BoundKind.MethodGroup 1030Case BoundKind.PropertyGroup 1034Case BoundKind.TypeExpression 1040boundNodes.LowestBoundNodeOfSyntacticParent.Kind = BoundKind.BadExpression AndAlso 1062Case BoundKind.Attribute 1093Case BoundKind.ObjectCreationExpression 1108Case BoundKind.LateMemberAccess 1111Case BoundKind.LateInvocation 1115Case BoundKind.MyBaseReference, 1116BoundKind.MeReference, 1117BoundKind.MyClassReference 1127Case BoundKind.TypeOrValueExpression 1146If lowestExpr.Kind = BoundKind.BadExpression AndAlso lowestExpr.Syntax.Kind = SyntaxKind.ObjectCreationExpression Then 1151If child.Kind = BoundKind.MethodGroup AndAlso child.Syntax Is typeSyntax Then 1190If highestBoundNodeExpr.Kind = BoundKind.BadExpression AndAlso bindingSymbols.Length = 0 Then 1258boundNodes.LowestBoundNodeOfSyntacticParent.Kind = BoundKind.LateInvocation Then 1291Case BoundKind.Call 1300Case BoundKind.DelegateCreationExpression 1310Case BoundKind.BadExpression 1320Case BoundKind.NameOfOperator 1355Case BoundKind.PropertyAccess 1366Case BoundKind.BadExpression 1376Case BoundKind.NameOfOperator 1442Case BoundKind.Attribute 1449Case BoundKind.BadExpression
Generated\BoundNodes.xml.Generated.vb (425)
216Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 221Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 239MyBase.New(BoundKind.TypeArguments, syntax, Nothing, hasErrors) 247MyBase.New(BoundKind.TypeArguments, syntax, Nothing) 281MyBase.New(BoundKind.OmittedArgument, syntax, type, hasErrors) 285MyBase.New(BoundKind.OmittedArgument, syntax, type) 307Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 314Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 327MyBase.New(BoundKind.LValueToRValueWrapper, syntax, type, hasErrors OrElse underlyingLValue.NonNullAndHasErrors()) 366Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 373Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 385Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 392Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 405MyBase.New(BoundKind.WithLValueExpressionPlaceholder, syntax, type, hasErrors) 412MyBase.New(BoundKind.WithLValueExpressionPlaceholder, syntax, type) 438MyBase.New(BoundKind.WithRValueExpressionPlaceholder, syntax, type, hasErrors) 445MyBase.New(BoundKind.WithRValueExpressionPlaceholder, syntax, type) 471MyBase.New(BoundKind.RValuePlaceholder, syntax, type, hasErrors) 483MyBase.New(BoundKind.RValuePlaceholder, syntax, type) 511MyBase.New(BoundKind.LValuePlaceholder, syntax, type, hasErrors) 523MyBase.New(BoundKind.LValuePlaceholder, syntax, type) 551MyBase.New(BoundKind.Dup, syntax, type, hasErrors) 556MyBase.New(BoundKind.Dup, syntax, type) 587MyBase.New(BoundKind.BadExpression, syntax, type, hasErrors OrElse childBoundNodes.NonNullAndHasErrors()) 643MyBase.New(BoundKind.BadStatement, syntax, hasErrors OrElse childBoundNodes.NonNullAndHasErrors()) 677MyBase.New(BoundKind.Parenthesized, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 716MyBase.New(BoundKind.BadVariable, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 758MyBase.New(BoundKind.ArrayAccess, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors() OrElse indices.NonNullAndHasErrors()) 815MyBase.New(BoundKind.ArrayLength, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 850MyBase.New(BoundKind.GetType, syntax, type, hasErrors OrElse sourceType.NonNullAndHasErrors()) 893MyBase.New(BoundKind.FieldInfo, syntax, type, hasErrors) 902MyBase.New(BoundKind.FieldInfo, syntax, type) 937MyBase.New(BoundKind.MethodInfo, syntax, type, hasErrors) 948MyBase.New(BoundKind.MethodInfo, syntax, type) 992MyBase.New(BoundKind.TypeExpression, syntax, type, hasErrors OrElse unevaluatedReceiverOpt.NonNullAndHasErrors()) 1034MyBase.New(BoundKind.TypeOrValueExpression, syntax, type, hasErrors) 1042MyBase.New(BoundKind.TypeOrValueExpression, syntax, type) 1076MyBase.New(BoundKind.NamespaceExpression, syntax, Nothing, hasErrors OrElse unevaluatedReceiverOpt.NonNullAndHasErrors()) 1131MyBase.New(BoundKind.MethodDefIndex, syntax, type, hasErrors) 1140MyBase.New(BoundKind.MethodDefIndex, syntax, type) 1175MyBase.New(BoundKind.MaximumMethodDefIndex, syntax, type, hasErrors) 1182MyBase.New(BoundKind.MaximumMethodDefIndex, syntax, type) 1208MyBase.New(BoundKind.InstrumentationPayloadRoot, syntax, type, hasErrors) 1217MyBase.New(BoundKind.InstrumentationPayloadRoot, syntax, type) 1259MyBase.New(BoundKind.ModuleVersionId, syntax, type, hasErrors) 1267MyBase.New(BoundKind.ModuleVersionId, syntax, type) 1301MyBase.New(BoundKind.ModuleVersionIdString, syntax, type, hasErrors) 1308MyBase.New(BoundKind.ModuleVersionIdString, syntax, type) 1334MyBase.New(BoundKind.SourceDocumentIndex, syntax, type, hasErrors) 1343MyBase.New(BoundKind.SourceDocumentIndex, syntax, type) 1378MyBase.New(BoundKind.UnaryOperator, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors()) 1442MyBase.New(BoundKind.UserDefinedUnaryOperator, syntax, type, hasErrors OrElse underlyingExpression.NonNullAndHasErrors()) 1490MyBase.New(BoundKind.NullableIsTrueOperator, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors()) 1530MyBase.New(BoundKind.BinaryOperator, syntax, type, hasErrors OrElse left.NonNullAndHasErrors() OrElse right.NonNullAndHasErrors()) 1603MyBase.New(BoundKind.UserDefinedBinaryOperator, syntax, type, hasErrors OrElse underlyingExpression.NonNullAndHasErrors()) 1659MyBase.New(BoundKind.UserDefinedShortCircuitingOperator, syntax, type, hasErrors OrElse leftOperand.NonNullAndHasErrors() OrElse leftOperandPlaceholder.NonNullAndHasErrors() OrElse leftTest.NonNullAndHasErrors() OrElse bitwiseOperator.NonNullAndHasErrors()) 1723MyBase.New(BoundKind.CompoundAssignmentTargetPlaceholder, syntax, type, hasErrors) 1730MyBase.New(BoundKind.CompoundAssignmentTargetPlaceholder, syntax, type) 1756MyBase.New(BoundKind.AssignmentOperator, syntax, type, hasErrors OrElse left.NonNullAndHasErrors() OrElse leftOnTheRightOpt.NonNullAndHasErrors() OrElse right.NonNullAndHasErrors()) 1821MyBase.New(BoundKind.ReferenceAssignment, syntax, type, hasErrors OrElse byRefLocal.NonNullAndHasErrors() OrElse lValue.NonNullAndHasErrors()) 1877MyBase.New(BoundKind.AddressOfOperator, syntax, Nothing, hasErrors OrElse methodGroup.NonNullAndHasErrors()) 1928MyBase.New(BoundKind.TernaryConditionalExpression, syntax, type, hasErrors OrElse condition.NonNullAndHasErrors() OrElse whenTrue.NonNullAndHasErrors() OrElse whenFalse.NonNullAndHasErrors()) 1994MyBase.New(BoundKind.BinaryConditionalExpression, syntax, type, hasErrors OrElse testExpression.NonNullAndHasErrors() OrElse convertedTestExpression.NonNullAndHasErrors() OrElse testExpressionPlaceholder.NonNullAndHasErrors() OrElse elseExpression.NonNullAndHasErrors()) 2066Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 2073Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 2086MyBase.New(BoundKind.Conversion, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors() OrElse extendedInfoOpt.NonNullAndHasErrors()) 2165Protected Sub New(kind As BoundKind, syntax as SyntaxNode, hasErrors As Boolean) 2169Protected Sub New(kind As BoundKind, syntax as SyntaxNode) 2179MyBase.New(BoundKind.RelaxationLambda, syntax, hasErrors OrElse lambda.NonNullAndHasErrors() OrElse receiverPlaceholderOpt.NonNullAndHasErrors()) 2221MyBase.New(BoundKind.ConvertedTupleElements, syntax, hasErrors OrElse elementPlaceholders.NonNullAndHasErrors() OrElse convertedElements.NonNullAndHasErrors()) 2269MyBase.New(BoundKind.UserDefinedConversion, syntax, type, hasErrors OrElse underlyingExpression.NonNullAndHasErrors()) 2317MyBase.New(BoundKind.DirectCast, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors() OrElse relaxationLambdaOpt.NonNullAndHasErrors()) 2389MyBase.New(BoundKind.TryCast, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors() OrElse relaxationLambdaOpt.NonNullAndHasErrors()) 2453MyBase.New(BoundKind.TypeOf, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors()) 2504Protected Sub New(kind As BoundKind, syntax as SyntaxNode, hasErrors As Boolean) 2508Protected Sub New(kind As BoundKind, syntax as SyntaxNode) 2518MyBase.New(BoundKind.SequencePoint, syntax, hasErrors OrElse statementOpt.NonNullAndHasErrors()) 2549MyBase.New(BoundKind.SequencePointExpression, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 2583MyBase.New(BoundKind.SequencePointWithSpan, syntax, hasErrors OrElse statementOpt.NonNullAndHasErrors()) 2622MyBase.New(BoundKind.NoOpStatement, syntax, hasErrors) 2627MyBase.New(BoundKind.NoOpStatement, syntax) 2657Protected Sub New(kind As BoundKind, syntax as SyntaxNode, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2683MyBase.New(BoundKind.MethodGroup, syntax, receiverOpt, qualificationKind, hasErrors OrElse typeArgumentsOpt.NonNullAndHasErrors() OrElse receiverOpt.NonNullAndHasErrors()) 2741MyBase.New(BoundKind.PropertyGroup, syntax, receiverOpt, qualificationKind, hasErrors OrElse receiverOpt.NonNullAndHasErrors()) 2783MyBase.New(BoundKind.ReturnStatement, syntax, hasErrors OrElse expressionOpt.NonNullAndHasErrors()) 2835MyBase.New(BoundKind.YieldStatement, syntax, hasErrors OrElse expression.NonNullAndHasErrors()) 2874MyBase.New(BoundKind.ThrowStatement, syntax, hasErrors OrElse expressionOpt.NonNullAndHasErrors()) 2905MyBase.New(BoundKind.RedimStatement, syntax, hasErrors OrElse clauses.NonNullAndHasErrors()) 2939MyBase.New(BoundKind.RedimClause, syntax, hasErrors OrElse operand.NonNullAndHasErrors() OrElse indices.NonNullAndHasErrors()) 3003MyBase.New(BoundKind.EraseStatement, syntax, hasErrors OrElse clauses.NonNullAndHasErrors()) 3037MyBase.New(BoundKind.Call, syntax, type, hasErrors OrElse methodGroupOpt.NonNullAndHasErrors() OrElse receiverOpt.NonNullAndHasErrors() OrElse arguments.NonNullAndHasErrors()) 3134MyBase.New(BoundKind.Attribute, syntax, type, hasErrors OrElse constructorArguments.NonNullAndHasErrors() OrElse namedArguments.NonNullAndHasErrors()) 3202MyBase.New(BoundKind.LateMemberAccess, syntax, type, hasErrors OrElse receiverOpt.NonNullAndHasErrors() OrElse typeArgumentsOpt.NonNullAndHasErrors()) 3273MyBase.New(BoundKind.LateInvocation, syntax, type, hasErrors OrElse member.NonNullAndHasErrors() OrElse argumentsOpt.NonNullAndHasErrors() OrElse methodOrPropertyGroupOpt.NonNullAndHasErrors()) 3345MyBase.New(BoundKind.LateAddressOfOperator, syntax, type, hasErrors OrElse memberAccess.NonNullAndHasErrors()) 3387Protected Sub New(kind As BoundKind, syntax as SyntaxNode, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3408MyBase.New(BoundKind.TupleLiteral, syntax, arguments, type, hasErrors OrElse arguments.NonNullAndHasErrors()) 3458MyBase.New(BoundKind.ConvertedTupleLiteral, syntax, arguments, type, hasErrors OrElse arguments.NonNullAndHasErrors()) 3492Protected Sub New(kind As BoundKind, syntax as SyntaxNode, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False) 3518MyBase.New(BoundKind.ObjectCreationExpression, syntax, initializerOpt, type, hasErrors OrElse methodGroupOpt.NonNullAndHasErrors() OrElse arguments.NonNullAndHasErrors() OrElse initializerOpt.NonNullAndHasErrors()) 3582MyBase.New(BoundKind.NoPiaObjectCreationExpression, syntax, initializerOpt, type, hasErrors OrElse initializerOpt.NonNullAndHasErrors()) 3616MyBase.New(BoundKind.AnonymousTypeCreationExpression, syntax, type, hasErrors OrElse declarations.NonNullAndHasErrors() OrElse arguments.NonNullAndHasErrors()) 3667MyBase.New(BoundKind.AnonymousTypePropertyAccess, syntax, type, hasErrors) 3676MyBase.New(BoundKind.AnonymousTypePropertyAccess, syntax, type) 3718MyBase.New(BoundKind.AnonymousTypeFieldInitializer, syntax, type, hasErrors OrElse value.NonNullAndHasErrors()) 3760Protected Sub New(kind As BoundKind, syntax as SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 3789MyBase.New(BoundKind.ObjectInitializerExpression, syntax, placeholderOpt, initializers, type, hasErrors OrElse placeholderOpt.NonNullAndHasErrors() OrElse initializers.NonNullAndHasErrors()) 3828MyBase.New(BoundKind.CollectionInitializerExpression, syntax, placeholderOpt, initializers, type, hasErrors OrElse placeholderOpt.NonNullAndHasErrors() OrElse initializers.NonNullAndHasErrors()) 3859MyBase.New(BoundKind.NewT, syntax, initializerOpt, type, hasErrors OrElse initializerOpt.NonNullAndHasErrors()) 3890MyBase.New(BoundKind.DelegateCreationExpression, syntax, type, hasErrors OrElse receiverOpt.NonNullAndHasErrors() OrElse relaxationLambdaOpt.NonNullAndHasErrors() OrElse relaxationReceiverPlaceholderOpt.NonNullAndHasErrors() OrElse methodGroupOpt.NonNullAndHasErrors()) 3957MyBase.New(BoundKind.ArrayCreation, syntax, type, hasErrors OrElse bounds.NonNullAndHasErrors() OrElse initializerOpt.NonNullAndHasErrors() OrElse arrayLiteralOpt.NonNullAndHasErrors()) 4029MyBase.New(BoundKind.ArrayLiteral, syntax, Nothing, hasErrors OrElse bounds.NonNullAndHasErrors() OrElse initializer.NonNullAndHasErrors()) 4106MyBase.New(BoundKind.ArrayInitialization, syntax, type, hasErrors OrElse initializers.NonNullAndHasErrors()) 4140MyBase.New(BoundKind.FieldAccess, syntax, type, hasErrors OrElse receiverOpt.NonNullAndHasErrors()) 4212MyBase.New(BoundKind.PropertyAccess, syntax, type, hasErrors OrElse propertyGroupOpt.NonNullAndHasErrors() OrElse receiverOpt.NonNullAndHasErrors() OrElse arguments.NonNullAndHasErrors()) 4309MyBase.New(BoundKind.EventAccess, syntax, type, hasErrors OrElse receiverOpt.NonNullAndHasErrors()) 4352MyBase.New(BoundKind.Block, syntax, hasErrors OrElse statements.NonNullAndHasErrors()) 4403MyBase.New(BoundKind.StateMachineScope, syntax, hasErrors OrElse statement.NonNullAndHasErrors()) 4445Protected Sub New(kind As BoundKind, syntax as SyntaxNode, hasErrors As Boolean) 4449Protected Sub New(kind As BoundKind, syntax as SyntaxNode) 4459MyBase.New(BoundKind.LocalDeclaration, syntax, hasErrors OrElse declarationInitializerOpt.NonNullAndHasErrors() OrElse identifierInitializerOpt.NonNullAndHasErrors()) 4522MyBase.New(BoundKind.AsNewLocalDeclarations, syntax, hasErrors OrElse localDeclarations.NonNullAndHasErrors() OrElse initializer.NonNullAndHasErrors()) 4574MyBase.New(BoundKind.DimStatement, syntax, hasErrors OrElse localDeclarations.NonNullAndHasErrors() OrElse initializerOpt.NonNullAndHasErrors()) 4615Protected Sub New(kind As BoundKind, syntax as SyntaxNode, hasErrors As Boolean) 4619Protected Sub New(kind As BoundKind, syntax as SyntaxNode) 4624MyBase.New(BoundKind.Initializer, syntax, hasErrors) 4628MyBase.New(BoundKind.Initializer, syntax) 4641Protected Sub New(kind As BoundKind, syntax as SyntaxNode, memberAccessExpressionOpt As BoundExpression, initialValue As BoundExpression, binderOpt As Binder, Optional hasErrors As Boolean = False) 4678MyBase.New(BoundKind.FieldInitializer, syntax, memberAccessExpressionOpt, initialValue, binderOpt, hasErrors OrElse memberAccessExpressionOpt.NonNullAndHasErrors() OrElse initialValue.NonNullAndHasErrors()) 4713MyBase.New(BoundKind.PropertyInitializer, syntax, memberAccessExpressionOpt, initialValue, binderOpt, hasErrors OrElse memberAccessExpressionOpt.NonNullAndHasErrors() OrElse initialValue.NonNullAndHasErrors()) 4748MyBase.New(BoundKind.ParameterEqualsValue, syntax, hasErrors OrElse value.NonNullAndHasErrors()) 4791MyBase.New(BoundKind.GlobalStatementInitializer, syntax, hasErrors OrElse statement.NonNullAndHasErrors()) 4825MyBase.New(BoundKind.Sequence, syntax, type, hasErrors OrElse sideEffects.NonNullAndHasErrors() OrElse valueOpt.NonNullAndHasErrors()) 4882MyBase.New(BoundKind.ExpressionStatement, syntax, hasErrors OrElse expression.NonNullAndHasErrors()) 4916MyBase.New(BoundKind.IfStatement, syntax, hasErrors OrElse condition.NonNullAndHasErrors() OrElse consequence.NonNullAndHasErrors() OrElse alternativeOpt.NonNullAndHasErrors()) 4967MyBase.New(BoundKind.SelectStatement, syntax, hasErrors OrElse expressionStatement.NonNullAndHasErrors() OrElse exprPlaceholderOpt.NonNullAndHasErrors() OrElse caseBlocks.NonNullAndHasErrors()) 5035MyBase.New(BoundKind.CaseBlock, syntax, hasErrors OrElse caseStatement.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 5078MyBase.New(BoundKind.CaseStatement, syntax, hasErrors OrElse caseClauses.NonNullAndHasErrors() OrElse conditionOpt.NonNullAndHasErrors()) 5119Protected Sub New(kind As BoundKind, syntax as SyntaxNode, hasErrors As Boolean) 5123Protected Sub New(kind As BoundKind, syntax as SyntaxNode) 5132Protected Sub New(kind As BoundKind, syntax as SyntaxNode, valueOpt As BoundExpression, conditionOpt As BoundExpression, Optional hasErrors As Boolean = False) 5158MyBase.New(BoundKind.SimpleCaseClause, syntax, valueOpt, conditionOpt, hasErrors OrElse valueOpt.NonNullAndHasErrors() OrElse conditionOpt.NonNullAndHasErrors()) 5186MyBase.New(BoundKind.RangeCaseClause, syntax, hasErrors OrElse lowerBoundOpt.NonNullAndHasErrors() OrElse upperBoundOpt.NonNullAndHasErrors() OrElse lowerBoundConditionOpt.NonNullAndHasErrors() OrElse upperBoundConditionOpt.NonNullAndHasErrors()) 5246MyBase.New(BoundKind.RelationalCaseClause, syntax, valueOpt, conditionOpt, hasErrors OrElse valueOpt.NonNullAndHasErrors() OrElse conditionOpt.NonNullAndHasErrors()) 5281Protected Sub New(kind As BoundKind, syntax as SyntaxNode, continueLabel As LabelSymbol, exitLabel As LabelSymbol, hasErrors As Boolean) 5291Protected Sub New(kind As BoundKind, syntax as SyntaxNode, continueLabel As LabelSymbol, exitLabel As LabelSymbol) 5321MyBase.New(BoundKind.DoLoopStatement, syntax, continueLabel, exitLabel, hasErrors OrElse topConditionOpt.NonNullAndHasErrors() OrElse bottomConditionOpt.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 5389MyBase.New(BoundKind.WhileStatement, syntax, continueLabel, exitLabel, hasErrors OrElse condition.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 5433Protected Sub New(kind As BoundKind, syntax as SyntaxNode, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5481MyBase.New(BoundKind.ForToUserDefinedOperators, syntax, hasErrors OrElse leftOperandPlaceholder.NonNullAndHasErrors() OrElse rightOperandPlaceholder.NonNullAndHasErrors() OrElse addition.NonNullAndHasErrors() OrElse subtraction.NonNullAndHasErrors() OrElse lessThanOrEqual.NonNullAndHasErrors() OrElse greaterThanOrEqual.NonNullAndHasErrors()) 5565MyBase.New(BoundKind.ForToStatement, syntax, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, hasErrors OrElse initialValue.NonNullAndHasErrors() OrElse limitValue.NonNullAndHasErrors() OrElse stepValue.NonNullAndHasErrors() OrElse operatorsOpt.NonNullAndHasErrors() OrElse controlVariable.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors() OrElse nextVariablesOpt.NonNullAndHasErrors()) 5637MyBase.New(BoundKind.ForEachStatement, syntax, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, hasErrors OrElse collection.NonNullAndHasErrors() OrElse controlVariable.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors() OrElse nextVariablesOpt.NonNullAndHasErrors()) 5684MyBase.New(BoundKind.ExitStatement, syntax, hasErrors) 5692MyBase.New(BoundKind.ExitStatement, syntax) 5726MyBase.New(BoundKind.ContinueStatement, syntax, hasErrors) 5734MyBase.New(BoundKind.ContinueStatement, syntax) 5768MyBase.New(BoundKind.TryStatement, syntax, hasErrors OrElse tryBlock.NonNullAndHasErrors() OrElse catchBlocks.NonNullAndHasErrors() OrElse finallyBlockOpt.NonNullAndHasErrors()) 5827MyBase.New(BoundKind.CatchBlock, syntax, hasErrors OrElse exceptionSourceOpt.NonNullAndHasErrors() OrElse errorLineNumberOpt.NonNullAndHasErrors() OrElse exceptionFilterOpt.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 5901MyBase.New(BoundKind.Literal, syntax, type, hasErrors) 5914MyBase.New(BoundKind.Literal, syntax, type) 5950MyBase.New(BoundKind.MeReference, syntax, type, hasErrors) 5957MyBase.New(BoundKind.MeReference, syntax, type) 5983MyBase.New(BoundKind.ValueTypeMeReference, syntax, type, hasErrors) 5995MyBase.New(BoundKind.ValueTypeMeReference, syntax, type) 6023MyBase.New(BoundKind.MyBaseReference, syntax, type, hasErrors) 6030MyBase.New(BoundKind.MyBaseReference, syntax, type) 6056MyBase.New(BoundKind.MyClassReference, syntax, type, hasErrors) 6063MyBase.New(BoundKind.MyClassReference, syntax, type) 6089MyBase.New(BoundKind.PreviousSubmissionReference, syntax, type, hasErrors) 6098MyBase.New(BoundKind.PreviousSubmissionReference, syntax, type) 6133MyBase.New(BoundKind.HostObjectMemberReference, syntax, type, hasErrors) 6140MyBase.New(BoundKind.HostObjectMemberReference, syntax, type) 6166MyBase.New(BoundKind.Local, syntax, type, hasErrors) 6181MyBase.New(BoundKind.Local, syntax, type) 6226MyBase.New(BoundKind.PseudoVariable, syntax, type, hasErrors) 6243MyBase.New(BoundKind.PseudoVariable, syntax, type) 6297MyBase.New(BoundKind.Parameter, syntax, type, hasErrors) 6308MyBase.New(BoundKind.Parameter, syntax, type) 6359MyBase.New(BoundKind.ByRefArgumentPlaceholder, syntax, type, hasErrors) 6367MyBase.New(BoundKind.ByRefArgumentPlaceholder, syntax, type) 6401MyBase.New(BoundKind.ByRefArgumentWithCopyBack, syntax, type, hasErrors OrElse originalArgument.NonNullAndHasErrors() OrElse inConversion.NonNullAndHasErrors() OrElse inPlaceholder.NonNullAndHasErrors() OrElse outConversion.NonNullAndHasErrors() OrElse outPlaceholder.NonNullAndHasErrors()) 6476MyBase.New(BoundKind.LateBoundArgumentSupportingAssignmentWithCapture, syntax, type, hasErrors OrElse originalArgument.NonNullAndHasErrors()) 6524MyBase.New(BoundKind.LabelStatement, syntax, hasErrors) 6532MyBase.New(BoundKind.LabelStatement, syntax) 6566MyBase.New(BoundKind.Label, syntax, type, hasErrors) 6574MyBase.New(BoundKind.Label, syntax, type) 6608MyBase.New(BoundKind.GotoStatement, syntax, hasErrors OrElse labelExpressionOpt.NonNullAndHasErrors()) 6650MyBase.New(BoundKind.StatementList, syntax, hasErrors OrElse statements.NonNullAndHasErrors()) 6684MyBase.New(BoundKind.ConditionalGoto, syntax, hasErrors OrElse condition.NonNullAndHasErrors()) 6735MyBase.New(BoundKind.WithStatement, syntax, hasErrors OrElse originalExpression.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 6787MyBase.New(BoundKind.UnboundLambda, syntax, Nothing, hasErrors) 6806MyBase.New(BoundKind.UnboundLambda, syntax, Nothing) 6876MyBase.New(BoundKind.Lambda, syntax, Nothing, hasErrors OrElse body.NonNullAndHasErrors()) 6956MyBase.New(BoundKind.QueryExpression, syntax, type, hasErrors OrElse lastOperator.NonNullAndHasErrors()) 6990Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean) 6997Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol) 7010MyBase.New(BoundKind.QuerySource, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 7045MyBase.New(BoundKind.ToQueryableCollectionConversion, syntax, type, hasErrors OrElse conversionCall.NonNullAndHasErrors()) 7079Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, hasErrors As Boolean) 7092Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) 7132MyBase.New(BoundKind.QueryableSource, syntax, rangeVariables, compoundVariableType, binders, type, hasErrors OrElse source.NonNullAndHasErrors()) 7183MyBase.New(BoundKind.QueryClause, syntax, rangeVariables, compoundVariableType, binders, type, hasErrors OrElse underlyingExpression.NonNullAndHasErrors()) 7221MyBase.New(BoundKind.Ordering, syntax, type, hasErrors OrElse underlyingExpression.NonNullAndHasErrors()) 7256MyBase.New(BoundKind.QueryLambda, syntax, Nothing, hasErrors OrElse expression.NonNullAndHasErrors()) 7316MyBase.New(BoundKind.RangeVariableAssignment, syntax, type, hasErrors OrElse value.NonNullAndHasErrors()) 7360MyBase.New(BoundKind.GroupTypeInferenceLambda, syntax, Nothing, hasErrors) 7372MyBase.New(BoundKind.GroupTypeInferenceLambda, syntax, Nothing) 7424MyBase.New(BoundKind.AggregateClause, syntax, rangeVariables, compoundVariableType, binders, type, hasErrors OrElse capturedGroupOpt.NonNullAndHasErrors() OrElse groupPlaceholderOpt.NonNullAndHasErrors() OrElse underlyingExpression.NonNullAndHasErrors()) 7478MyBase.New(BoundKind.GroupAggregation, syntax, type, hasErrors OrElse group.NonNullAndHasErrors()) 7513MyBase.New(BoundKind.RangeVariable, syntax, type, hasErrors) 7522MyBase.New(BoundKind.RangeVariable, syntax, type) 7556Protected Sub New(kind As BoundKind, syntax as SyntaxNode, eventAccess As BoundExpression, handler As BoundExpression, Optional hasErrors As Boolean = False) 7586MyBase.New(BoundKind.AddHandlerStatement, syntax, eventAccess, handler, hasErrors OrElse eventAccess.NonNullAndHasErrors() OrElse handler.NonNullAndHasErrors()) 7613MyBase.New(BoundKind.RemoveHandlerStatement, syntax, eventAccess, handler, hasErrors OrElse eventAccess.NonNullAndHasErrors() OrElse handler.NonNullAndHasErrors()) 7640MyBase.New(BoundKind.RaiseEventStatement, syntax, hasErrors OrElse eventInvocation.NonNullAndHasErrors()) 7683MyBase.New(BoundKind.UsingStatement, syntax, hasErrors OrElse resourceList.NonNullAndHasErrors() OrElse resourceExpressionOpt.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 7751MyBase.New(BoundKind.SyncLockStatement, syntax, hasErrors OrElse lockExpression.NonNullAndHasErrors() OrElse body.NonNullAndHasErrors()) 7794MyBase.New(BoundKind.XmlName, syntax, type, hasErrors OrElse xmlNamespace.NonNullAndHasErrors() OrElse localName.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 7847MyBase.New(BoundKind.XmlNamespace, syntax, type, hasErrors OrElse xmlNamespace.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 7891MyBase.New(BoundKind.XmlDocument, syntax, type, hasErrors OrElse declaration.NonNullAndHasErrors() OrElse childNodes.NonNullAndHasErrors()) 7944MyBase.New(BoundKind.XmlDeclaration, syntax, type, hasErrors OrElse version.NonNullAndHasErrors() OrElse encoding.NonNullAndHasErrors() OrElse standalone.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 8003MyBase.New(BoundKind.XmlProcessingInstruction, syntax, type, hasErrors OrElse target.NonNullAndHasErrors() OrElse data.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 8056MyBase.New(BoundKind.XmlComment, syntax, type, hasErrors OrElse value.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 8100MyBase.New(BoundKind.XmlAttribute, syntax, type, hasErrors OrElse name.NonNullAndHasErrors() OrElse value.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 8166MyBase.New(BoundKind.XmlElement, syntax, type, hasErrors OrElse argument.NonNullAndHasErrors() OrElse childNodes.NonNullAndHasErrors()) 8219MyBase.New(BoundKind.XmlMemberAccess, syntax, type, hasErrors OrElse memberAccess.NonNullAndHasErrors()) 8254MyBase.New(BoundKind.XmlEmbeddedExpression, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 8289MyBase.New(BoundKind.XmlCData, syntax, type, hasErrors OrElse value.NonNullAndHasErrors() OrElse objectCreation.NonNullAndHasErrors()) 8333MyBase.New(BoundKind.ResumeStatement, syntax, hasErrors OrElse labelExpressionOpt.NonNullAndHasErrors()) 8385MyBase.New(BoundKind.OnErrorStatement, syntax, hasErrors OrElse labelExpressionOpt.NonNullAndHasErrors()) 8437MyBase.New(BoundKind.UnstructuredExceptionHandlingStatement, syntax, hasErrors OrElse body.NonNullAndHasErrors()) 8508MyBase.New(BoundKind.UnstructuredExceptionHandlingCatchFilter, syntax, type, hasErrors OrElse activeHandlerLocal.NonNullAndHasErrors() OrElse resumeTargetLocal.NonNullAndHasErrors()) 8557MyBase.New(BoundKind.UnstructuredExceptionOnErrorSwitch, syntax, hasErrors OrElse value.NonNullAndHasErrors() OrElse jumps.NonNullAndHasErrors()) 8605MyBase.New(BoundKind.UnstructuredExceptionResumeSwitch, syntax, hasErrors OrElse resumeTargetTemporary.NonNullAndHasErrors() OrElse resumeLabel.NonNullAndHasErrors() OrElse resumeNextLabel.NonNullAndHasErrors() OrElse jumps.NonNullAndHasErrors()) 8671MyBase.New(BoundKind.AwaitOperator, syntax, type, hasErrors OrElse operand.NonNullAndHasErrors() OrElse awaitableInstancePlaceholder.NonNullAndHasErrors() OrElse getAwaiter.NonNullAndHasErrors() OrElse awaiterInstancePlaceholder.NonNullAndHasErrors() OrElse isCompleted.NonNullAndHasErrors() OrElse getResult.NonNullAndHasErrors()) 8756MyBase.New(BoundKind.SpillSequence, syntax, type, hasErrors OrElse statements.NonNullAndHasErrors() OrElse valueOpt.NonNullAndHasErrors()) 8821MyBase.New(BoundKind.StopStatement, syntax, hasErrors) 8825MyBase.New(BoundKind.StopStatement, syntax) 8839MyBase.New(BoundKind.EndStatement, syntax, hasErrors) 8843MyBase.New(BoundKind.EndStatement, syntax) 8857MyBase.New(BoundKind.MidResult, syntax, type, hasErrors OrElse original.NonNullAndHasErrors() OrElse start.NonNullAndHasErrors() OrElse lengthOpt.NonNullAndHasErrors() OrElse source.NonNullAndHasErrors()) 8923MyBase.New(BoundKind.ConditionalAccess, syntax, type, hasErrors OrElse receiver.NonNullAndHasErrors() OrElse placeholder.NonNullAndHasErrors() OrElse accessExpression.NonNullAndHasErrors()) 8975MyBase.New(BoundKind.ConditionalAccessReceiverPlaceholder, syntax, type, hasErrors) 8989MyBase.New(BoundKind.ConditionalAccessReceiverPlaceholder, syntax, type) 9033MyBase.New(BoundKind.LoweredConditionalAccess, syntax, type, hasErrors OrElse receiverOrCondition.NonNullAndHasErrors() OrElse whenNotNull.NonNullAndHasErrors() OrElse whenNullOpt.NonNullAndHasErrors()) 9106MyBase.New(BoundKind.ComplexConditionalAccessReceiver, syntax, type, hasErrors OrElse valueTypeReceiver.NonNullAndHasErrors() OrElse referenceTypeReceiver.NonNullAndHasErrors()) 9155MyBase.New(BoundKind.NameOfOperator, syntax, type, hasErrors OrElse argument.NonNullAndHasErrors()) 9203MyBase.New(BoundKind.TypeAsValueExpression, syntax, type, hasErrors OrElse expression.NonNullAndHasErrors()) 9243MyBase.New(BoundKind.InterpolatedStringExpression, syntax, type, hasErrors OrElse contents.NonNullAndHasErrors() OrElse constructionOpt.NonNullAndHasErrors()) 9291MyBase.New(BoundKind.Interpolation, syntax, hasErrors OrElse expression.NonNullAndHasErrors() OrElse alignmentOpt.NonNullAndHasErrors() OrElse formatStringOpt.NonNullAndHasErrors()) 9342Case BoundKind.TypeArguments 9344Case BoundKind.OmittedArgument 9346Case BoundKind.LValueToRValueWrapper 9348Case BoundKind.WithLValueExpressionPlaceholder 9350Case BoundKind.WithRValueExpressionPlaceholder 9352Case BoundKind.RValuePlaceholder 9354Case BoundKind.LValuePlaceholder 9356Case BoundKind.Dup 9358Case BoundKind.BadExpression 9360Case BoundKind.BadStatement 9362Case BoundKind.Parenthesized 9364Case BoundKind.BadVariable 9366Case BoundKind.ArrayAccess 9368Case BoundKind.ArrayLength 9370Case BoundKind.[GetType] 9372Case BoundKind.FieldInfo 9374Case BoundKind.MethodInfo 9376Case BoundKind.TypeExpression 9378Case BoundKind.TypeOrValueExpression 9380Case BoundKind.NamespaceExpression 9382Case BoundKind.MethodDefIndex 9384Case BoundKind.MaximumMethodDefIndex 9386Case BoundKind.InstrumentationPayloadRoot 9388Case BoundKind.ModuleVersionId 9390Case BoundKind.ModuleVersionIdString 9392Case BoundKind.SourceDocumentIndex 9394Case BoundKind.UnaryOperator 9396Case BoundKind.UserDefinedUnaryOperator 9398Case BoundKind.NullableIsTrueOperator 9400Case BoundKind.BinaryOperator 9402Case BoundKind.UserDefinedBinaryOperator 9404Case BoundKind.UserDefinedShortCircuitingOperator 9406Case BoundKind.CompoundAssignmentTargetPlaceholder 9408Case BoundKind.AssignmentOperator 9410Case BoundKind.ReferenceAssignment 9412Case BoundKind.AddressOfOperator 9414Case BoundKind.TernaryConditionalExpression 9416Case BoundKind.BinaryConditionalExpression 9418Case BoundKind.Conversion 9420Case BoundKind.RelaxationLambda 9422Case BoundKind.ConvertedTupleElements 9424Case BoundKind.UserDefinedConversion 9426Case BoundKind.[DirectCast] 9428Case BoundKind.[TryCast] 9430Case BoundKind.[TypeOf] 9432Case BoundKind.SequencePoint 9434Case BoundKind.SequencePointExpression 9436Case BoundKind.SequencePointWithSpan 9438Case BoundKind.NoOpStatement 9440Case BoundKind.MethodGroup 9442Case BoundKind.PropertyGroup 9444Case BoundKind.ReturnStatement 9446Case BoundKind.YieldStatement 9448Case BoundKind.ThrowStatement 9450Case BoundKind.RedimStatement 9452Case BoundKind.RedimClause 9454Case BoundKind.EraseStatement 9456Case BoundKind.[Call] 9458Case BoundKind.Attribute 9460Case BoundKind.LateMemberAccess 9462Case BoundKind.LateInvocation 9464Case BoundKind.LateAddressOfOperator 9466Case BoundKind.TupleLiteral 9468Case BoundKind.ConvertedTupleLiteral 9470Case BoundKind.ObjectCreationExpression 9472Case BoundKind.NoPiaObjectCreationExpression 9474Case BoundKind.AnonymousTypeCreationExpression 9476Case BoundKind.AnonymousTypePropertyAccess 9478Case BoundKind.AnonymousTypeFieldInitializer 9480Case BoundKind.ObjectInitializerExpression 9482Case BoundKind.CollectionInitializerExpression 9484Case BoundKind.NewT 9486Case BoundKind.DelegateCreationExpression 9488Case BoundKind.ArrayCreation 9490Case BoundKind.ArrayLiteral 9492Case BoundKind.ArrayInitialization 9494Case BoundKind.FieldAccess 9496Case BoundKind.PropertyAccess 9498Case BoundKind.EventAccess 9500Case BoundKind.Block 9502Case BoundKind.StateMachineScope 9504Case BoundKind.LocalDeclaration 9506Case BoundKind.AsNewLocalDeclarations 9508Case BoundKind.DimStatement 9510Case BoundKind.Initializer 9512Case BoundKind.FieldInitializer 9514Case BoundKind.PropertyInitializer 9516Case BoundKind.ParameterEqualsValue 9518Case BoundKind.GlobalStatementInitializer 9520Case BoundKind.Sequence 9522Case BoundKind.ExpressionStatement 9524Case BoundKind.IfStatement 9526Case BoundKind.SelectStatement 9528Case BoundKind.CaseBlock 9530Case BoundKind.CaseStatement 9532Case BoundKind.SimpleCaseClause 9534Case BoundKind.RangeCaseClause 9536Case BoundKind.RelationalCaseClause 9538Case BoundKind.DoLoopStatement 9540Case BoundKind.WhileStatement 9542Case BoundKind.ForToUserDefinedOperators 9544Case BoundKind.ForToStatement 9546Case BoundKind.ForEachStatement 9548Case BoundKind.ExitStatement 9550Case BoundKind.ContinueStatement 9552Case BoundKind.TryStatement 9554Case BoundKind.CatchBlock 9556Case BoundKind.Literal 9558Case BoundKind.MeReference 9560Case BoundKind.ValueTypeMeReference 9562Case BoundKind.MyBaseReference 9564Case BoundKind.MyClassReference 9566Case BoundKind.PreviousSubmissionReference 9568Case BoundKind.HostObjectMemberReference 9570Case BoundKind.Local 9572Case BoundKind.PseudoVariable 9574Case BoundKind.Parameter 9576Case BoundKind.ByRefArgumentPlaceholder 9578Case BoundKind.ByRefArgumentWithCopyBack 9580Case BoundKind.LateBoundArgumentSupportingAssignmentWithCapture 9582Case BoundKind.LabelStatement 9584Case BoundKind.Label 9586Case BoundKind.GotoStatement 9588Case BoundKind.StatementList 9590Case BoundKind.ConditionalGoto 9592Case BoundKind.WithStatement 9594Case BoundKind.UnboundLambda 9596Case BoundKind.Lambda 9598Case BoundKind.QueryExpression 9600Case BoundKind.QuerySource 9602Case BoundKind.ToQueryableCollectionConversion 9604Case BoundKind.QueryableSource 9606Case BoundKind.QueryClause 9608Case BoundKind.Ordering 9610Case BoundKind.QueryLambda 9612Case BoundKind.RangeVariableAssignment 9614Case BoundKind.GroupTypeInferenceLambda 9616Case BoundKind.AggregateClause 9618Case BoundKind.GroupAggregation 9620Case BoundKind.RangeVariable 9622Case BoundKind.AddHandlerStatement 9624Case BoundKind.RemoveHandlerStatement 9626Case BoundKind.RaiseEventStatement 9628Case BoundKind.UsingStatement 9630Case BoundKind.SyncLockStatement 9632Case BoundKind.XmlName 9634Case BoundKind.XmlNamespace 9636Case BoundKind.XmlDocument 9638Case BoundKind.XmlDeclaration 9640Case BoundKind.XmlProcessingInstruction 9642Case BoundKind.XmlComment 9644Case BoundKind.XmlAttribute 9646Case BoundKind.XmlElement 9648Case BoundKind.XmlMemberAccess 9650Case BoundKind.XmlEmbeddedExpression 9652Case BoundKind.XmlCData 9654Case BoundKind.ResumeStatement 9656Case BoundKind.OnErrorStatement 9658Case BoundKind.UnstructuredExceptionHandlingStatement 9660Case BoundKind.UnstructuredExceptionHandlingCatchFilter 9662Case BoundKind.UnstructuredExceptionOnErrorSwitch 9664Case BoundKind.UnstructuredExceptionResumeSwitch 9666Case BoundKind.AwaitOperator 9668Case BoundKind.SpillSequence 9670Case BoundKind.StopStatement 9672Case BoundKind.EndStatement 9674Case BoundKind.MidResult 9676Case BoundKind.ConditionalAccess 9678Case BoundKind.ConditionalAccessReceiverPlaceholder 9680Case BoundKind.LoweredConditionalAccess 9682Case BoundKind.ComplexConditionalAccessReceiver 9684Case BoundKind.NameOfOperator 9686Case BoundKind.TypeAsValueExpression 9688Case BoundKind.InterpolatedStringExpression 9690Case BoundKind.Interpolation
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (18)
36If valueOpt Is Nothing OrElse valueOpt.Kind <> BoundKind.SpillSequence Then 85Debug.Assert(expression.Kind = BoundKind.SpillSequence) 219Debug.Assert(receiverOpt.Kind = BoundKind.SpillSequence) 295Debug.Assert(left.Kind = BoundKind.SpillSequence) 344Debug.Assert(rewrittenRight.Kind = BoundKind.SpillSequence) 388Debug.Assert(receiverOpt.Kind = BoundKind.SpillSequence) 409Debug.Assert(operand.Kind = BoundKind.SpillSequence) 430Debug.Assert(operand.Kind = BoundKind.SpillSequence) 450Debug.Assert(operand.Kind = BoundKind.SpillSequence) 474Debug.Assert(operand.Kind = BoundKind.SpillSequence) 497Debug.Assert(condition.Kind = BoundKind.SpillSequence) 530Debug.Assert(expression.Kind = BoundKind.SpillSequence) 826Debug.Assert(rewrittenInitializer Is Nothing OrElse rewrittenInitializer.Kind = BoundKind.ArrayInitialization) 864rewrittenParts(index) = If(part.Kind = BoundKind.ArrayInitialization, 911Debug.Assert(expression.Kind = BoundKind.SpillSequence) 926Debug.Assert(operand.Kind = BoundKind.SpillSequence) 971Debug.Assert(operand.Kind = BoundKind.SpillSequence) 989Debug.Assert(expression.Kind = BoundKind.SpillSequence)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (24)
25Case BoundKind.SpillSequence 28Case BoundKind.ArrayInitialization 54If initializer.Kind = BoundKind.ArrayInitialization Then 160If arg.Kind = BoundKind.ArrayInitialization Then 175If arg.Kind = BoundKind.SpillSequence Then 234Case BoundKind.Sequence 243Debug.Assert(sideEffect.Kind = BoundKind.SpillSequence) 255Case BoundKind.SpillSequence 261Case BoundKind.ArrayAccess 281Case BoundKind.FieldAccess 310Case BoundKind.ComplexConditionalAccessReceiver 366Case BoundKind.Local 371Case BoundKind.Parameter 385Case BoundKind.Literal 389Case BoundKind.SpillSequence 395Case BoundKind.ArrayInitialization 399Case BoundKind.ConditionalAccessReceiverPlaceholder 408Case BoundKind.ComplexConditionalAccessReceiver 416If expr.Kind = BoundKind.SpillSequence Then 558Case BoundKind.Literal 561Case BoundKind.MeReference 564Case BoundKind.MyBaseReference, 565BoundKind.MyClassReference 568Case BoundKind.TypeExpression
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Statements.vb (5)
29If expression.Kind = BoundKind.SpillSequence Then 53If expression.Kind <> BoundKind.SpillSequence Then 64If expression Is Nothing OrElse expression.Kind <> BoundKind.SpillSequence Then 68Debug.Assert(expression.Kind = BoundKind.SpillSequence) 81If condition.Kind <> BoundKind.SpillSequence Then
Lowering\AsyncRewriter\AsyncRewriter.vb (10)
279If body.Kind <> BoundKind.Block Then 408Case BoundKind.Literal 415Case BoundKind.Local 418Case BoundKind.Parameter 421Case BoundKind.MeReference 424Case BoundKind.MyClassReference 427Case BoundKind.MyBaseReference 430Case BoundKind.FieldAccess 438Case BoundKind.ArrayAccess 594If result.Kind = BoundKind.PropertyAccess Then
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (16)
19If initializer IsNot Nothing AndAlso initializer.Kind = BoundKind.ObjectInitializerExpression AndAlso node.ConstantValueOpt Is Nothing Then 69Debug.Assert(node.Declarations.All(Function(d) d.Kind = BoundKind.AnonymousTypePropertyAccess)) 126If boundExpression.Kind = BoundKind.AssignmentOperator Then 161Not (node.Left.Kind = BoundKind.PropertyAccess AndAlso node.LeftOnTheRightOpt Is Nothing) Then 214block.Statements(1).Kind = BoundKind.ReturnStatement AndAlso 217block.Statements(1).Kind = BoundKind.LabelStatement AndAlso 218block.Statements(2).Kind = BoundKind.ReturnStatement) Then 223Case BoundKind.ReturnStatement 228Case BoundKind.ExpressionStatement, 229BoundKind.AddHandlerStatement, 230BoundKind.RemoveHandlerStatement 233Case BoundKind.Block 298(operand.Kind = BoundKind.Lambda OrElse operand.Kind = BoundKind.QueryLambda)) 300If operand.Kind = BoundKind.Lambda AndAlso Not CheckLambdaForByRefParameters(DirectCast(operand, BoundLambda)) AndAlso relaxationLambda IsNot Nothing Then 377If node.Member.Kind <> BoundKind.LateMemberAccess Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (52)
137Debug.Assert(block.Statements(0).Kind <> BoundKind.SequencePoint) 140block.Statements(1).Kind = BoundKind.ReturnStatement AndAlso 143block.Statements(1).Kind = BoundKind.LabelStatement AndAlso 144block.Statements(2).Kind = BoundKind.ReturnStatement)) 155Case BoundKind.ReturnStatement 163Case BoundKind.ExpressionStatement 166Case BoundKind.Block 207Case BoundKind.ArrayCreation 209Case BoundKind.ArrayAccess 211Case BoundKind.ArrayLength 213Case BoundKind.BadExpression 215Case BoundKind.BinaryConditionalExpression 217Case BoundKind.BinaryOperator 219Case BoundKind.Call 221Case BoundKind.Conversion 223Case BoundKind.DelegateCreationExpression 225Case BoundKind.DirectCast 227Case BoundKind.FieldAccess 233Case BoundKind.Lambda 235Case BoundKind.NewT 237Case BoundKind.NullableIsTrueOperator 239Case BoundKind.ObjectCreationExpression 241Case BoundKind.Parameter 243Case BoundKind.PropertyAccess 245Case BoundKind.Sequence 247Case BoundKind.TernaryConditionalExpression 249Case BoundKind.TryCast 251Case BoundKind.TypeOf 253Case BoundKind.UnaryOperator 255Case BoundKind.UserDefinedBinaryOperator 257Case BoundKind.UserDefinedShortCircuitingOperator 259Case BoundKind.UserDefinedUnaryOperator 262Case BoundKind.Literal, 263BoundKind.Local, 264BoundKind.GetType, 265BoundKind.MethodInfo, 266BoundKind.FieldInfo, 267BoundKind.MeReference, 268BoundKind.MyClassReference 271If node.Kind = BoundKind.GetType Then 281Case BoundKind.MyBaseReference 381If receiverOpt.Kind = BoundKind.MyBaseReference Then 413If origReceiverOpt.Kind = BoundKind.MyBaseReference Then 440Debug.Assert(origReceiverOpt.Kind <> BoundKind.MyBaseReference AndAlso origReceiverOpt.Kind <> BoundKind.MyClassReference) 471If receiverOpt.Kind = BoundKind.MyBaseReference Then 571Case BoundKind.ObjectInitializerExpression 575Case BoundKind.CollectionInitializerExpression 593Debug.Assert(initializers(i).Kind = BoundKind.AssignmentOperator) 601Case BoundKind.FieldAccess 604Case BoundKind.PropertyAccess 642Debug.Assert(initializers(i).Kind = BoundKind.Call)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
547If resultType.IsNullableType AndAlso originalRight.Kind = BoundKind.Conversion Then 727If oldArg.Kind = BoundKind.ObjectCreationExpression Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
52Case BoundKind.Conversion
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
91If operand.Kind = BoundKind.Lambda Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (2)
124Case BoundKind.UserDefinedUnaryOperator 143If operand.Kind = BoundKind.ObjectCreationExpression Then
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (11)
479Case BoundKind.IfStatement 481Case BoundKind.WhileStatement 483Case BoundKind.ForToStatement 485Case BoundKind.ForEachStatement 487Case BoundKind.DoLoopStatement 489Case BoundKind.UsingStatement 492Case BoundKind.SyncLockStatement 494Case BoundKind.SelectStatement 496Case BoundKind.LocalDeclaration 501Case BoundKind.FieldInitializer, BoundKind.PropertyInitializer
Lowering\Instrumentation\DebugInfoInjector.vb (2)
402If localDeclaration.Kind = BoundKind.LocalDeclaration Then 405Debug.Assert(localDeclaration.Kind = BoundKind.AsNewLocalDeclarations)
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
1411If rewritten.Kind = BoundKind.Call Then 1468receiver.Kind = BoundKind.DelegateCreationExpression AndAlso
Lowering\LocalRewriter\LocalRewriter.vb (9)
76If placeholder.IsLValue AndAlso value.Kind <> BoundKind.MeReference Then 322(result.Kind = BoundKind.MeReference AndAlso TypeOf node Is BoundLValuePlaceholderBase)) 329If (node.Kind = BoundKind.ObjectCreationExpression OrElse node.Kind = BoundKind.NewT) AndAlso 331DirectCast(node, BoundObjectCreationExpressionBase).InitializerOpt.Kind = BoundKind.ObjectInitializerExpression AndAlso 343Case BoundKind.LValuePlaceholder, 344BoundKind.RValuePlaceholder, 345BoundKind.WithLValueExpressionPlaceholder, 346BoundKind.WithRValueExpressionPlaceholder
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (11)
43result = RewriteWinRtEvent(node, unwrappedEventAccess, isAddition:=(node.Kind = BoundKind.AddHandlerStatement)) 45result = MakeEventAccessorCall(node, unwrappedEventAccess, If(node.Kind = BoundKind.AddHandlerStatement, [event].AddMethod, [event].RemoveMethod)) 182Case BoundKind.MeReference, BoundKind.MyClassReference, BoundKind.MyBaseReference 185Case BoundKind.Literal 189Case BoundKind.Local, BoundKind.Parameter 248If node.Kind = BoundKind.EventAccess Then 252Debug.Assert(node.Kind = BoundKind.Parenthesized, "node can only be EventAccess or Parenthesized") 280Dim addRemove = factory.WellKnownMember(Of MethodSymbol)(If(node.Kind = BoundKind.AddHandlerStatement,
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (2)
116If initializer IsNot Nothing AndAlso (initializer.Kind = BoundKind.ObjectCreationExpression OrElse initializer.Kind = BoundKind.NewT) Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (21)
23If node.Right.Kind = BoundKind.MidResult Then 28(midResult.Original.Kind = BoundKind.Parenthesized AndAlso DirectCast(midResult.Original, BoundParenthesized).Expression Is node.LeftOnTheRightOpt)) 51Debug.Assert(nodeLeft.Kind <> BoundKind.FieldAccess OrElse 126Case BoundKind.PropertyAccess 129Case BoundKind.XmlMemberAccess 151If leftNode.Kind = BoundKind.FieldAccess Then 176Case BoundKind.XmlMemberAccess 179Case BoundKind.PropertyAccess 200(propertyIsStatic OrElse receiver.Kind = BoundKind.MeReference) AndAlso 283If assignmentTarget.Kind = BoundKind.LateMemberAccess Then 294If invocation.Member.Kind = BoundKind.LateMemberAccess Then 363Case BoundKind.BinaryOperator 391Case BoundKind.UnaryOperator 407Case BoundKind.DirectCast, 408BoundKind.TryCast, 409BoundKind.Conversion 413If nodeToCheck.Kind = BoundKind.DirectCast Then 417ElseIf nodeToCheck.Kind = BoundKind.TryCast Then 436Case BoundKind.Parenthesized 439Case BoundKind.XmlEmbeddedExpression 464(midResult.Original.Kind = BoundKind.Parenthesized AndAlso node.LeftOnTheRightOpt Is DirectCast(midResult.Original, BoundParenthesized).Expression)))
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (11)
89If child.Kind <> BoundKind.BinaryOperator Then 112If child.Kind <> BoundKind.BinaryOperator Then 180Case BoundKind.DirectCast 186Case BoundKind.Conversion 194Case BoundKind.Call 207Case BoundKind.PropertyAccess 222Debug.Assert(operand.Kind <> BoundKind.Parenthesized) ' Must have been removed by now. 561If left.Kind = BoundKind.DirectCast Then 569If right.Kind = BoundKind.DirectCast Then 878If (rightValue.IsConstant OrElse rightValue.Kind = BoundKind.Local OrElse rightValue.Kind = BoundKind.Parameter) AndAlso
Lowering\LocalRewriter\LocalRewriter_Call.vb (3)
177If argument.Kind = BoundKind.ByRefArgumentWithCopyBack Then 343If secondUse.Kind = BoundKind.LateMemberAccess Then 355If invocation.Member.Kind = BoundKind.LateMemberAccess Then
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (6)
18Case BoundKind.MeReference 21Case BoundKind.Parameter 24Case BoundKind.Local 178If operand.Kind = BoundKind.Sequence Then 190If operand.Kind = BoundKind.LoweredConditionalAccess Then 205If operand.Kind = BoundKind.Sequence Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (5)
28If convertedTestExpression.Kind = BoundKind.Conversion Then 60Case BoundKind.Local, 61BoundKind.Parameter, 62BoundKind.Literal 162Return If(node.Kind <> BoundKind.BinaryConditionalExpression, node,
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
28Return If(node.Kind = BoundKind.Literal, node, New BoundLiteral(node.Syntax, constantValue, node.Type, hasErrors:=constantValue.IsBad))
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (14)
34If node.Operand.Kind = BoundKind.UserDefinedConversion Then 74While operand.Kind = BoundKind.Parenthesized 78If operand.Kind = BoundKind.BinaryOperator Then 110If node.ExtendedInfoOpt IsNot Nothing AndAlso node.ExtendedInfoOpt.Kind = BoundKind.RelaxationLambda Then 121If returnValue.Kind = BoundKind.Conversion Then 153Case BoundKind.Sequence 157Case BoundKind.Conversion 364Case BoundKind.TernaryConditionalExpression 367Case BoundKind.Conversion 370Case BoundKind.Lambda 372Case BoundKind.Call 731ElseIf operand.Kind = BoundKind.Lambda Then 1197If operand.Kind = BoundKind.Call Then 1331If operand.Kind <> BoundKind.Lambda Then
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.vb (2)
37Case BoundKind.ConditionalAccess 40Case BoundKind.Call
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (3)
91If initialValueToRewrite.Kind = BoundKind.ObjectCreationExpression OrElse initialValueToRewrite.Kind = BoundKind.NewT Then 94objectCreationExpression.InitializerOpt.Kind = BoundKind.ObjectInitializerExpression Then
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
31If node.Collection.Kind = BoundKind.Conversion Then 201If collectionExpression.Kind = BoundKind.Conversion Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (5)
416If assignmentTarget.Kind = BoundKind.LateMemberAccess Then 426ElseIf assignmentTarget.Kind = BoundKind.LateInvocation Then 429If invocation.Member.Kind = BoundKind.LateMemberAccess Then 466Debug.Assert(node.Member.Kind <> BoundKind.LateMemberAccess) 877If argument.Kind = BoundKind.LateBoundArgumentSupportingAssignmentWithCapture Then
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (2)
27If node.Member.Kind = BoundKind.LateMemberAccess Then 51Debug.Assert(receiverExpression.Kind <> BoundKind.LateMemberAccess)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (4)
36If initializerOpt.Kind = BoundKind.ObjectCreationExpression OrElse initializerOpt.Kind = BoundKind.NewT Then 40objectCreationExpression.InitializerOpt.Kind = BoundKind.ObjectInitializerExpression Then 88(DirectCast(node.InitializerOpt, BoundObjectCreationExpressionBase).InitializerOpt.Kind = BoundKind.ObjectInitializerExpression AndAlso
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (13)
77Return right.Kind = BoundKind.Local OrElse 78right.Kind = BoundKind.Parameter 100If operand.Kind = BoundKind.Local AndAlso Not DirectCast(operand, BoundLocal).LocalSymbol.IsByRef Then 104If operand.Kind = BoundKind.Parameter AndAlso Not DirectCast(operand, BoundParameter).ParameterSymbol.IsByRef Then 158Case BoundKind.ObjectCreationExpression 165Case BoundKind.Conversion 310candidateNullExpression.Kind <> BoundKind.ObjectCreationExpression Then 355If expr.Kind = BoundKind.ObjectCreationExpression Then 373Case BoundKind.ObjectCreationExpression 377Case BoundKind.Conversion 563Case BoundKind.Local, 564BoundKind.Parameter 568Case BoundKind.ObjectCreationExpression
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (5)
109If objectInitializer.Kind = BoundKind.CollectionInitializerExpression Then 405Case BoundKind.ObjectCreationExpression 409Case BoundKind.NewT 413Case BoundKind.Sequence 418Debug.Assert(sequence.ValueOpt IsNot Nothing AndAlso sequence.ValueOpt.Kind = BoundKind.ObjectCreationExpression)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
30Debug.Assert(receiver.Kind = BoundKind.FieldAccess) 37fieldAccessReceiver.Kind = BoundKind.MeReference)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (2)
42If arrayValueAccess.Kind = BoundKind.PropertyAccess Then 76If assignmentTarget.Kind = BoundKind.PropertyAccess Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (3)
227Dim needTempLocal = caseBlocks.Any() AndAlso (Not recommendSwitchTable OrElse rewrittenSelectExpression.Kind <> BoundKind.Local) 352Case BoundKind.SimpleCaseClause 360Case BoundKind.RelationalCaseClause
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (2)
117Case BoundKind.Call 145Case BoundKind.BinaryConditionalExpression
Lowering\LocalRewriter\LocalRewriter_Try.vb (5)
46Case BoundKind.NoOpStatement 48Case BoundKind.Block 56Case BoundKind.SequencePoint 59Case BoundKind.SequencePointWithSpan 201If node.ExceptionFilterOpt Is Nothing OrElse node.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter Then
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (3)
44Case BoundKind.BinaryOperator 58Case BoundKind.Parenthesized 82If result.Kind = BoundKind.UnaryOperator Then
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (8)
485If statement.Kind <> BoundKind.IfStatement Then 490If statement.Kind <> BoundKind.CaseBlock Then 495If statement.Kind <> BoundKind.LocalDeclaration OrElse 504If statement.Kind <> BoundKind.ExpressionStatement OrElse 523Case BoundKind.IfStatement 529Case BoundKind.CaseBlock 535Case BoundKind.LocalDeclaration 542Case BoundKind.ExpressionStatement
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
93If localDeclaration.Kind = BoundKind.LocalDeclaration Then
Lowering\LocalRewriter\LocalRewriter_While.vb (9)
64Case BoundKind.WhileStatement 66Case BoundKind.DoLoopStatement 68Case BoundKind.ForEachStatement 80Case BoundKind.WhileStatement 82Case BoundKind.DoLoopStatement 84Case BoundKind.ForEachStatement 103Case BoundKind.WhileStatement 105Case BoundKind.DoLoopStatement 107Case BoundKind.ForEachStatement
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
168Debug.Assert(rewriterInfo.ObjectCreation.Kind = BoundKind.ObjectCreationExpression) 232Debug.Assert(origSideEffects(i).Kind = BoundKind.Call)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (3)
25receiverOpt IsNot Nothing AndAlso (receiverOpt.Kind = BoundKind.MyBaseReference OrElse receiverOpt.Kind = BoundKind.MyClassReference) Then 84Debug.Assert(isMyBase OrElse receiver.Kind = BoundKind.MyClassReference)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
387Case BoundKind.SequencePoint 390Case BoundKind.SequencePointWithSpan
Lowering\Rewriter.vb (1)
78If node.Kind = BoundKind.Literal Then
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
299If statement.Kind = BoundKind.Block Then 302If rewrittenStatements.Length = 1 AndAlso rewrittenStatements(0).Kind = BoundKind.StateMachineScope Then
Lowering\SyntheticBoundNodeFactory.vb (1)
1127If body.Kind <> BoundKind.Block Then
Lowering\UseTwiceRewriter.vb (27)
48Case BoundKind.XmlMemberAccess 53Case BoundKind.PropertyAccess 56Case BoundKind.LateInvocation 59Case BoundKind.LateMemberAccess 63Debug.Assert(value.Kind <> BoundKind.ByRefArgumentWithCopyBack AndAlso 64value.Kind <> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture) 119Case BoundKind.Call 121Case BoundKind.ArrayAccess 123Case BoundKind.FieldAccess 125Case BoundKind.Local, 126BoundKind.Parameter, 127BoundKind.PseudoVariable, 128BoundKind.WithLValueExpressionPlaceholder 168Dim kind As BoundKind = value.Kind 170If kind = BoundKind.BadVariable OrElse 171kind = BoundKind.MeReference OrElse 172kind = BoundKind.MyBaseReference OrElse 173kind = BoundKind.MyClassReference OrElse 174kind = BoundKind.Literal Then 186Debug.Assert(value.Kind <> BoundKind.Literal) 378If boundArgument.Kind = BoundKind.ArrayCreation AndAlso DirectCast(boundArgument, BoundArrayCreation).IsParamArrayArgument Then 420If 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 512result.First.Kind = BoundKind.AssignmentOperator AndAlso result.First.WasCompilerGenerated AndAlso 513DirectCast(result.First, BoundAssignmentOperator).Left.Kind = BoundKind.Local AndAlso 539Debug.Assert(boundArray.Bounds.All(Function(expr) expr.Kind = BoundKind.Literal))
Lowering\WithExpressionRewriter.vb (22)
147Dim kind As BoundKind = value.Kind 150Case BoundKind.BadVariable, 151BoundKind.Literal, 152BoundKind.MeReference, 153BoundKind.MyClassReference, 154BoundKind.MyBaseReference 166Debug.Assert(value.Kind <> BoundKind.Literal) 211Case BoundKind.ArrayAccess 214Case BoundKind.FieldAccess 217Case BoundKind.Local, 218BoundKind.Parameter 221Case BoundKind.WithLValueExpressionPlaceholder 286If kind = BoundKind.MeReference OrElse kind = BoundKind.MyClassReference OrElse kind = BoundKind.MyBaseReference Then 314If kind = BoundKind.Local OrElse kind = BoundKind.Parameter Then 324If Not (state.DoNotUseByRefLocal OrElse (value.Kind = BoundKind.ArrayAccess AndAlso value.Type.Kind = SymbolKind.TypeParameter)) Then 331Case BoundKind.ArrayAccess 334Case BoundKind.FieldAccess 337Case BoundKind.PropertyAccess 349Case BoundKind.Call
Semantics\Conversions.vb (20)
954If source.Kind = BoundKind.FieldAccess Then 956ElseIf source.Kind = BoundKind.Local Then 987Dim sourceType As TypeSymbol = If(source.Kind = BoundKind.TupleLiteral, 993userDefinedConversionsMightStillBeApplicable = mostEnclosing = BoundKind.ArrayLiteral OrElse 994mostEnclosing = BoundKind.TupleLiteral 1049Case BoundKind.Parenthesized 1055Case BoundKind.UnboundLambda 1058Case BoundKind.QueryLambda 1061Case BoundKind.GroupTypeInferenceLambda 1064Case BoundKind.AddressOfOperator 1067Case BoundKind.ArrayLiteral 1070Case BoundKind.InterpolatedStringExpression 1073Case BoundKind.TupleLiteral 1330If sourceElement.Kind = BoundKind.ArrayInitialization Then 2117If source.Kind = BoundKind.ArrayLiteral Then 2119ElseIf source.Kind = BoundKind.TupleLiteral Then 2144If (source.Kind <> BoundKind.ArrayLiteral) Then 2155Debug.Assert(source.Kind <> BoundKind.ArrayLiteral) 4236If expressionOpt Is Nothing OrElse expressionOpt.Kind <> BoundKind.Conversion OrElse expressionOpt.HasErrors Then 4254Debug.Assert(conversion.Operand.IsNothingLiteral() OrElse conversion.Operand.Kind = BoundKind.Lambda)
Semantics\OverloadResolution.vb (17)
816If group.Kind = BoundKind.MethodGroup Then 1957If arguments(i).Kind = BoundKind.OmittedArgument Then 2019Debug.Assert(argument Is Nothing OrElse argument.Kind <> BoundKind.OmittedArgument) 2135If argument.Kind = BoundKind.QueryLambda Then 2148Dim argType As TypeSymbol = If(argument.Kind <> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType) 2260If arguments(k).Kind <> BoundKind.OmittedArgument AndAlso 2276Debug.Assert(argument Is Nothing OrElse argument.Kind <> BoundKind.OmittedArgument) 2296If argument.Kind = BoundKind.QueryLambda Then 2740If arguments(i).Kind = BoundKind.OmittedArgument Then 2947Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.Kind <> BoundKind.OmittedArgument) 3066If argument Is Nothing OrElse argument.Kind = BoundKind.OmittedArgument Then 3312While underlying.Kind = BoundKind.Parenthesized AndAlso underlying.Type Is Nothing 3316Dim unbound = If(underlying.Kind = BoundKind.UnboundLambda, DirectCast(underlying, UnboundLambda), Nothing) 3393methodOrPropertyGroup.Kind = BoundKind.MethodGroup AndAlso 4278If arguments(i).Kind = BoundKind.OmittedArgument Then 4362Debug.Assert(argument.Kind <> BoundKind.OmittedArgument) 4458If arguments(i).Kind = BoundKind.OmittedArgument Then
Semantics\TypeInference\TypeArgumentInference.vb (33)
439If Expression.Kind = BoundKind.UnboundLambda AndAlso ParameterType.IsDelegateType() Then 500Case BoundKind.AddressOfOperator 507Case BoundKind.LateAddressOfOperator 513Case BoundKind.QueryLambda, BoundKind.GroupTypeInferenceLambda, BoundKind.UnboundLambda 563If Expression.Kind = BoundKind.ArrayLiteral Then 568ElseIf Expression.Kind = BoundKind.TupleLiteral Then 937Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.Kind <> BoundKind.OmittedArgument) 990If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.Kind = BoundKind.OmittedArgument Then 1032Case BoundKind.UnboundLambda, BoundKind.QueryLambda, BoundKind.GroupTypeInferenceLambda 1034Case BoundKind.AddressOfOperator 1036Case BoundKind.TupleLiteral 1124Debug.Assert(argNode.Expression.Kind = BoundKind.TupleLiteral) 1150Debug.Assert(argNode.Expression.Kind = BoundKind.AddressOfOperator) 1199Case BoundKind.QueryLambda 1201Case BoundKind.GroupTypeInferenceLambda 1203Case BoundKind.UnboundLambda 1245If argument.Kind = BoundKind.ArrayLiteral Then 1985Debug.Assert(argument.Kind = BoundKind.UnboundLambda OrElse 1986argument.Kind = BoundKind.QueryLambda OrElse 1987argument.Kind = BoundKind.GroupTypeInferenceLambda) 1993Case BoundKind.QueryLambda 1996Case BoundKind.GroupTypeInferenceLambda 1999Case BoundKind.UnboundLambda 2064Case BoundKind.QueryLambda 2066Case BoundKind.GroupTypeInferenceLambda 2068Case BoundKind.UnboundLambda 2115Case BoundKind.QueryLambda 2127Case BoundKind.GroupTypeInferenceLambda 2130Case BoundKind.UnboundLambda
Semantics\TypeInference\TypeInferenceCollection.vb (1)
406If sourceElement.Kind = BoundKind.ArrayInitialization Then
Symbols\PropertySymbol.vb (8)
166Debug.Assert(receiverOpt.Kind = BoundKind.WithLValueExpressionPlaceholder) 176If receiverOpt.Kind = BoundKind.WithLValueExpressionPlaceholder OrElse receiverOpt.Kind = BoundKind.WithRValueExpressionPlaceholder Then 196Case BoundKind.MeReference, BoundKind.MyBaseReference, BoundKind.MyClassReference 198Case BoundKind.Parenthesized 214(propertyIsStatic OrElse (receiverOpt IsNot Nothing AndAlso receiverOpt.Kind = BoundKind.MeReference)) AndAlso
Symbols\Source\SourceMethodSymbol.vb (1)
1195If boundStatement.Kind = BoundKind.Block Then
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
123If boundStatement.Kind = BoundKind.Block Then