753 references to Kind
Microsoft.CodeAnalysis.VisualBasic (753)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
92Select Case Branch.Kind
Analysis\FlowAnalysis\AbstractFlowPass.vb (20)
399Select Case pending.Branch.Kind 425Select Case pending.Branch.Kind 460Select Case branch.Kind 474Throw ExceptionUtilities.UnexpectedValue(branch.Kind) 719Select Case node.Kind 799Select Case node.Kind 893Debug.Assert(initializer.Kind = BoundKind.AssignmentOperator) 896If initializerExpr.Kind = BoundKind.LValueToRValueWrapper Then 919Debug.Assert(initializer.Kind = BoundKind.AssignmentOperator) 922If initializerExpr.Kind = BoundKind.LValueToRValueWrapper Then 984Select Case node.Kind 1117If member.Kind <> BoundKind.LateMemberAccess Then 1185Dim kind As BoundKind = originalReceiver.Kind 1313Dim kind As BoundKind = originalReceiver.Kind 1727Dim kind As BoundKind = originalReceiver.Kind 1862Select Case clause.Kind 1870Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 2126If child.Kind <> BoundKind.BinaryOperator Then 2637Debug.Assert(item.Kind = BoundKind.Literal OrElse item.Kind = BoundKind.Interpolation)
Analysis\FlowAnalysis\ControlFlowPass.vb (4)
76Select Case statement.Kind 83Select Case statement.Kind 140if branch.Branch.Kind = BoundKind.YieldStatement 162If branch.Branch.Kind = BoundKind.YieldStatement
Analysis\FlowAnalysis\DataFlowPass.vb (17)
299Select Case node.Kind 419Select Case node.Kind 452If fieldsymbol.IsShared OrElse receiverOpt Is Nothing OrElse receiverOpt.Kind = BoundKind.TypeExpression Then 997If node.Kind = BoundKind.Local Then 1018Select Case node.Kind 1120Select Case receiver.Kind 1340Select Case node.Kind 1649Select Case value.Kind 1806If left.Kind = BoundKind.Local Then 1882If variableDeclarations.Kind = BoundKind.AsNewLocalDeclarations Then 1909If variableDeclarations.Kind = BoundKind.AsNewLocalDeclarations Then 1954Select Case expr.Kind 1969Throw ExceptionUtilities.UnexpectedValue(expr.Kind) ' TODO: is this reachable at all? 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 (1)
99Select Case node.Kind
Analysis\FlowAnalysis\EntryPointsWalker.vb (2)
48Select Case stmt.Kind 56Throw ExceptionUtilities.UnexpectedValue(stmt.Kind)
Analysis\FlowAnalysis\ExitPointsWalker.vb (2)
103Select Case pending.Branch.Kind 120Throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind) ' there are no other branch statements
Analysis\FlowAnalysis\ReadWriteWalker.vb (2)
115If node.Kind = BoundKind.FieldAccess Then NoteReceiverWritten(CType(node, BoundFieldAccess)) 133Select Case receiver.Kind
Analysis\FlowAnalysis\RegionAnalysisContext.vb (1)
65Select Case Me._firstInRegion.Kind
Analysis\ForLoopVerification.vb (2)
73controlVariable.Kind = BoundKind.BadExpression OrElse 132Select Case expression.Kind
Analysis\InitializerRewriter.vb (6)
208initializer.Kind = BoundKind.GlobalStatementInitializer Then 210If statement.Kind = BoundKind.ExpressionStatement Then 237Select Case initializer.Kind 243Throw ExceptionUtilities.UnexpectedValue(initializer.Kind) 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 (5)
572If expression.Kind = BoundKind.GetType Then 575ElseIf expression.Kind = BoundKind.ArrayCreation Then 727Select Case argument.Kind 731Select Case assignment.Left.Kind 755Select Case node.Kind
Binding\Binder_Conversions.vb (15)
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) 1203Select Case argument.Kind 1266If argument.Kind <> BoundKind.DelegateCreationExpression Then 1288Return argument.Kind = BoundKind.Conversion 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 (52)
48If IsEarlyAttributeBinder AndAlso result.Kind = BoundKind.MethodGroup AndAlso Not IsNameOfArgument(node) Then 121If operand.Kind = BoundKind.TypeExpression Then 125ElseIf operand.Kind = BoundKind.ArrayLiteral Then 540Select Case expression.Kind 630result.Kind = BoundKind.NamespaceExpression Then 725Select Case argument.Kind 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 909Select Case group.Kind 927Throw ExceptionUtilities.UnexpectedValue(group.Kind) 963If expr.Kind = BoundKind.ConditionalAccess AndAlso expr.Type Is Nothing Then 988Select Case expr.Kind 1148Select Case result.Kind 1175Throw ExceptionUtilities.UnexpectedValue(result.Kind) 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 1443Select Case expr.Kind 1641If expr.Kind = BoundKind.ArrayInitialization Then 1726ElseIf expression.Kind = BoundKind.LateInvocation Then 1751Select Case expression.Kind 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 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 (1)
177Select Case item.Kind
Binding\Binder_Invocation.vb (46)
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 991([property].IsShared OrElse (propertyAccess.ReceiverOpt IsNot Nothing AndAlso propertyAccess.ReceiverOpt.Kind = BoundKind.MeReference)) Then 1012Select Case node.Kind 1020Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1050Select Case oldReceiver.Kind 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 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 (5)
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 939Select Case cast.Kind
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 (2)
455Select Case caseClause.Kind 466Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind)
Binding\Binder_Statements.vb (29)
276Select Case clause.Kind 284Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 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) 1393Select Case inferFrom.Kind 1926Select Case op1.Kind 2087Select Case boundStatement.Kind 2116Select Case localDecl.Kind 2126Throw ExceptionUtilities.UnexpectedValue(localDecl.Kind) 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 2720Select Case boundInvocation.Kind 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 4822Dim exprKind = exceptionSource.Kind 5263If boundLabelExpression.Kind = BoundKind.Label Then 5302If boundLabelExpression.Kind = BoundKind.Label Then
Binding\Binder_Utils.vb (2)
1302If boundExpression.Kind = BoundKind.Local Then 1318Select Case boundExpression.Kind
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 (31)
123Select Case boundExpression.Kind 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 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 1065Select Case queryableSource.Source.Kind 1090Throw ExceptionUtilities.UnexpectedValue(queryableSource.Source.Kind) 1161node.Kind = _targetBoundKind Then 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 2173Select Case node.Kind 2182Select Case conversion.Operand.Kind 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 (11)
56Select Case Left.Kind 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)
14Select Case conditionOpt.Kind 24ExceptionUtilities.UnexpectedValue(conditionOpt.Kind) ' This is going to assert
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 (33)
39Select Case node.Kind 69Select Case node.Kind 93Return node.Kind = BoundKind.MeReference 98Return node.Kind = BoundKind.MyBaseReference 103Return node.Kind = BoundKind.MyClassReference 118Select Case node.Kind 133Return node.Kind = BoundKind.PropertyAccess AndAlso 139Select Case node.Kind 153If node.Kind = BoundKind.PropertyAccess Then 162Select Case node.Kind 180Select Case node.Kind 212Select Case node.Kind 223If group IsNot Nothing AndAlso group.Kind = BoundKind.MethodGroup Then 246Select Case node.Kind 254Throw ExceptionUtilities.UnexpectedValue(node.Kind) 261Select Case node.Kind 269Throw ExceptionUtilities.UnexpectedValue(node.Kind) 281Select Case node.Kind 292Throw ExceptionUtilities.UnexpectedValue(node.Kind) 299Select Case node.Kind 307Throw ExceptionUtilities.UnexpectedValue(node.Kind) 319Select Case node.Kind 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) 497Select Case node.Kind 526While expression.Kind = BoundKind.Parenthesized 534Select Case node.Kind 589Select Case node.Kind 643node.GetMostEnclosedParenthesizedExpression().Kind = BoundKind.AddressOfOperator OrElse 644node.GetMostEnclosedParenthesizedExpression().Kind = BoundKind.Lambda OrElse 645node.Kind = BoundKind.QueryLambda,
BoundTree\BoundInterpolatedStringExpression.vb (1)
25If item.Kind = BoundKind.Interpolation Then Return True
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)
18Select Case Me.Kind 34Throw ExceptionUtilities.UnexpectedValue(Me.Kind) 43Select Case Me.Kind 51Throw ExceptionUtilities.UnexpectedValue(Me.Kind)
BoundTree\BoundNamespaceExpression.vb (1)
38Debug.Assert(UnevaluatedReceiverOpt Is Nothing OrElse UnevaluatedReceiverOpt.Kind = BoundKind.NamespaceExpression)
BoundTree\BoundNodeExtensions.vb (2)
52Select Case boundNode.Kind 67Dim kind = boundNode.Kind
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)
15Select Case Operand.Kind
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 (1)
18Select Case node.Kind
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
CodeGen\EmitAddress.vb (8)
43Dim kind As BoundKind = expression.Kind 192Select Case value.Kind 220Select Case expression.Kind 282fieldAccess.ReceiverOpt.Kind = BoundKind.MeReference 291If expression.Kind = BoundKind.ConditionalAccessReceiverPlaceholder OrElse 292expression.Kind = BoundKind.ComplexConditionalAccessReceiver Then 299Select Case expression.Kind 485If receiver.Kind <> BoundKind.ConditionalAccessReceiverPlaceholder Then
CodeGen\EmitArrayInitializer.vb (2)
271If inits(0).Kind = BoundKind.ArrayInitialization Then 291Return inits.Length <> 0 AndAlso inits(0).Kind = BoundKind.ArrayInitialization
CodeGen\EmitConversion.vb (1)
115Select Case conversion.Operand.Kind
CodeGen\EmitExpression.vb (26)
40Debug.Assert(expression.Kind = BoundKind.FieldAccess) 76Select Case expression.Kind 168Throw ExceptionUtilities.UnexpectedValue(expression.Kind) 209Throw ExceptionUtilities.UnexpectedValue(expression.Kind) 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 765Select Case receiver.Kind 881Debug.Assert(receiver.Kind <> BoundKind.MyBaseReference, "MyBase should always use call") 882Debug.Assert(receiver.Kind <> BoundKind.MyClassReference, "MyClass should always use call") 890Select Case receiver.Kind 947Select Case receiver.Kind 1184Debug.Assert(Not receiverType.IsReferenceType OrElse receiver.Kind <> BoundKind.ComplexConditionalAccessReceiver) 1186(receiver.Kind = BoundKind.ConditionalAccessReceiverPlaceholder OrElse 1512Select Case (expr.Kind) 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) 1875Select Case left.Kind 1891Select Case assignmentTarget.Kind 1967Throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind) 2020Select Case expression.Kind 2074Throw ExceptionUtilities.UnexpectedValue(expression.Kind)
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 (15)
18Select Case statement.Kind 73Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 208If catchBlock.ExceptionFilterOpt IsNot Nothing AndAlso catchBlock.ExceptionFilterOpt.Kind = BoundKind.UnstructuredExceptionHandlingCatchFilter Then 318While exceptionSource.Kind = BoundKind.Sequence 328Select Case exceptionSource.Kind 378Throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind) 414(catchBlock.ExceptionFilterOpt Is Nothing OrElse catchBlock.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter) Then 691Select Case condition.Kind 851(_currentCatchBlock.ExceptionFilterOpt Is Nothing OrElse _currentCatchBlock.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter) AndAlso 992Select Case caseClause.Kind 1013Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind) 1016Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind) 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 (9)
103Debug.Assert(expr.Kind <> BoundKind.Label) 259Select Case node.Kind 579If right.Kind = BoundKind.ObjectCreationExpression Then 623Select Case node.Kind 652Throw ExceptionUtilities.UnexpectedValue(node.Kind) 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
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 (14)
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 1025Select Case boundNodes.LowestBoundNode.Kind 1040boundNodes.LowestBoundNodeOfSyntacticParent.Kind = BoundKind.BadExpression AndAlso 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 1290Select Case boundNodes.LowestBoundNodeOfSyntacticParent.Kind 1354Select Case boundNodes.LowestBoundNodeOfSyntacticParent.Kind 1441Select Case boundNodeOfSyntacticParent.Kind 1455Throw ExceptionUtilities.UnexpectedValue(boundNodeOfSyntacticParent.Kind)
Generated\BoundNodes.xml.Generated.vb (1)
9341Select Case node.Kind
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 (13)
24Select Case node.Kind 30Throw ExceptionUtilities.UnexpectedValue(node.Kind) 54If initializer.Kind = BoundKind.ArrayInitialization Then 160If arg.Kind = BoundKind.ArrayInitialization Then 175If arg.Kind = BoundKind.SpillSequence Then 232Select Case expr.Kind 243Debug.Assert(sideEffect.Kind = BoundKind.SpillSequence) 376Debug.Assert(Not expr.IsLValue, "stack spilling for lvalue: " + expr.Kind.ToString()) 384Select Case expr.Kind 416If expr.Kind = BoundKind.SpillSequence Then 425Throw ExceptionUtilities.UnexpectedValue(expr.Kind) 557Select Case node.Kind 566Throw ExceptionUtilities.UnexpectedValue(node.Kind)
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 (4)
279If body.Kind <> BoundKind.Block Then 407Select Case expression.Kind 471Throw ExceptionUtilities.UnexpectedValue(expression.Kind) 594If result.Kind = BoundKind.PropertyAccess Then
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (11)
19If initializer IsNot Nothing AndAlso initializer.Kind = BoundKind.ObjectInitializerExpression AndAlso node.ConstantValueOpt Is Nothing Then 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 222Select Case stmt.Kind 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 (20)
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)) 154Select Case stmt.Kind 206Select Case node.Kind 271If node.Kind = BoundKind.GetType Then 285Throw ExceptionUtilities.UnexpectedValue(node.Kind) 288Throw ExceptionUtilities.UnexpectedValue(node.Kind) 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 570Select Case initializerOpt.Kind 580Throw ExceptionUtilities.UnexpectedValue(initializerOpt.Kind) 593Debug.Assert(initializers(i).Kind = BoundKind.AssignmentOperator) 600Select Case left.Kind 609Throw ExceptionUtilities.UnexpectedValue(left.Kind) 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 (2)
51Select Case convTestExpr.Kind 60Throw ExceptionUtilities.UnexpectedValue(convTestExpr.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
91If operand.Kind = BoundKind.Lambda Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (2)
123Select Case operand.Kind 143If operand.Kind = BoundKind.ObjectCreationExpression Then
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
478Select Case statement.Kind
Lowering\Instrumentation\DebugInfoInjector.vb (2)
402If localDeclaration.Kind = BoundKind.LocalDeclaration Then 405Debug.Assert(localDeclaration.Kind = BoundKind.AsNewLocalDeclarations)
Lowering\LambdaRewriter\LambdaRewriter.vb (4)
1411If rewritten.Kind = BoundKind.Call Then 1443node.ReceiverOrCondition.Kind <> result.ReceiverOrCondition.Kind Then 1468receiver.Kind = BoundKind.DelegateCreationExpression AndAlso
Lowering\LocalRewriter\LocalRewriter.vb (6)
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 342Select Case result.Kind
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (6)
43result = RewriteWinRtEvent(node, unwrappedEventAccess, isAddition:=(node.Kind = BoundKind.AddHandlerStatement)) 45result = MakeEventAccessorCall(node, unwrappedEventAccess, If(node.Kind = BoundKind.AddHandlerStatement, [event].AddMethod, [event].RemoveMethod)) 181Select Case expression.Kind 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 (14)
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 125Select Case node.Left.Kind 151If leftNode.Kind = BoundKind.FieldAccess Then 175Select Case setNode.Kind 183Throw ExceptionUtilities.UnexpectedValue(setNode.Kind) 200(propertyIsStatic OrElse receiver.Kind = BoundKind.MeReference) AndAlso 283If assignmentTarget.Kind = BoundKind.LateMemberAccess Then 294If invocation.Member.Kind = BoundKind.LateMemberAccess Then 362Select Case nodeToCheck.Kind 413If nodeToCheck.Kind = BoundKind.DirectCast Then 417ElseIf nodeToCheck.Kind = BoundKind.TryCast Then 464(midResult.Original.Kind = BoundKind.Parenthesized AndAlso node.LeftOnTheRightOpt Is DirectCast(midResult.Original, BoundParenthesized).Expression)))
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (8)
89If child.Kind <> BoundKind.BinaryOperator Then 112If child.Kind <> BoundKind.BinaryOperator Then 179Select Case operand.Kind 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 (4)
17Select Case receiver.Kind 178If operand.Kind = BoundKind.Sequence Then 190If operand.Kind = BoundKind.LoweredConditionalAccess Then 205If operand.Kind = BoundKind.Sequence Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
28If convertedTestExpression.Kind = BoundKind.Conversion Then 59Select Case rewrittenTestExpression.Kind 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 (10)
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 142Select Case rewrittenNode.Kind 363Select Case node.Kind 731ElseIf operand.Kind = BoundKind.Lambda Then 1197If operand.Kind = BoundKind.Call Then 1331If operand.Kind <> BoundKind.Lambda Then
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.vb (1)
36Select Case expression.Kind
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 (9)
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 157Select Case expr.Kind 310candidateNullExpression.Kind <> BoundKind.ObjectCreationExpression Then 355If expr.Kind = BoundKind.ObjectCreationExpression Then 372Select Case expr.Kind 562Select Case operand.Kind
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (4)
109If objectInitializer.Kind = BoundKind.CollectionInitializerExpression Then 404Select Case rewrittenObjectCreationExpression.Kind 418Debug.Assert(sequence.ValueOpt IsNot Nothing AndAlso sequence.ValueOpt.Kind = BoundKind.ObjectCreationExpression) 425Throw ExceptionUtilities.UnexpectedValue(rewrittenObjectCreationExpression.Kind)
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) 351Select Case caseClause.Kind 370Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind)
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
116Select Case lowered.Kind
Lowering\LocalRewriter\LocalRewriter_Try.vb (2)
45Select Case statement.Kind 201If node.ExceptionFilterOpt Is Nothing OrElse node.ExceptionFilterOpt.Kind <> BoundKind.UnstructuredExceptionHandlingCatchFilter Then
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (2)
43Select Case current.Kind 82If result.Kind = BoundKind.UnaryOperator Then
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (5)
485If statement.Kind <> BoundKind.IfStatement Then 490If statement.Kind <> BoundKind.CaseBlock Then 495If statement.Kind <> BoundKind.LocalDeclaration OrElse 504If statement.Kind <> BoundKind.ExpressionStatement OrElse 522Select Case statement.Kind
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
93If localDeclaration.Kind = BoundKind.LocalDeclaration Then
Lowering\LocalRewriter\LocalRewriter_While.vb (6)
63Select Case statement.Kind 70Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 79Select Case statement.Kind 87Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 102Select Case statement.Kind 110Throw ExceptionUtilities.UnexpectedValue(statement.Kind)
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 (1)
386Select Case nodeStatements(0).Kind
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 (12)
47Select Case value.Kind 63Debug.Assert(value.Kind <> BoundKind.ByRefArgumentWithCopyBack AndAlso 64value.Kind <> BoundKind.LateBoundArgumentSupportingAssignmentWithCapture) 118Select Case value.Kind 168Dim kind As BoundKind = value.Kind 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
Lowering\WithExpressionRewriter.vb (9)
147Dim kind As BoundKind = value.Kind 166Debug.Assert(value.Kind <> BoundKind.Literal) 210Select Case value.Kind 284Dim kind = value.Kind 324If Not (state.DoNotUseByRefLocal OrElse (value.Kind = BoundKind.ArrayAccess AndAlso value.Type.Kind = SymbolKind.TypeParameter)) Then 330Select Case value.Kind 339Throw ExceptionUtilities.UnexpectedValue(value.Kind) 351Throw ExceptionUtilities.UnexpectedValue(value.Kind) 362Throw ExceptionUtilities.UnexpectedValue(value.Kind)
Semantics\Conversions.vb (12)
954If source.Kind = BoundKind.FieldAccess Then 956ElseIf source.Kind = BoundKind.Local Then 987Dim sourceType As TypeSymbol = If(source.Kind = BoundKind.TupleLiteral, 992Dim mostEnclosing = source.GetMostEnclosedParenthesizedExpression().Kind 1048Select Case source.Kind 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)
864If group.Kind = BoundKind.MethodGroup Then 2317If arguments(i).Kind = BoundKind.OmittedArgument Then 2379Debug.Assert(argument Is Nothing OrElse argument.Kind <> BoundKind.OmittedArgument) 2495If argument.Kind = BoundKind.QueryLambda Then 2508Dim argType As TypeSymbol = If(argument.Kind <> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType) 2620If arguments(k).Kind <> BoundKind.OmittedArgument AndAlso 2636Debug.Assert(argument Is Nothing OrElse argument.Kind <> BoundKind.OmittedArgument) 2656If argument.Kind = BoundKind.QueryLambda Then 3100If arguments(i).Kind = BoundKind.OmittedArgument Then 3307Debug.Assert(paramArrayArgument Is Nothing OrElse paramArrayArgument.Kind <> BoundKind.OmittedArgument) 3426If argument Is Nothing OrElse argument.Kind = BoundKind.OmittedArgument Then 3672While underlying.Kind = BoundKind.Parenthesized AndAlso underlying.Type Is Nothing 3676Dim unbound = If(underlying.Kind = BoundKind.UnboundLambda, DirectCast(underlying, UnboundLambda), Nothing) 3753methodOrPropertyGroup.Kind = BoundKind.MethodGroup AndAlso 4678If arguments(i).Kind = BoundKind.OmittedArgument Then 4762Debug.Assert(argument.Kind <> BoundKind.OmittedArgument) 4858If arguments(i).Kind = BoundKind.OmittedArgument Then
Semantics\TypeInference\TypeArgumentInference.vb (21)
439If Expression.Kind = BoundKind.UnboundLambda AndAlso ParameterType.IsDelegateType() Then 498Select Case Expression.Kind 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 1031Select Case argument.Kind 1124Debug.Assert(argNode.Expression.Kind = BoundKind.TupleLiteral) 1150Debug.Assert(argNode.Expression.Kind = BoundKind.AddressOfOperator) 1198Select Case argNode.Expression.Kind 1206Throw ExceptionUtilities.UnexpectedValue(argNode.Expression.Kind) 1245If argument.Kind = BoundKind.ArrayLiteral Then 1985Debug.Assert(argument.Kind = BoundKind.UnboundLambda OrElse 1986argument.Kind = BoundKind.QueryLambda OrElse 1987argument.Kind = BoundKind.GroupTypeInferenceLambda) 1992Select Case argument.Kind 2016Throw ExceptionUtilities.UnexpectedValue(argument.Kind) 2063Select Case argument.Kind 2071Throw ExceptionUtilities.UnexpectedValue(argument.Kind) 2114Select Case argument.Kind 2217Throw ExceptionUtilities.UnexpectedValue(argument.Kind)
Semantics\TypeInference\TypeInferenceCollection.vb (1)
406If sourceElement.Kind = BoundKind.ArrayInitialization Then
Symbols\PropertySymbol.vb (5)
166Debug.Assert(receiverOpt.Kind = BoundKind.WithLValueExpressionPlaceholder) 176If receiverOpt.Kind = BoundKind.WithLValueExpressionPlaceholder OrElse receiverOpt.Kind = BoundKind.WithRValueExpressionPlaceholder Then 195Select Case receiverOpt.Kind 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