1959 references to Kind
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (5)
1004(binOpSyntax.Kind() == VisualBasic.SyntaxKind.AndAlsoExpression || binOpSyntax.Kind() == VisualBasic.SyntaxKind.OrElseExpression) && 1231switch (syntax.Kind()) 1248switch (parent?.Kind()) 1320while (syntax.Parent?.Kind() == VisualBasic.SyntaxKind.ParenthesizedExpression)
Microsoft.CodeAnalysis.VisualBasic (1296)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
2026If declarator.AsClause IsNot Nothing AndAlso declarator.AsClause.Kind = SyntaxKind.AsNewClause Then
Binding\Binder_AnonymousTypes.vb (3)
153If fieldSyntax.Kind = SyntaxKind.InferredFieldInitializer Then 234If initializer.Kind = SyntaxKind.InferredFieldInitializer Then 404If nameSyntax.Kind = SyntaxKind.GenericName Then
Binding\Binder_Attributes.vb (1)
396Select Case argumentSyntax.Kind
Binding\Binder_Constraints.vb (4)
26Select Case clause.Kind 36Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 50Select Case syntax.Kind 96Throw ExceptionUtilities.UnexpectedValue(syntax.Kind)
Binding\Binder_Delegates.vb (3)
104If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then 110If expressionSyntax.Kind = SyntaxKind.AddressOfExpression Then 176If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then
Binding\Binder_Expressions.vb (32)
44Select Case node.Kind 258Debug.Assert(IsSemanticModelBinder OrElse node.ContainsDiagnostics, String.Format("Unexpected {0} syntax does not have diagnostics", node.Kind)) 601If (node.Kind = SyntaxKind.PredefinedType) OrElse 602(((TypeOf node Is NameSyntax) OrElse node.Kind = SyntaxKind.ArrayType OrElse node.Kind = SyntaxKind.TupleType) AndAlso SyntaxFacts.IsInNamespaceOrTypeContext(node)) Then 607node.Parent.Kind = SyntaxKind.QualifiedName AndAlso 688Select Case node.Argument.Kind 711If(node.Argument.Kind = SyntaxKind.SimpleMemberAccessExpression, 730If(node.Argument.Kind = SyntaxKind.SimpleMemberAccessExpression, 752Dim operatorIsIsNot = (node.Kind = SyntaxKind.TypeOfIsNotExpression) 2369If nameSyntax.Kind <> SyntaxKind.IdentifierName Then 2376Select Case parent.Kind 2395(leaf.Kind = SyntaxKind.SimpleMemberAccessExpression OrElse leaf.Kind = SyntaxKind.InvocationExpression) Then 2430If node.Kind = SyntaxKind.GenericName Then 2435Debug.Assert(node.Kind = SyntaxKind.IdentifierName) 2457If node.Kind = SyntaxKind.IdentifierName AndAlso DirectCast(node, IdentifierNameSyntax).Identifier.IsBracketed AndAlso 2491If node.Kind = SyntaxKind.IdentifierName Then 2680If leftOpt.Kind = SyntaxKind.IdentifierName Then 2748If leftOpt.Kind = SyntaxKind.SimpleMemberAccessExpression Then 2772If leftTypeSymbol IsNot Nothing AndAlso (right.Kind = SyntaxKind.IdentifierName OrElse right.Kind = SyntaxKind.GenericName) Then 2775Dim identifier = If(right.Kind = SyntaxKind.IdentifierName, 2816If Not hasErrors AndAlso right.Kind = SyntaxKind.GenericName Then 2836If right.Kind = SyntaxKind.GenericName Then 2841Debug.Assert(right.Kind = SyntaxKind.IdentifierName) 2862If right.Kind = SyntaxKind.IdentifierName AndAlso node.Kind = SyntaxKind.SimpleMemberAccessExpression Then 4233If expressionSyntax.Kind <> SyntaxKind.CollectionInitializer Then 4255If expr.Kind = SyntaxKind.CollectionInitializer Then 4324Select Case argumentSyntax.Kind 4337Select Case argumentSyntax.Kind
Binding\Binder_Imports.vb (1)
58Select Case importClauseSyntax.Kind
Binding\Binder_Initializers.vb (9)
139If initializerNode.Kind = SyntaxKind.ModifiedIdentifier Then 175fieldSymbol.Syntax.Kind = SyntaxKind.ModifiedIdentifier Then 179identifier.Parent.Kind = SyntaxKind.VariableDeclarator AndAlso 232Debug.Assert(fieldSymbol.Syntax.Kind = SyntaxKind.ModifiedIdentifier) 403Select Case asNew.NewExpression.Kind 418Throw ExceptionUtilities.UnexpectedValue(asNew.NewExpression.Kind) 502If equalsValueOrAsNewSyntax.Kind = SyntaxKind.EqualsValue Then 512Select Case asNewSyntax.NewExpression.Kind 526Throw ExceptionUtilities.UnexpectedValue(asNewSyntax.NewExpression.Kind)
Binding\Binder_InterpolatedString.vb (1)
22Select Case item.Kind
Binding\Binder_Invocation.vb (8)
62If node Is Nothing OrElse (node.Kind <> SyntaxKind.CallStatement AndAlso node.Kind <> SyntaxKind.ExpressionStatement) Then 67If nodeParent Is Nothing OrElse nodeParent.Kind <> SyntaxKind.ConstructorBlock Then 3032Select Case argumentSyntax.Kind 3083Throw ExceptionUtilities.UnexpectedValue(argumentSyntax.Kind) 3306If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.ConditionalAccessExpression Then 3314Return parent IsNot Nothing AndAlso (parent.Kind = SyntaxKind.CallStatement OrElse parent.Kind = SyntaxKind.ExpressionStatement)
Binding\Binder_Lambda.vb (4)
42If node.Kind = SyntaxKind.MultiLineFunctionLambdaExpression AndAlso 70ElseIf node.Kind = SyntaxKind.MultiLineSubLambdaExpression OrElse 71node.Kind = SyntaxKind.SingleLineSubLambdaExpression Then 478If statement.Kind = SyntaxKind.LocalDeclarationStatement Then
Binding\Binder_ObjectInitializer.vb (5)
65If type.Kind = SyntaxKind.TupleType Then 560If syntaxNode.Initializer.Kind = SyntaxKind.ObjectMemberInitializer Then 563ElseIf syntaxNode.Initializer.Kind = SyntaxKind.ObjectCollectionInitializer Then 567Throw ExceptionUtilities.UnexpectedValue(syntaxNode.Initializer.Kind) 890If topLevelInitializer.Kind = SyntaxKind.CollectionInitializer Then
Binding\Binder_Operators.vb (7)
21Debug.Assert(node.Kind = SyntaxKind.IsExpression OrElse node.Kind = SyntaxKind.IsNotExpression) 22Dim [isNot] As Boolean = (node.Kind = SyntaxKind.IsNotExpression) 130Dim preliminaryOperatorKind As BinaryOperatorKind = OverloadResolution.MapBinaryOperatorKind(node.Kind) 141Select Case child.Kind 186OverloadResolution.MapBinaryOperatorKind(binary.Kind), 1107Dim preliminaryOperatorKind As UnaryOperatorKind = OverloadResolution.MapUnaryOperatorKind(node.Kind)
Binding\Binder_Query.vb (40)
72Select Case current.Kind 107Select Case current.Kind 153Throw ExceptionUtilities.UnexpectedValue(current.Kind) 869Select Case operatorsEnumerator.Current.Kind 900Select Case groupOrInnerJoin.Parent.Kind 1197Select Case clauseSyntax.Kind 1208Throw ExceptionUtilities.UnexpectedValue(clauseSyntax.Kind) 1214Select Case absorbNextOperator.Kind 1231Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 1246Select Case nextOperator.Kind 1288Select Case absorbNextOperator.Kind 1329Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 1380Debug.Assert(join.Kind = SyntaxKind.SimpleJoinClause) 1381Debug.Assert((declaredNames IsNot Nothing) = (join.Parent.Kind = SyntaxKind.SimpleJoinClause OrElse join.Parent.Kind = SyntaxKind.GroupJoinClause)) 1415Select Case additionalJoin.Kind 1612Debug.Assert((declaredNames IsNot Nothing) = (groupJoin.Parent.Kind = SyntaxKind.SimpleJoinClause OrElse groupJoin.Parent.Kind = SyntaxKind.GroupJoinClause)) 1661Select Case additionalJoin.Kind 2105Debug.Assert(clauseSyntax.Kind = SyntaxKind.GroupByClause OrElse clauseSyntax.Kind = SyntaxKind.GroupJoinClause) 2106Debug.Assert(mustProduceFlatCompoundVariable OrElse clauseSyntax.Kind = SyntaxKind.GroupJoinClause) 2107Debug.Assert((declaredNames IsNot Nothing) = (clauseSyntax.Kind = SyntaxKind.GroupJoinClause)) 2586If ordering.Kind = SyntaxKind.AscendingOrdering Then 2589Debug.Assert(ordering.Kind = SyntaxKind.DescendingOrdering) 2595If ordering.Kind = SyntaxKind.AscendingOrdering Then 2598Debug.Assert(ordering.Kind = SyntaxKind.DescendingOrdering) 2702Select Case operatorsEnumerator.Current.Kind 2895Debug.Assert(item.Parent.Kind = SyntaxKind.SelectClause OrElse item.Parent.Kind = SyntaxKind.GroupByClause) 2901If item.Parent.Kind = SyntaxKind.LetClause AndAlso ShadowsRangeVariableInTheChildScope(shadowingCheckBinder, rangeVar) Then 3127Select Case absorbNextOperator.Kind 3158Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 4029Select Case item.Aggregation.Kind 4032If item.Parent.Kind <> SyntaxKind.AggregateClause Then 4040Throw ExceptionUtilities.UnexpectedValue(item.Aggregation.Kind) 4127Debug.Assert(declaredNames Is Nothing OrElse syntax.Parent.Kind = SyntaxKind.SimpleJoinClause OrElse syntax.Parent.Kind = SyntaxKind.GroupJoinClause) 4215Debug.Assert(syntax.Parent.Kind = SyntaxKind.FromClause OrElse syntax.Parent.Kind = SyntaxKind.AggregateClause)
Binding\Binder_SelectCase.vb (7)
71Select Case node.Kind 148If node.Kind = SyntaxKind.CaseStatement Then 158Debug.Assert(node.Kind = SyntaxKind.CaseElseStatement) 171Select Case node.Kind 185Throw ExceptionUtilities.UnexpectedValue(node.Kind) 211Select Case node.Kind 219Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Binding\Binder_Statements.vb (70)
24Select Case node.Kind 197(node.Parent.Kind = SyntaxKind.MultiLineSubLambdaExpression OrElse 198node.Parent.Kind = SyntaxKind.MultiLineFunctionLambdaExpression OrElse 199node.Parent.Kind = SyntaxKind.AddHandlerAccessorBlock OrElse 200node.Parent.Kind = SyntaxKind.RemoveHandlerAccessorBlock OrElse 201node.Parent.Kind = SyntaxKind.RaiseEventAccessorBlock OrElse 202node.Parent.Kind = SyntaxKind.MultiLineIfBlock OrElse 203node.Parent.Kind = SyntaxKind.ElseIfBlock OrElse 204node.Parent.Kind = SyntaxKind.ElseBlock OrElse 205node.Parent.Kind = SyntaxKind.SimpleDoLoopBlock OrElse 206node.Parent.Kind = SyntaxKind.DoWhileLoopBlock OrElse 207node.Parent.Kind = SyntaxKind.DoUntilLoopBlock OrElse 208node.Parent.Kind = SyntaxKind.WhileBlock OrElse 209node.Parent.Kind = SyntaxKind.WithBlock OrElse 210node.Parent.Kind = SyntaxKind.ForBlock OrElse 211node.Parent.Kind = SyntaxKind.ForEachBlock OrElse 212node.Parent.Kind = SyntaxKind.SyncLockBlock OrElse 213node.Parent.Kind = SyntaxKind.SelectBlock OrElse 214node.Parent.Kind = SyntaxKind.TryBlock OrElse 215node.Parent.Kind = SyntaxKind.UsingBlock))) 224If Not SyntaxFacts.IsDoLoopBlock(node.Parent.Kind) Then 235If Not node.Parent.Kind = SyntaxKind.CatchBlock Then 673Dim hasPreserveClause = node.Kind = SyntaxKind.ReDimPreserveStatement 832Select Case labelParent.Kind 874Debug.Assert(block.Kind = SyntaxKind.TryBlock OrElse 875block.Kind = SyntaxKind.CatchBlock OrElse 876block.Kind = SyntaxKind.FinallyBlock OrElse 877block.Kind = SyntaxKind.UsingBlock OrElse 878block.Kind = SyntaxKind.SyncLockBlock OrElse 879block.Kind = SyntaxKind.WithBlock OrElse 880block.Kind = SyntaxKind.ForBlock OrElse 881block.Kind = SyntaxKind.ForEachBlock) 1020ElseIf asClauseOpt Is Nothing OrElse asClauseOpt.Kind <> SyntaxKind.AsNewClause Then 1123Dim isInitializedByAsNew As Boolean = asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause 1176Select Case asNew.NewExpression.Kind 1202Throw ExceptionUtilities.UnexpectedValue(asNew.NewExpression.Kind) 1299If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then 1304If newExpression.Kind = SyntaxKind.AnonymousObjectCreationExpression Then 2112If Not op1.HasErrors AndAlso node.Kind = SyntaxKind.SimpleAssignmentStatement Then 2124ElseIf node.Kind = SyntaxKind.SimpleAssignmentStatement Then 2130Select Case node.Kind 2159Throw ExceptionUtilities.UnexpectedValue(node.Kind) 2169Debug.Assert(node IsNot Nothing AndAlso node.Kind = SyntaxKind.MidAssignmentStatement AndAlso node.Left.Kind = SyntaxKind.MidExpression) 2246Dim isRemoveHandler As Boolean = node.Kind = SyntaxKind.RemoveHandlerStatement 2264Dim method = If(node.Kind = SyntaxKind.AddHandlerStatement, eventSymbol.AddMethod, eventSymbol.RemoveMethod) 2278node.DelegateExpression.Kind = SyntaxKind.AddressOfExpression Then 2332If node.Kind = SyntaxKind.AddHandlerStatement Then 2356If node.Kind = SyntaxKind.AddHandlerStatement Then 2371While notParenthesizedSyntax.Kind = SyntaxKind.ParenthesizedExpression 2376If notQualifiedSyntax.Kind = SyntaxKind.SimpleMemberAccessExpression Then 2380If notQualifiedSyntax.Kind <> SyntaxKind.IdentifierName Then 2394If notParenthesizedSyntax.Kind = SyntaxKind.IdentifierName Then 2585Select Case expression.Kind 2797isTopUntil = (topConditionSyntax.Kind = SyntaxKind.UntilClause) 2810isBottomUntil = (bottomConditionSyntax.Kind = SyntaxKind.UntilClause) 2924If controlVariableSyntax.Kind = SyntaxKind.VariableDeclarator Then 2955If controlVariableSyntax.Kind = SyntaxKind.IdentifierName Then 3564Debug.Assert(controlVariableSyntax.Kind <> SyntaxKind.VariableDeclarator) 4873Dim targetLabel As LabelSymbol = GetExitLabel(node.Kind) 4877Select Case node.Kind 4886Case Else : ExceptionUtilities.UnexpectedValue(node.Kind) 4899Dim targetLabel As LabelSymbol = GetContinueLabel(node.Kind) 4903Select Case node.Kind 4907Case Else : ExceptionUtilities.UnexpectedValue(node.Kind) 5149Select Case curSyntax.Kind 5220Select Case node.Kind 5243Throw ExceptionUtilities.UnexpectedValue(node.Kind) 5255Select Case node.Kind 5282Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Binding\Binder_Symbols.vb (14)
140Select Case syntaxWhole.Kind 368Dim typeIsQualifiedName = currTypeSyntax.Kind = SyntaxKind.QualifiedName 375If rightPart.Kind = SyntaxKind.GenericName Then 448If p IsNot Nothing AndAlso p.Kind = SyntaxKind.SimpleAsClause Then 450If p.Kind = SyntaxKind.Parameter Then 452If p.Kind = SyntaxKind.ParameterList Then 454Return p.Kind = SyntaxKind.DeclareFunctionStatement OrElse p.Kind = SyntaxKind.DeclareSubStatement 506If typeSyntax.Parent?.Kind = SyntaxKind.SimpleImportsClause Then 561Select Case typeSyntax.Kind 595Throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind) 627If argumentSyntax.Kind = SyntaxKind.TypedTupleElement Then 1135Select Case typeSyntax.Kind 1160Throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind)
Binding\Binder_Utils.vb (6)
496If asClauseSyntaxOpt.Type.Kind = SyntaxKind.NullableType Then 503ElseIf asClauseSyntaxOpt.Kind = SyntaxKind.AsNewClause Then 546If asClauseSyntaxOpt.Type.Kind = SyntaxKind.ArrayType Then 548ElseIf asClauseSyntaxOpt.Type.Kind = SyntaxKind.NullableType Then 585Debug.Assert(asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse 586DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.Kind <> SyntaxKind.AnonymousObjectCreationExpression)
Binding\Binder_WithBlock.vb (6)
341Debug.Assert((node.Kind = SyntaxKind.SimpleMemberAccessExpression) OrElse 342(node.Kind = SyntaxKind.DictionaryAccessExpression) OrElse 343(node.Kind = SyntaxKind.XmlAttributeAccessExpression) OrElse 344(node.Kind = SyntaxKind.XmlElementAccessExpression) OrElse 345(node.Kind = SyntaxKind.XmlDescendantAccessExpression) OrElse 346(node.Kind = SyntaxKind.ConditionalAccessExpression))
Binding\Binder_XmlLiterals.vb (15)
156If nameSyntax.Kind = SyntaxKind.XmlEmbeddedExpression Then 197Debug.Assert(otherAttributes.All(Function(a) (a.Kind = SyntaxKind.XmlAttribute) OrElse (a.Kind = SyntaxKind.XmlEmbeddedExpression))) 200If syntax.Kind <> SyntaxKind.XmlEmptyElement Then 449If nameSyntax.Kind = SyntaxKind.XmlEmbeddedExpression Then 479If valueSyntax.Kind = SyntaxKind.XmlEmbeddedExpression Then 498matchesImport = (nameSyntax.Kind = SyntaxKind.XmlName) AndAlso MatchesXmlnsImport(DirectCast(nameSyntax, XmlNameSyntax), str) 555If childSyntax.Kind = SyntaxKind.XmlAttribute Then 608Select Case syntax.Kind 631Throw ExceptionUtilities.UnexpectedValue(syntax.Kind) 639Dim nameSyntax = If(syntax.Name.Kind = SyntaxKind.XmlName, 1182If syntax.Name.Kind = SyntaxKind.XmlEmbeddedExpression Then 1186Debug.Assert(syntax.Name.Kind = SyntaxKind.XmlName) 1196If valueSyntax.Kind <> SyntaxKind.XmlString Then 1197Debug.Assert(valueSyntax.Kind = SyntaxKind.XmlEmbeddedExpression)
Binding\BinderFactory.BinderFactoryVisitor.vb (6)
30If trivia IsNot Nothing AndAlso trivia.Kind = SyntaxKind.DocumentationCommentTrivia Then 40If trivia IsNot Nothing AndAlso trivia.Kind = SyntaxKind.DocumentationCommentTrivia Then 52If node.Name.Kind = SyntaxKind.XmlName Then 57If trivia IsNot Nothing AndAlso trivia.Kind = SyntaxKind.DocumentationCommentTrivia Then 63If trivia IsNot Nothing AndAlso trivia.Kind = SyntaxKind.DocumentationCommentTrivia Then 179If node.ContainsDiagnostics AndAlso node.Parent.Kind = SyntaxKind.SingleLineSubLambdaExpression Then
Binding\BinderFactory.vb (18)
156If node.Kind <> SyntaxKind.CompilationUnit OrElse _tree.Options.Kind = SourceCodeKind.Regular Then 192Return BuildNamespaceBinder(containingNamespaceBinder, nsBlockSyntax.NamespaceStatement.Name, nsBlockSyntax.Parent.Kind = SyntaxKind.CompilationUnit) 261Select Case methodBase.Kind 282Select Case node.Kind 331Throw ExceptionUtilities.UnexpectedValue(node.Kind) 367Select Case methodSyntax.Kind 421Throw ExceptionUtilities.UnexpectedValue(methodSyntax.Kind) 452Select Case parent.Kind 483If nodeForOuterBinder IsNot Nothing AndAlso nodeForOuterBinder.Kind = SyntaxKind.PropertyBlock Then 489If nodeForOuterBinder IsNot Nothing AndAlso nodeForOuterBinder.Kind = SyntaxKind.EventStatement Then 515Select Case parent.Kind 555Throw ExceptionUtilities.UnexpectedValue(parent.Kind) 568If node IsNot Nothing AndAlso (node.Kind = SyntaxKind.NamespaceBlock OrElse node.Kind = SyntaxKind.CompilationUnit) Then 598Select Case childName.Kind 613Throw ExceptionUtilities.UnexpectedValue(childName.Kind) 660Debug.Assert(node.Kind = SyntaxKind.Attribute) 670Select Case attributeBlock.Parent.Kind
Binding\DocumentationCommentBinder.vb (3)
115Select Case parent.Kind 118If element.Name.Kind <> SyntaxKind.XmlName Then 125If element.Name.Kind <> SyntaxKind.XmlName Then
Binding\DocumentationCommentCrefBinder.vb (28)
49If name.Kind = SyntaxKind.IdentifierName Then 57ElseIf name.Kind = SyntaxKind.PredefinedType Then 248Select Case crefName.Kind 257If qName.Right.Kind = SyntaxKind.GenericName Then 271Throw ExceptionUtilities.UnexpectedValue(crefName.Kind) 282Select Case typeSyntax.Kind 309If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.TypeArgumentList Then 312If name.Kind = SyntaxKind.IdentifierName Then 328Select Case name.Kind 332If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.QualifiedName Then 343If name.Kind = SyntaxKind.IdentifierName Then 356If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.QualifiedCrefOperatorReference Then 371Throw ExceptionUtilities.UnexpectedValue(name.Kind) 421Select Case node.Kind 489Select Case nameFromCref.Kind 512Throw ExceptionUtilities.UnexpectedValue(nameFromCref.Kind) 532If node.Kind = SyntaxKind.GenericName Then 548Debug.Assert(node.Kind = SyntaxKind.IdentifierName) 577Select Case left.Kind 592Throw ExceptionUtilities.UnexpectedValue(left.Kind) 609If right.Kind = SyntaxKind.GenericName Then 626Debug.Assert(right.Kind = SyntaxKind.IdentifierName) 655Select Case left.Kind 667Throw ExceptionUtilities.UnexpectedValue(left.Kind) 831Select Case typeSyntax.Kind 1090Select Case name.Kind 1108If genericArguments(i).Kind <> SyntaxKind.IdentifierName Then 1115Throw ExceptionUtilities.UnexpectedValue(name.Kind)
Binding\DocumentationCommentCrefBinder_Compat.vb (11)
18Select Case nameFromCref.Kind 43While name IsNot Nothing And name.Kind <> SyntaxKind.CrefReference 44If name.Kind <> SyntaxKind.QualifiedName Then 65Select Case nameFromCref.Kind 77Throw ExceptionUtilities.UnexpectedValue(nameFromCref.Kind) 89Select Case left.Kind 102Throw ExceptionUtilities.UnexpectedValue(left.Kind) 119If right.Kind = SyntaxKind.GenericName Then 139Debug.Assert(right.Kind = SyntaxKind.IdentifierName) 295If node.Kind = SyntaxKind.GenericName Then 315Debug.Assert(node.Kind = SyntaxKind.IdentifierName)
Binding\EarlyWellKnownAttributeBinder.vb (1)
87Select Case node.Kind
Binding\ForOrForEachBlockBinder.vb (3)
46If _syntax.Kind = SyntaxKind.ForBlock Then 67If(_syntax.Kind = SyntaxKind.ForEachBlock, 108If _syntax.Kind = SyntaxKind.ForBlock Then
Binding\InitializerSemanticModel.vb (4)
54If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 66If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 182If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 192If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then
Binding\LocalBinderBuilder.vb (7)
113Select Case methodBlock.BlockStatement.Kind 136Throw ExceptionUtilities.UnexpectedValue(methodBlock.BlockStatement.Kind) 150Select Case node.Kind 156Throw ExceptionUtilities.UnexpectedValue(node.Kind) 163If node.Kind = SyntaxKind.SingleLineSubLambdaExpression Then 182Select Case node.Kind 188Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Binding\MemberSemanticModel.vb (18)
260Select Case node.Kind 400Throw ExceptionUtilities.UnexpectedValue(node.Kind) 514If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.ParameterList Then 579Select Case parent.Kind 588Select Case parent.Kind 929Dim nodeKind As SyntaxKind = node.Kind 936node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.QueryExpression Then 976Debug.Assert(node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.LetClause) 1532(item.Parent.Kind <> SyntaxKind.AggregateClause AndAlso 1534Not (item.Parent.Parent.Kind = SyntaxKind.QueryExpression AndAlso 1656Debug.Assert(TypeOf node Is QueryClauseSyntax OrElse node.Kind = SyntaxKind.FunctionAggregation OrElse 1657(node.Kind = SyntaxKind.ExpressionRangeVariable AndAlso node.Parent.Kind = SyntaxKind.LetClause) OrElse 1658node.Kind = SyntaxKind.CollectionRangeVariable) 1755If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.WithStatement Then 1757Return parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.WithBlock AndAlso parent.Parent IsNot Nothing 1804Select Case parent.Kind 1811If parent.Parent IsNot Nothing AndAlso parent.Parent.Kind = SyntaxKind.Parameter Then
Binding\MethodBodyBinder.vb (3)
58Select Case methodBlock.Kind 68methodBlock.Parent.Kind = SyntaxKind.PropertyBlock Then 85methodBlock.Parent.Kind = SyntaxKind.EventBlock Then
Binding\StatementListBinder.vb (2)
45If statement.Kind = SyntaxKind.LocalDeclarationStatement Then 68(declarator.AsClause Is Nothing OrElse declarator.AsClause.Kind <> SyntaxKind.AsNewClause)
Binding\UsingBlockBinder.vb (1)
50(variableDeclarator.AsClause Is Nothing OrElse variableDeclarator.AsClause.Kind <> SyntaxKind.AsNewClause)
BoundTree\BoundUnstructuredExceptionHandlingStatement.vb (3)
19Debug.Assert(Me.ResumeWithoutLabelOpt.Kind = SyntaxKind.OnErrorResumeNextStatement OrElse 20Me.ResumeWithoutLabelOpt.Kind = SyntaxKind.ResumeNextStatement OrElse 21Me.ResumeWithoutLabelOpt.Kind = SyntaxKind.ResumeStatement)
CommandLine\VisualBasicCompiler.vb (1)
273Function(d) d.Kind() = SyntaxKind.ExternalSourceDirectiveTrivia)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (10)
307Select Case node.Kind 310If xmlAttr.Name.Kind <> SyntaxKind.XmlName OrElse xmlAttr.Value.Kind <> SyntaxKind.XmlString Then 347Select Case attr.Kind 354If nameAttrName.Kind = SyntaxKind.XmlName AndAlso 616Select Case element.Kind 640If attr.Kind = SyntaxKind.XmlNameAttribute Then 643ElseIf attr.Kind = SyntaxKind.XmlAttribute Then 647If nameAttrName.Kind = SyntaxKind.XmlName AndAlso 657If(value.Kind = SyntaxKind.XmlString,
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (4)
618Select Case attr.Kind 708Throw ExceptionUtilities.UnexpectedValue(attr.Kind) 756Select Case attr.Kind 782Throw ExceptionUtilities.UnexpectedValue(attr.Kind)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
66If name.Kind <> SyntaxKind.XmlName Then
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
143Select Case parent.Kind
Compilation\QuerySymbolInfo.vb (3)
102(aggregateSyntax.Parent.Kind = SyntaxKind.QueryExpression AndAlso 146Select Case clauseSyntax.Kind 173If variableSyntax.Parent Is Nothing OrElse variableSyntax.Parent.Kind <> SyntaxKind.LetClause Then
Compilation\SemanticModel.vb (15)
116If node.Kind = SyntaxKind.XmlName Then 180If expression.Parent IsNot Nothing AndAlso expression.Parent.Kind = SyntaxKind.CollectionInitializer AndAlso 181expression.Parent.Parent IsNot Nothing AndAlso expression.Parent.Parent.Kind = SyntaxKind.ObjectCollectionInitializer AndAlso 183expression.Parent.Parent.Parent IsNot Nothing AndAlso expression.Parent.Parent.Parent.Kind = SyntaxKind.ObjectCreationExpression AndAlso 660Select Case node.Kind 680Select Case parent.Kind 2769If identifierNameSyntax.Parent.Parent.Parent.Parent.Kind = SyntaxKind.RaiseEventStatement Then 2878If node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.ForEachBlock Then 2890If node.Kind = SyntaxKind.ForEachBlock Then 3249Select Case node.Kind 3585Return String.Format("{0}: {1} ({2})", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position) 3590Return String.Format("{0}: {1} ({2}) at {3}", Me.SyntaxTree.FilePath, node.Kind.ToString(), node.Position, position) 3600Return String.Format("{0}: {1} ({2}) -> {3} {4}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name) 3605Return String.Format("{0}: {1} ({2}) -> {3} {4} at {5}", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, type.TypeKind.ToString(), type.Name, position) 3610Return String.Format("{0}: {1} ({2}) at {3} ({4})", Me.SyntaxTree.FilePath, expression.Kind.ToString(), expression.Position, position, [option].ToString())
Compilation\SyntaxTreeSemanticModel.vb (40)
239If parent.Kind <> SyntaxKind.HandlesClauseItem Then 310If parent.Kind <> SyntaxKind.HandlesClauseItem Then 549If node.Kind = SyntaxKind.XmlString Then 552Debug.Assert(node.Kind = SyntaxKind.IdentifierName OrElse 553node.Kind = SyntaxKind.GenericName OrElse 554node.Kind = SyntaxKind.PredefinedType OrElse 555node.Kind = SyntaxKind.QualifiedName OrElse 556node.Kind = SyntaxKind.GlobalName OrElse 557node.Kind = SyntaxKind.QualifiedCrefOperatorReference OrElse 558node.Kind = SyntaxKind.CrefOperatorReference OrElse 559node.Kind = SyntaxKind.CrefReference) 568Select Case parent.Kind 584Dim isCrefAttribute As Boolean = attributeNode.Kind = SyntaxKind.XmlCrefAttribute 585Debug.Assert(isCrefAttribute OrElse attributeNode.Kind = SyntaxKind.XmlNameAttribute) 603If node.Kind = SyntaxKind.CrefReference Then 607isTopLevel = node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.CrefReference 648expression.Parent.Kind = SyntaxKind.QualifiedName AndAlso 967If declarationSyntax.Kind = SyntaxKind.DelegateFunctionStatement OrElse 968declarationSyntax.Kind = SyntaxKind.DelegateSubStatement Then 977Select Case statementSyntax.Kind 987Select Case statementSyntax.Parent.Kind 1026Debug.Assert(statementSyntax.Kind = SyntaxKind.NamespaceBlock AndAlso 1557If expression.Kind = SyntaxKind.IdentifierName AndAlso 1558expressionParent IsNot Nothing AndAlso expressionParent.Kind = SyntaxKind.SimpleMemberAccessExpression AndAlso 1570If expression.Kind = SyntaxKind.NumericLiteralExpression AndAlso 1571expressionParent IsNot Nothing AndAlso (expressionParent.Kind = SyntaxKind.SimpleArgument AndAlso Not DirectCast(expressionParent, SimpleArgumentSyntax).IsNamed) Then 1584If argList IsNot Nothing AndAlso argList.Kind = SyntaxKind.ArgumentList Then 1586If modIdentifier IsNot Nothing AndAlso modIdentifier.Kind = SyntaxKind.ModifiedIdentifier Then 1588If varDeclarator IsNot Nothing AndAlso varDeclarator.Kind = SyntaxKind.VariableDeclarator AndAlso 1604If node.Kind = SyntaxKind.Attribute Then 1626Select Case parent.Kind 1638Select Case parent.Kind 1694Select Case parent.Kind 1719If expression.Kind = SyntaxKind.PredefinedType OrElse SyntaxFacts.IsInNamespaceOrTypeContext(expression) Then 1728Select Case expression.Kind 1733Select Case parent.Kind 1751If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.CollectionInitializer Then 1755If parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.ObjectCollectionInitializer AndAlso 1817Debug.Assert(forBlockOrStatement.Kind <> SyntaxKind.ForStatement) 1818Debug.Assert(forBlockOrStatement.Kind <> SyntaxKind.ForEachStatement)
Compilation\VisualBasicCompilation.vb (2)
836Select Case lastStatement.Kind 2599Dim checksumDirectives = tree.GetRoot().GetDirectives(Function(d) d.Kind = SyntaxKind.ExternalChecksumDirectiveTrivia AndAlso
Declarations\DeclarationTreeBuilder.vb (13)
78requiresImplicitClass = member.Kind <> SyntaxKind.IncompleteMember AndAlso member.Kind <> SyntaxKind.EmptyStatement 132Debug.Assert(parent.Kind = SyntaxKind.CompilationUnit AndAlso _syntaxTree.Options.Kind <> SourceCodeKind.Regular) 238If clause.Kind <> SyntaxKind.SimpleImportsClause Then 354If name.Kind = SyntaxKind.GlobalName Then 355If nsBlockSyntax.Parent.Kind = SyntaxKind.CompilationUnit Then 423Select Case member.Kind 459Select Case member.Kind 491Select Case typeBlockSyntax.Kind 509kind:=GetKind(declarationSyntax.Kind), 559kind:=GetKind(declarationSyntax.Kind), 622Select Case statement.Kind 719If member.Kind = SyntaxKind.EnumMemberDeclaration Then
Generated\Syntax.xml.Main.Generated.vb (556)
1493Return New EmptyStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEmpty) 1508Return New EndBlockStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEndKeyword, newBlockKeyword) 1529Return New CompilationUnitSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOptions.Node, newImports.Node, newAttributes.Node, newMembers.Node, newEndOfFileToken) 1546Return New OptionStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOptionKeyword, newNameKeyword, newValueKeyword) 1561Return New ImportsStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newImportsKeyword, newImportsClauses.Node) 1576Return New SimpleImportsClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAlias, newName) 1591Return New ImportAliasClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newEqualsToken) 1608Return New XmlNamespaceImportsClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newXmlNamespace, newGreaterThanToken) 1625Return New NamespaceBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNamespaceStatement, newMembers.Node, newEndNamespaceStatement) 1640Return New NamespaceStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNamespaceKeyword, newName) 1661Return New ModuleBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newModuleStatement, newInherits.Node, newImplements.Node, newMembers.Node, newEndModuleStatement) 1682Return New StructureBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStructureStatement, newInherits.Node, newImplements.Node, newMembers.Node, newEndStructureStatement) 1703Return New InterfaceBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newInterfaceStatement, newInherits.Node, newImplements.Node, newMembers.Node, newEndInterfaceStatement) 1724Return New ClassBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newClassStatement, newInherits.Node, newImplements.Node, newMembers.Node, newEndClassStatement) 1741Return New EnumBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEnumStatement, newMembers.Node, newEndEnumStatement) 1756Return New InheritsStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newInheritsKeyword, newTypes.Node) 1771Return New ImplementsStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newImplementsKeyword, newTypes.Node) 1792Return New ModuleStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newModuleKeyword, newIdentifier, newTypeParameterList) 1813Return New StructureStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newStructureKeyword, newIdentifier, newTypeParameterList) 1834Return New InterfaceStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newInterfaceKeyword, newIdentifier, newTypeParameterList) 1855Return New ClassStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newClassKeyword, newIdentifier, newTypeParameterList) 1876Return New EnumStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newEnumKeyword, newIdentifier, newUnderlyingType) 1895Return New TypeParameterListSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newOfKeyword, newParameters.Node, newCloseParenToken) 1912Return New TypeParameterSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newVarianceKeyword, newIdentifier, newTypeParameterConstraintClause) 1927Return New TypeParameterSingleConstraintClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAsKeyword, newConstraint) 1946Return New TypeParameterMultipleConstraintClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAsKeyword, newOpenBraceToken, newConstraints.Node, newCloseBraceToken) 1959Return New SpecialConstraintSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newConstraintKeyword) 1972Return New TypeConstraintSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newType) 1989Return New EnumMemberDeclarationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newIdentifier, newInitializer) 2006Return New MethodBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubOrFunctionStatement, newStatements.Node, newEndSubOrFunctionStatement) 2023Return New ConstructorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubNewStatement, newStatements.Node, newEndSubStatement) 2040Return New OperatorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOperatorStatement, newStatements.Node, newEndOperatorStatement) 2057Return New AccessorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAccessorStatement, newStatements.Node, newEndAccessorStatement) 2074Return New PropertyBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newPropertyStatement, newAccessors.Node, newEndPropertyStatement) 2091Return New EventBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEventStatement, newAccessors.Node, newEndEventStatement) 2108Return New ParameterListSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newParameters.Node, newCloseParenToken) 2137Return New MethodStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause, newHandlesClause, newImplementsClause) 2158Return New SubNewStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newSubKeyword, newNewKeyword, newParameterList) 2193Return New DeclareStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newDeclareKeyword, newCharsetKeyword, newSubOrFunctionKeyword, newIdentifier, newLibKeyword, newLibraryName, newAliasKeyword, newAliasName, newParameterList, newAsClause) 2220Return New DelegateStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newDelegateKeyword, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause) 2247Return New EventStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newCustomKeyword, newEventKeyword, newIdentifier, newParameterList, newAsClause, newImplementsClause) 2270Return New OperatorStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newOperatorKeyword, newOperatorToken, newParameterList, newAsClause) 2297Return New PropertyStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newPropertyKeyword, newIdentifier, newParameterList, newAsClause, newInitializer, newImplementsClause) 2316Return New AccessorStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newAccessorKeyword, newParameterList) 2331Return New ImplementsClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newImplementsKeyword, newInterfaceMembers.Node) 2346Return New HandlesClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHandlesKeyword, newEvents.Node) 2359Return New KeywordEventContainerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword) 2372Return New WithEventsEventContainerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier) 2389Return New WithEventsPropertyEventContainerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithEventsContainer, newDotToken, newProperty) 2406Return New HandlesClauseItemSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEventContainer, newDotToken, newEventMember) 2423Return New IncompleteMemberSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newMissingIdentifier) 2440Return New FieldDeclarationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newDeclarators.Node) 2457Return New VariableDeclaratorSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNames.Node, newAsClause, newInitializer) 2474Return New SimpleAsClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAsKeyword, newAttributeLists.Node, newType) 2489Return New AsNewClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAsKeyword, newNewExpression) 2508Return New ObjectMemberInitializerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithKeyword, newOpenBraceToken, newInitializers.Node, newCloseBraceToken) 2523Return New ObjectCollectionInitializerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFromKeyword, newInitializer) 2538Return New InferredFieldInitializerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyKeyword, newExpression) 2559Return New NamedFieldInitializerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyKeyword, newDotToken, newName, newEqualsToken, newExpression) 2574Return New EqualsValueSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEqualsToken, newValue) 2595Return New ParameterSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newIdentifier, newAsClause, newDefault) 2614Return New ModifiedIdentifierSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newNullable, newArrayBounds, newArrayRankSpecifiers.Node) 2631Return New ArrayRankSpecifierSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newCommaTokens.Node, newCloseParenToken) 2648Return New AttributeListSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newAttributes.Node, newGreaterThanToken) 2665Return New AttributeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTarget, newName, newArgumentList) 2680Return New AttributeTargetSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeModifier, newColonToken) 2693Return New AttributesStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node) 2706Return New ExpressionStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression) 2721Return New PrintStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newQuestionToken, newExpression) 2738Return New WhileBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhileStatement, newStatements.Node, newEndWhileStatement) 2755Return New UsingBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newUsingStatement, newStatements.Node, newEndUsingStatement) 2772Return New SyncLockBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSyncLockStatement, newStatements.Node, newEndSyncLockStatement) 2789Return New WithBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithStatement, newStatements.Node, newEndWithStatement) 2804Return New LocalDeclarationStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newModifiers.Node, newDeclarators.Node) 2819Return New LabelStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLabelToken, newColonToken) 2834Return New GoToStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGoToKeyword, newLabel) 2847Return New LabelSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLabelToken) 2860Return New StopOrEndStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStopOrEndKeyword) 2875Return New ExitStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExitKeyword, newBlockKeyword) 2890Return New ContinueStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newContinueKeyword, newBlockKeyword) 2905Return New ReturnStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newReturnKeyword, newExpression) 2926Return New SingleLineIfStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newCondition, newThenKeyword, newStatements.Node, newElseClause) 2941Return New SingleLineElseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseKeyword, newStatements.Node) 2962Return New MultiLineIfBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfStatement, newStatements.Node, newElseIfBlocks.Node, newElseBlock, newEndIfStatement) 2979Return New IfStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newCondition, newThenKeyword) 2994Return New ElseIfBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseIfStatement, newStatements.Node) 3011Return New ElseIfStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseIfKeyword, newCondition, newThenKeyword) 3026Return New ElseBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseStatement, newStatements.Node) 3039Return New ElseStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseKeyword) 3060Return New TryBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTryStatement, newStatements.Node, newCatchBlocks.Node, newFinallyBlock, newEndTryStatement) 3073Return New TryStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTryKeyword) 3088Return New CatchBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCatchStatement, newStatements.Node) 3107Return New CatchStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCatchKeyword, newIdentifierName, newAsClause, newWhenClause) 3122Return New CatchFilterClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhenKeyword, newFilter) 3137Return New FinallyBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFinallyStatement, newStatements.Node) 3150Return New FinallyStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFinallyKeyword) 3165Return New ErrorStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newErrorKeyword, newErrorNumber) 3186Return New OnErrorGoToStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOnKeyword, newErrorKeyword, newGoToKeyword, newMinus, newLabel) 3205Return New OnErrorResumeNextStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOnKeyword, newErrorKeyword, newResumeKeyword, newNextKeyword) 3220Return New ResumeStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newResumeKeyword, newLabel) 3237Return New SelectBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSelectStatement, newCaseBlocks.Node, newEndSelectStatement) 3254Return New SelectStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSelectKeyword, newCaseKeyword, newExpression) 3269Return New CaseBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCaseStatement, newStatements.Node) 3284Return New CaseStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCaseKeyword, newCases.Node) 3297Return New ElseCaseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseKeyword) 3310Return New SimpleCaseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newValue) 3327Return New RangeCaseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLowerBound, newToKeyword, newUpperBound) 3344Return New RelationalCaseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIsKeyword, newOperatorToken, newValue) 3359Return New SyncLockStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSyncLockKeyword, newExpression) 3376Return New DoLoopBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDoStatement, newStatements.Node, newLoopStatement) 3391Return New DoStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDoKeyword, newWhileOrUntilClause) 3406Return New LoopStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLoopKeyword, newWhileOrUntilClause) 3421Return New WhileOrUntilClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhileOrUntilKeyword, newCondition) 3436Return New WhileStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhileKeyword, newCondition) 3453Return New ForBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForStatement, newStatements.Node, newNextStatement) 3470Return New ForEachBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForEachStatement, newStatements.Node, newNextStatement) 3495Return New ForStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForKeyword, newControlVariable, newEqualsToken, newFromValue, newToKeyword, newToValue, newStepClause) 3510Return New ForStepClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStepKeyword, newStepValue) 3531Return New ForEachStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForKeyword, newEachKeyword, newControlVariable, newInKeyword, newExpression) 3546Return New NextStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNextKeyword, newControlVariables.Node) 3563Return New UsingStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newUsingKeyword, newExpression, newVariables.Node) 3578Return New ThrowStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newThrowKeyword, newExpression) 3595Return New AssignmentStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLeft, newOperatorToken, newRight) 3610Return New MidExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newMid, newArgumentList) 3625Return New CallStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCallKeyword, newInvocation) 3644Return New AddRemoveHandlerStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAddHandlerOrRemoveHandlerKeyword, newEventExpression, newCommaToken, newDelegateExpression) 3661Return New RaiseEventStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newRaiseEventKeyword, newName, newArgumentList) 3676Return New WithStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithKeyword, newExpression) 3693Return New ReDimStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newReDimKeyword, newPreserveKeyword, newClauses.Node) 3708Return New RedimClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression, newArrayBounds) 3723Return New EraseStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEraseKeyword, newExpressions.Node) 3736Return New LiteralExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newToken) 3753Return New ParenthesizedExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newExpression, newCloseParenToken) 3770Return New TupleExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newArguments.Node, newCloseParenToken) 3787Return New TupleTypeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newElements.Node, newCloseParenToken) 3800Return New TypedTupleElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newType) 3815Return New NamedTupleElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newAsClause) 3828Return New MeExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword) 3841Return New MyBaseExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword) 3854Return New MyClassExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword) 3873Return New GetTypeExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGetTypeKeyword, newOpenParenToken, newType, newCloseParenToken) 3892Return New TypeOfExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTypeOfKeyword, newExpression, newOperatorToken, newType) 3911Return New GetXmlNamespaceExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGetXmlNamespaceKeyword, newOpenParenToken, newName, newCloseParenToken) 3928Return New MemberAccessExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression, newOperatorToken, newName) 3949Return New XmlMemberAccessExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newBase, newToken1, newToken2, newToken3, newName) 3964Return New InvocationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression, newArgumentList) 3985Return New ObjectCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.Node, newType, newArgumentList, newInitializer) 4002Return New AnonymousObjectCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.Node, newInitializer) 4025Return New ArrayCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.Node, newType, newArrayBounds, newRankSpecifiers.Node, newInitializer) 4042Return New CollectionInitializerSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenBraceToken, newInitializers.Node, newCloseBraceToken) 4065Return New CTypeExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword, newOpenParenToken, newExpression, newCommaToken, newType, newCloseParenToken) 4088Return New DirectCastExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword, newOpenParenToken, newExpression, newCommaToken, newType, newCloseParenToken) 4111Return New TryCastExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword, newOpenParenToken, newExpression, newCommaToken, newType, newCloseParenToken) 4130Return New PredefinedCastExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword, newOpenParenToken, newExpression, newCloseParenToken) 4147Return New BinaryExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLeft, newOperatorToken, newRight) 4162Return New UnaryExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOperatorToken, newOperand) 4185Return New BinaryConditionalExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newOpenParenToken, newFirstExpression, newCommaToken, newSecondExpression, newCloseParenToken) 4212Return New TernaryConditionalExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newOpenParenToken, newCondition, newFirstCommaToken, newWhenTrue, newSecondCommaToken, newWhenFalse, newCloseParenToken) 4227Return New SingleLineLambdaExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubOrFunctionHeader, newBody) 4244Return New MultiLineLambdaExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubOrFunctionHeader, newStatements.Node, newEndSubOrFunctionStatement) 4265Return New LambdaHeaderSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newSubOrFunctionKeyword, newParameterList, newAsClause) 4282Return New ArgumentListSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newArguments.Node, newCloseParenToken) 4295Return New OmittedArgumentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEmpty) 4310Return New SimpleArgumentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNameColonEquals, newExpression) 4325Return New NameColonEqualsSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newColonEqualsToken) 4342Return New RangeArgumentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLowerBound, newToKeyword, newUpperBound) 4355Return New QueryExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newClauses.Node) 4374Return New CollectionRangeVariableSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newAsClause, newInKeyword, newExpression) 4389Return New ExpressionRangeVariableSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNameEquals, newExpression) 4404Return New AggregationRangeVariableSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNameEquals, newAggregation) 4421Return New VariableNameEqualsSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newAsClause, newEqualsToken) 4440Return New FunctionAggregationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFunctionName, newOpenParenToken, newArgument, newCloseParenToken) 4453Return New GroupAggregationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGroupKeyword) 4468Return New FromClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFromKeyword, newVariables.Node) 4483Return New LetClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLetKeyword, newVariables.Node) 4504Return New AggregateClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAggregateKeyword, newVariables.Node, newAdditionalQueryOperators.Node, newIntoKeyword, newAggregationVariables.Node) 4517Return New DistinctClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDistinctKeyword) 4532Return New WhereClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhereKeyword, newCondition) 4549Return New PartitionWhileClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSkipOrTakeKeyword, newWhileKeyword, newCondition) 4564Return New PartitionClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSkipOrTakeKeyword, newCount) 4587Return New GroupByClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGroupKeyword, newItems.Node, newByKeyword, newKeys.Node, newIntoKeyword, newAggregationVariables.Node) 4604Return New JoinConditionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLeft, newEqualsKeyword, newRight) 4625Return New SimpleJoinClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newJoinKeyword, newJoinedVariables.Node, newAdditionalJoins.Node, newOnKeyword, newJoinConditions.Node) 4652Return New GroupJoinClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGroupKeyword, newJoinKeyword, newJoinedVariables.Node, newAdditionalJoins.Node, newOnKeyword, newJoinConditions.Node, newIntoKeyword, newAggregationVariables.Node) 4669Return New OrderByClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOrderKeyword, newByKeyword, newOrderings.Node) 4684Return New OrderingSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression, newAscendingOrDescendingKeyword) 4699Return New SelectClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSelectKeyword, newVariables.Node) 4718Return New XmlDocumentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDeclaration, newPrecedingMisc.Node, newRoot, newFollowingMisc.Node) 4741Return New XmlDeclarationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanQuestionToken, newXmlKeyword, newVersion, newEncoding, newStandalone, newQuestionGreaterThanToken) 4758Return New XmlDeclarationOptionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newEquals, newValue) 4775Return New XmlElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStartTag, newContent.Node, newEndTag) 4788Return New XmlTextSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTextTokens.Node) 4807Return New XmlElementStartTagSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newName, newAttributes.Node, newGreaterThanToken) 4824Return New XmlElementEndTagSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanSlashToken, newName, newGreaterThanToken) 4843Return New XmlEmptyElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newName, newAttributes.Node, newSlashGreaterThanToken) 4860Return New XmlAttributeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newEqualsToken, newValue) 4877Return New XmlStringSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStartQuoteToken, newTextTokens.Node, newEndQuoteToken) 4890Return New XmlPrefixNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName) 4905Return New XmlNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newPrefix, newLocalName) 4922Return New XmlBracketedNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newName, newGreaterThanToken) 4937Return New XmlPrefixSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newColonToken) 4954Return New XmlCommentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanExclamationMinusMinusToken, newTextTokens.Node, newMinusMinusGreaterThanToken) 4973Return New XmlProcessingInstructionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanQuestionToken, newName, newTextTokens.Node, newQuestionGreaterThanToken) 4990Return New XmlCDataSectionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newBeginCDataToken, newTextTokens.Node, newEndCDataToken) 5007Return New XmlEmbeddedExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanPercentEqualsToken, newExpression, newPercentGreaterThanToken) 5022Return New ArrayTypeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElementType, newRankSpecifiers.Node) 5037Return New NullableTypeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElementType, newQuestionMarkToken) 5050Return New PredefinedTypeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newKeyword) 5063Return New IdentifierNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier) 5078Return New GenericNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newTypeArgumentList) 5095Return New QualifiedNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLeft, newDotToken, newRight) 5108Return New GlobalNameSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGlobalKeyword) 5127Return New TypeArgumentListSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newOfKeyword, newArguments.Node, newCloseParenToken) 5144Return New CrefReferenceSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newSignature, newAsClause) 5161Return New CrefSignatureSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenParenToken, newArgumentTypes.Node, newCloseParenToken) 5176Return New CrefSignaturePartSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newModifier, newType) 5191Return New CrefOperatorReferenceSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOperatorKeyword, newOperatorToken) 5208Return New QualifiedCrefOperatorReferenceSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLeft, newDotToken, newRight) 5223Return New YieldStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newYieldKeyword, newExpression) 5238Return New AwaitExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAwaitKeyword, newExpression) 5251Return New SkippedTokensTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTokens.Node) 5264Return New DocumentationCommentTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newContent.Node) 5285Return New XmlCrefAttributeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newEqualsToken, newStartQuoteToken, newReference, newEndQuoteToken) 5306Return New XmlNameAttributeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newName, newEqualsToken, newStartQuoteToken, newReference, newEndQuoteToken) 5323Return New ConditionalAccessExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newExpression, newQuestionMarkToken, newWhenNotNull) 5342Return New NameOfExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNameOfKeyword, newOpenParenToken, newArgument, newCloseParenToken) 5359Return New InterpolatedStringExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDollarSignDoubleQuoteToken, newContents.Node, newDoubleQuoteToken) 5372Return New InterpolatedStringTextSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTextToken) 5393Return New InterpolationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOpenBraceToken, newExpression, newAlignmentClause, newFormatClause, newCloseBraceToken) 5408Return New InterpolationAlignmentClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCommaToken, newValue) 5423Return New InterpolationFormatClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newColonToken, newFormatStringToken) 5444Return New ConstDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newConstKeyword, newName, newEqualsToken, newValue) 5465Return New IfDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newElseKeyword, newIfOrElseIfKeyword, newCondition, newThenKeyword) 5480Return New ElseDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newElseKeyword) 5497Return New EndIfDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newEndKeyword, newIfKeyword) 5514Return New RegionDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newRegionKeyword, newName) 5531Return New EndRegionDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newEndKeyword, newRegionKeyword) 5556Return New ExternalSourceDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newExternalSourceKeyword, newOpenParenToken, newExternalSource, newCommaToken, newLineStart, newCloseParenToken) 5573Return New EndExternalSourceDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newEndKeyword, newExternalSourceKeyword) 5602Return New ExternalChecksumDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newExternalChecksumKeyword, newOpenParenToken, newExternalSource, newFirstCommaToken, newGuid, newSecondCommaToken, newChecksum, newCloseParenToken) 5621Return New EnableWarningDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newEnableKeyword, newWarningKeyword, newErrorCodes.Node) 5640Return New DisableWarningDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newDisableKeyword, newWarningKeyword, newErrorCodes.Node) 5657Return New ReferenceDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken, newReferenceKeyword, newFile) 5670Return New BadDirectiveTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newHashToken) 6829Select Case name.Kind() 6916Select Case xmlNamespace.Kind() 6957Select Case namespaceStatement.Kind() 6965Select Case endNamespaceStatement.Kind() 7018Select Case name.Kind() 7067Select Case moduleStatement.Kind() 7075Select Case endModuleStatement.Kind() 7140Select Case structureStatement.Kind() 7148Select Case endStructureStatement.Kind() 7213Select Case interfaceStatement.Kind() 7221Select Case endInterfaceStatement.Kind() 7286Select Case classStatement.Kind() 7294Select Case endClassStatement.Kind() 7353Select Case enumStatement.Kind() 7361Select Case endEnumStatement.Kind() 8031Select Case constraint.Kind() 8221Select Case type.Kind() 8288Select Case subOrFunctionStatement.Kind() 8297Select Case endSubOrFunctionStatement.Kind() 8351Select Case subOrFunctionStatement.Kind() 8359Select Case endSubOrFunctionStatement.Kind() 8488Select Case subNewStatement.Kind() 8496Select Case endSubStatement.Kind() 8549Select Case operatorStatement.Kind() 8557Select Case endOperatorStatement.Kind() 8613Select Case accessorStatement.Kind() 8625Select Case endAccessorStatement.Kind() 8689Select Case accessorStatement.Kind() 8697Select Case endAccessorStatement.Kind() 8757Select Case accessorStatement.Kind() 8765Select Case endAccessorStatement.Kind() 8825Select Case accessorStatement.Kind() 8833Select Case endAccessorStatement.Kind() 8893Select Case accessorStatement.Kind() 8901Select Case endAccessorStatement.Kind() 9055Select Case propertyStatement.Kind() 9063Select Case endPropertyStatement.Kind() 9106Select Case eventStatement.Kind() 9114Select Case endEventStatement.Kind() 9700Select Case libraryName.Kind() 9852Select Case libraryName.Kind() 10009Select Case libraryName.Kind() 11423Select Case withEventsContainer.Kind() 11436Select Case [property].Kind() 11478Select Case eventContainer.Kind() 11492Select Case eventMember.Kind() 11673Select Case type.Kind() 11742Select Case newExpression.Kind() 11843Select Case initializer.Kind() 11878Select Case expression.Kind() 11929Select Case name.Kind() 11942Select Case expression.Kind() 12089Select Case value.Kind() 12240Select Case identifier.Kind() 12426Select Case name.Kind() 12525Select Case expression.Kind() 12656Select Case expression.Kind() 12797Select Case whileStatement.Kind() 12805Select Case endWhileStatement.Kind() 12859Select Case usingStatement.Kind() 12867Select Case endUsingStatement.Kind() 12922Select Case syncLockStatement.Kind() 12930Select Case endSyncLockStatement.Kind() 12985Select Case withStatement.Kind() 12993Select Case endWithStatement.Kind() 13115Select Case label.Kind() 13963Select Case condition.Kind() 14176Select Case ifStatement.Kind() 14184Select Case endIfStatement.Kind() 14250Select Case condition.Kind() 14388Select Case elseIfStatement.Kind() 14429Select Case condition.Kind() 14566Select Case elseStatement.Kind() 14641Select Case tryStatement.Kind() 14649Select Case endTryStatement.Kind() 14722Select Case catchStatement.Kind() 14812Select Case filter.Kind() 14949Select Case finallyStatement.Kind() 15019Select Case errorNumber.Kind() 15181Select Case label.Kind() 15242Select Case label.Kind() 15303Select Case label.Kind() 15372Select Case label.Kind() 15663Select Case selectStatement.Kind() 15671Select Case endSelectStatement.Kind() 15729Select Case expression.Kind() 15867Select Case caseStatement.Kind() 15901Select Case caseStatement.Kind() 15942Select Case caseStatement.Kind() 16166Select Case value.Kind() 16295Select Case lowerBound.Kind() 16412Select Case upperBound.Kind() 16566Select Case value.Kind() 16712Select Case value.Kind() 16858Select Case value.Kind() 17004Select Case value.Kind() 17150Select Case value.Kind() 17296Select Case value.Kind() 17449Select Case value.Kind() 17620Select Case expression.Kind() 17762Select Case doStatement.Kind() 17772Select Case loopStatement.Kind() 17815Select Case doStatement.Kind() 17823Select Case loopStatement.Kind() 17864Select Case doStatement.Kind() 17872Select Case loopStatement.Kind() 17913Select Case doStatement.Kind() 17921Select Case loopStatement.Kind() 17962Select Case doStatement.Kind() 17970Select Case loopStatement.Kind() 18477Select Case condition.Kind() 18623Select Case condition.Kind() 18774Select Case condition.Kind() 18916Select Case condition.Kind() 19061Select Case forStatement.Kind() 19103Select Case forEachStatement.Kind() 19166Select Case controlVariable.Kind() 19284Select Case fromValue.Kind() 19401Select Case toValue.Kind() 19585Select Case stepValue.Kind() 19750Select Case controlVariable.Kind() 19868Select Case expression.Kind() 20161Select Case left.Kind() 20287Select Case right.Kind() 20433Select Case left.Kind() 20550Select Case right.Kind() 20696Select Case left.Kind() 20813Select Case right.Kind() 20959Select Case left.Kind() 21076Select Case right.Kind() 21222Select Case left.Kind() 21339Select Case right.Kind() 21485Select Case left.Kind() 21602Select Case right.Kind() 21748Select Case left.Kind() 21865Select Case right.Kind() 22011Select Case left.Kind() 22128Select Case right.Kind() 22274Select Case left.Kind() 22391Select Case right.Kind() 22537Select Case left.Kind() 22654Select Case right.Kind() 22800Select Case left.Kind() 22917Select Case right.Kind() 23075Select Case left.Kind() 23190Select Case right.Kind() 23349Select Case argumentList.Kind() 23391Select Case invocation.Kind() 23439Select Case eventExpression.Kind() 23556Select Case delegateExpression.Kind() 23709Select Case eventExpression.Kind() 23826Select Case delegateExpression.Kind() 23985Select Case eventExpression.Kind() 24102Select Case delegateExpression.Kind() 24269Select Case name.Kind() 24323Select Case expression.Kind() 24612Select Case expression.Kind() 24724Select Case arrayBounds.Kind() 25092Select Case expression.Kind() 25329Select Case type.Kind() 25494Select Case type.Kind() 25552Select Case expression.Kind() 25670Select Case type.Kind() 25726Select Case expression.Kind() 25843Select Case type.Kind() 25906Select Case expression.Kind() 26021Select Case type.Kind() 26136Select Case name.Kind() 26195Select Case name.Kind() 26260Select Case name.Kind() 26329Select Case name.Kind() 26400Select Case name.Kind() 26471Select Case name.Kind() 26550Select Case name.Kind() 26658Select Case type.Kind() 26732Select Case initializer.Kind() 26799Select Case type.Kind() 26815Select Case initializer.Kind() 26942Select Case expression.Kind() 27059Select Case type.Kind() 27125Select Case expression.Kind() 27242Select Case type.Kind() 27308Select Case expression.Kind() 27425Select Case type.Kind() 27504Select Case expression.Kind() 27652Select Case left.Kind() 27792Select Case right.Kind() 27936Select Case left.Kind() 28053Select Case right.Kind() 28197Select Case left.Kind() 28314Select Case right.Kind() 28458Select Case left.Kind() 28575Select Case right.Kind() 28719Select Case left.Kind() 28836Select Case right.Kind() 28980Select Case left.Kind() 29097Select Case right.Kind() 29241Select Case left.Kind() 29358Select Case right.Kind() 29502Select Case left.Kind() 29619Select Case right.Kind() 29763Select Case left.Kind() 29880Select Case right.Kind() 30024Select Case left.Kind() 30141Select Case right.Kind() 30285Select Case left.Kind() 30402Select Case right.Kind() 30546Select Case left.Kind() 30663Select Case right.Kind() 30807Select Case left.Kind() 30924Select Case right.Kind() 31068Select Case left.Kind() 31185Select Case right.Kind() 31329Select Case left.Kind() 31446Select Case right.Kind() 31590Select Case left.Kind() 31707Select Case right.Kind() 31851Select Case left.Kind() 31968Select Case right.Kind() 32112Select Case left.Kind() 32229Select Case right.Kind() 32373Select Case left.Kind() 32490Select Case right.Kind() 32634Select Case left.Kind() 32751Select Case right.Kind() 32895Select Case left.Kind() 33012Select Case right.Kind() 33156Select Case left.Kind() 33273Select Case right.Kind() 33417Select Case left.Kind() 33534Select Case right.Kind() 33678Select Case left.Kind() 33795Select Case right.Kind() 33953Select Case left.Kind() 34068Select Case right.Kind() 34256Select Case operand.Kind() 34398Select Case operand.Kind() 34540Select Case operand.Kind() 34682Select Case operand.Kind() 34830Select Case operand.Kind() 34993Select Case firstExpression.Kind() 35110Select Case secondExpression.Kind() 35285Select Case condition.Kind() 35402Select Case whenTrue.Kind() 35519Select Case whenFalse.Kind() 35670Select Case subOrFunctionHeader.Kind() 35679Select Case body.Kind() 35964Select Case subOrFunctionHeader.Kind() 35973Select Case body.Kind() 36266Select Case subOrFunctionHeader.Kind() 36275Select Case body.Kind() 36565Select Case subOrFunctionHeader.Kind() 36574Select Case endSubOrFunctionStatement.Kind() 36620Select Case subOrFunctionHeader.Kind() 36629Select Case endSubOrFunctionStatement.Kind() 36683Select Case subOrFunctionHeader.Kind() 36692Select Case endSubOrFunctionStatement.Kind() 37012Select Case expression.Kind() 37150Select Case name.Kind() 37192Select Case lowerBound.Kind() 37309Select Case upperBound.Kind() 37485Select Case identifier.Kind() 37498Select Case expression.Kind() 37659Select Case expression.Kind() 37802Select Case aggregation.Kind() 37842Select Case identifier.Kind() 38168Select Case condition.Kind() 38320Select Case condition.Kind() 38472Select Case condition.Kind() 38629Select Case condition.Kind() 38790Select Case count.Kind() 38932Select Case count.Kind() 39079Select Case count.Kind() 39289Select Case left.Kind() 39406Select Case right.Kind() 39756Select Case expression.Kind() 39896Select Case expression.Kind() 40043Select Case expression.Kind() 40233Select Case declaration.Kind() 40241Select Case root.Kind() 40277Select Case version.Kind() 40325Select Case value.Kind() 40350Select Case startTag.Kind() 40358Select Case endTag.Kind() 40407Select Case name.Kind() 40484Select Case name.Kind() 40522Select Case name.Kind() 40536Select Case value.Kind() 40644Select Case name.Kind() 40794Select Case expression.Kind() 40935Select Case elementType.Kind() 40978Select Case elementType.Kind() 41091Select Case typeArgumentList.Kind() 41133Select Case left.Kind() 41151Select Case right.Kind() 41266Select Case name.Kind() 41387Select Case left.Kind() 41405Select Case right.Kind() 41437Select Case expression.Kind() 41579Select Case expression.Kind() 42030Select Case name.Kind() 42049Select Case reference.Kind() 42083Select Case name.Kind() 42102Select Case reference.Kind() 42149Select Case whenNotNull.Kind() 42220Select Case argument.Kind() 42451Select Case expression.Kind() 42617Select Case value.Kind() 42972Select Case value.Kind() 43137Select Case condition.Kind() 43281Select Case condition.Kind() 43432Select Case condition.Kind()
Generated\Syntax.xml.Syntax.Generated.vb (158)
305return Update(Me.Kind, endKeyword, Me.BlockKeyword) 326return Update(Me.Kind, Me.EndKeyword, blockKeyword) 366If kind <> Me.Kind OrElse endKeyword <> Me.EndKeyword OrElse blockKeyword <> Me.BlockKeyword Then 5026return Update(Me.Kind, constraintKeyword) 5061If kind <> Me.Kind OrElse constraintKeyword <> Me.ConstraintKeyword Then 5395return Update(Me.Kind, subOrFunctionStatement, Me.Statements, Me.EndSubOrFunctionStatement) 5425return Update(Me.Kind, Me.SubOrFunctionStatement, statements, Me.EndSubOrFunctionStatement) 5451return Update(Me.Kind, Me.SubOrFunctionStatement, Me.Statements, endSubOrFunctionStatement) 5506If kind <> Me.Kind OrElse subOrFunctionStatement IsNot Me.SubOrFunctionStatement OrElse statements <> Me.Statements OrElse endSubOrFunctionStatement IsNot Me.EndSubOrFunctionStatement Then 5890return Update(Me.Kind, accessorStatement, Me.Statements, Me.EndAccessorStatement) 5920return Update(Me.Kind, Me.AccessorStatement, statements, Me.EndAccessorStatement) 5947return Update(Me.Kind, Me.AccessorStatement, Me.Statements, endAccessorStatement) 6002If kind <> Me.Kind OrElse accessorStatement IsNot Me.AccessorStatement OrElse statements <> Me.Statements OrElse endAccessorStatement IsNot Me.EndAccessorStatement Then 6638return Update(Me.Kind, attributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6682return Update(Me.Kind, Me.AttributeLists, modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6708return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, subOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6726return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6748return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, typeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6783return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, parameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6814return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, asClause, Me.HandlesClause, Me.ImplementsClause) 6835return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, handlesClause, Me.ImplementsClause) 6862return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, implementsClause) 6952If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse subOrFunctionKeyword <> Me.SubOrFunctionKeyword OrElse identifier <> Me.Identifier OrElse typeParameterList IsNot Me.TypeParameterList OrElse parameterList IsNot Me.ParameterList OrElse asClause IsNot Me.AsClause OrElse handlesClause IsNot Me.HandlesClause OrElse implementsClause IsNot Me.ImplementsClause Then 7267return Update(Me.Kind, attributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7311return Update(Me.Kind, Me.AttributeLists, modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7337return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, declareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7363return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, charsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7381return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, subOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7399return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7417return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, libKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7435return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, libraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7460return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, aliasKeyword, Me.AliasName, Me.ParameterList, Me.AsClause) 7481return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, aliasName, Me.ParameterList, Me.AsClause) 7511return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, parameterList, Me.AsClause) 7542return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DeclareKeyword, Me.CharsetKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.LibKeyword, Me.LibraryName, Me.AliasKeyword, Me.AliasName, Me.ParameterList, asClause) 7632If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse declareKeyword <> Me.DeclareKeyword OrElse charsetKeyword <> Me.CharsetKeyword OrElse subOrFunctionKeyword <> Me.SubOrFunctionKeyword OrElse identifier <> Me.Identifier OrElse libKeyword <> Me.LibKeyword OrElse libraryName IsNot Me.LibraryName OrElse aliasKeyword <> Me.AliasKeyword OrElse aliasName IsNot Me.AliasName OrElse parameterList IsNot Me.ParameterList OrElse asClause IsNot Me.AsClause Then 7699return Update(Me.Kind, attributeLists, Me.Modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause) 7743return Update(Me.Kind, Me.AttributeLists, modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause) 7769return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, delegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause) 7787return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DelegateKeyword, subOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause) 7805return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause) 7827return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, typeParameterList, Me.ParameterList, Me.AsClause) 7862return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, parameterList, Me.AsClause) 7893return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.DelegateKeyword, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, asClause) 7967If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse delegateKeyword <> Me.DelegateKeyword OrElse subOrFunctionKeyword <> Me.SubOrFunctionKeyword OrElse identifier <> Me.Identifier OrElse typeParameterList IsNot Me.TypeParameterList OrElse parameterList IsNot Me.ParameterList OrElse asClause IsNot Me.AsClause Then 8999return Update(Me.Kind, attributeLists, Me.Modifiers, Me.AccessorKeyword, Me.ParameterList) 9043return Update(Me.Kind, Me.AttributeLists, modifiers, Me.AccessorKeyword, Me.ParameterList) 9070return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, accessorKeyword, Me.ParameterList) 9100return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.AccessorKeyword, parameterList) 9163If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse accessorKeyword <> Me.AccessorKeyword OrElse parameterList IsNot Me.ParameterList Then 13695return Update(Me.Kind, labelToken) 13730If kind <> Me.Kind OrElse labelToken <> Me.LabelToken Then 13783return Update(Me.Kind, stopOrEndKeyword) 13818If kind <> Me.Kind OrElse stopOrEndKeyword <> Me.StopOrEndKeyword Then 13878return Update(Me.Kind, exitKeyword, Me.BlockKeyword) 13896return Update(Me.Kind, Me.ExitKeyword, blockKeyword) 13936If kind <> Me.Kind OrElse exitKeyword <> Me.ExitKeyword OrElse blockKeyword <> Me.BlockKeyword Then 13990return Update(Me.Kind, continueKeyword, Me.BlockKeyword) 14009return Update(Me.Kind, Me.ContinueKeyword, blockKeyword) 14049If kind <> Me.Kind OrElse continueKeyword <> Me.ContinueKeyword OrElse blockKeyword <> Me.BlockKeyword Then 16398return Update(Me.Kind, onKeyword, Me.ErrorKeyword, Me.GoToKeyword, Me.Minus, Me.Label) 16416return Update(Me.Kind, Me.OnKeyword, errorKeyword, Me.GoToKeyword, Me.Minus, Me.Label) 16434return Update(Me.Kind, Me.OnKeyword, Me.ErrorKeyword, goToKeyword, Me.Minus, Me.Label) 16458return Update(Me.Kind, Me.OnKeyword, Me.ErrorKeyword, Me.GoToKeyword, minus, Me.Label) 16476return Update(Me.Kind, Me.OnKeyword, Me.ErrorKeyword, Me.GoToKeyword, Me.Minus, label) 16529If kind <> Me.Kind OrElse onKeyword <> Me.OnKeyword OrElse errorKeyword <> Me.ErrorKeyword OrElse goToKeyword <> Me.GoToKeyword OrElse minus <> Me.Minus OrElse label IsNot Me.Label Then 16732return Update(Me.Kind, resumeKeyword, Me.Label) 16754return Update(Me.Kind, Me.ResumeKeyword, label) 16798If kind <> Me.Kind OrElse resumeKeyword <> Me.ResumeKeyword OrElse label IsNot Me.Label Then 17143return Update(Me.Kind, caseStatement, Me.Statements) 17170return Update(Me.Kind, Me.CaseStatement, statements) 17222If kind <> Me.Kind OrElse caseStatement IsNot Me.CaseStatement OrElse statements <> Me.Statements Then 17277return Update(Me.Kind, caseKeyword, Me.Cases) 17299return Update(Me.Kind, Me.CaseKeyword, cases) 17347If kind <> Me.Kind OrElse caseKeyword <> Me.CaseKeyword OrElse cases <> Me.Cases Then 17734return Update(Me.Kind, isKeyword, Me.OperatorToken, Me.Value) 17753return Update(Me.Kind, Me.IsKeyword, operatorToken, Me.Value) 17770return Update(Me.Kind, Me.IsKeyword, Me.OperatorToken, value) 17817If kind <> Me.Kind OrElse isKeyword <> Me.IsKeyword OrElse operatorToken <> Me.OperatorToken OrElse value IsNot Me.Value Then 17988return Update(Me.Kind, doStatement, Me.Statements, Me.LoopStatement) 18010return Update(Me.Kind, Me.DoStatement, statements, Me.LoopStatement) 18032return Update(Me.Kind, Me.DoStatement, Me.Statements, loopStatement) 18087If kind <> Me.Kind OrElse doStatement IsNot Me.DoStatement OrElse statements <> Me.Statements OrElse loopStatement IsNot Me.LoopStatement Then 18141return Update(Me.Kind, doKeyword, Me.WhileOrUntilClause) 18163return Update(Me.Kind, Me.DoKeyword, whileOrUntilClause) 18207If kind <> Me.Kind OrElse doKeyword <> Me.DoKeyword OrElse whileOrUntilClause IsNot Me.WhileOrUntilClause Then 18261return Update(Me.Kind, loopKeyword, Me.WhileOrUntilClause) 18283return Update(Me.Kind, Me.LoopKeyword, whileOrUntilClause) 18327If kind <> Me.Kind OrElse loopKeyword <> Me.LoopKeyword OrElse whileOrUntilClause IsNot Me.WhileOrUntilClause Then 18382return Update(Me.Kind, whileOrUntilKeyword, Me.Condition) 18400return Update(Me.Kind, Me.WhileOrUntilKeyword, condition) 18444If kind <> Me.Kind OrElse whileOrUntilKeyword <> Me.WhileOrUntilKeyword OrElse condition IsNot Me.Condition Then 20098return Update(Me.Kind, left, Me.OperatorToken, Me.Right) 20117return Update(Me.Kind, Me.Left, operatorToken, Me.Right) 20134return Update(Me.Kind, Me.Left, Me.OperatorToken, right) 20185If kind <> Me.Kind OrElse left IsNot Me.Left OrElse operatorToken <> Me.OperatorToken OrElse right IsNot Me.Right Then 20467return Update(Me.Kind, addHandlerOrRemoveHandlerKeyword, Me.EventExpression, Me.CommaToken, Me.DelegateExpression) 20485return Update(Me.Kind, Me.AddHandlerOrRemoveHandlerKeyword, eventExpression, Me.CommaToken, Me.DelegateExpression) 20503return Update(Me.Kind, Me.AddHandlerOrRemoveHandlerKeyword, Me.EventExpression, commaToken, Me.DelegateExpression) 20521return Update(Me.Kind, Me.AddHandlerOrRemoveHandlerKeyword, Me.EventExpression, Me.CommaToken, delegateExpression) 20575If kind <> Me.Kind OrElse addHandlerOrRemoveHandlerKeyword <> Me.AddHandlerOrRemoveHandlerKeyword OrElse eventExpression IsNot Me.EventExpression OrElse commaToken <> Me.CommaToken OrElse delegateExpression IsNot Me.DelegateExpression Then 20885return Update(Me.Kind, reDimKeyword, Me.PreserveKeyword, Me.Clauses) 20911return Update(Me.Kind, Me.ReDimKeyword, preserveKeyword, Me.Clauses) 20933return Update(Me.Kind, Me.ReDimKeyword, Me.PreserveKeyword, clauses) 20984If kind <> Me.Kind OrElse reDimKeyword <> Me.ReDimKeyword OrElse preserveKeyword <> Me.PreserveKeyword OrElse clauses <> Me.Clauses Then 21307return Update(Me.Kind, token) 21342If kind <> Me.Kind OrElse token <> Me.Token Then 22489return Update(Me.Kind, typeOfKeyword, Me.Expression, Me.OperatorToken, Me.Type) 22507return Update(Me.Kind, Me.TypeOfKeyword, expression, Me.OperatorToken, Me.Type) 22525return Update(Me.Kind, Me.TypeOfKeyword, Me.Expression, operatorToken, Me.Type) 22542return Update(Me.Kind, Me.TypeOfKeyword, Me.Expression, Me.OperatorToken, type) 22596If kind <> Me.Kind OrElse typeOfKeyword <> Me.TypeOfKeyword OrElse expression IsNot Me.Expression OrElse operatorToken <> Me.OperatorToken OrElse type IsNot Me.Type Then 22809return Update(Me.Kind, expression, Me.OperatorToken, Me.Name) 22827return Update(Me.Kind, Me.Expression, operatorToken, Me.Name) 22844return Update(Me.Kind, Me.Expression, Me.OperatorToken, name) 22895If kind <> Me.Kind OrElse expression IsNot Me.Expression OrElse operatorToken <> Me.OperatorToken OrElse name IsNot Me.Name Then 22954return Update(Me.Kind, base, Me.Token1, Me.Token2, Me.Token3, Me.Name) 22971return Update(Me.Kind, Me.Base, token1, Me.Token2, Me.Token3, Me.Name) 22995return Update(Me.Kind, Me.Base, Me.Token1, token2, Me.Token3, Me.Name) 23019return Update(Me.Kind, Me.Base, Me.Token1, Me.Token2, token3, Me.Name) 23036return Update(Me.Kind, Me.Base, Me.Token1, Me.Token2, Me.Token3, name) 23093If kind <> Me.Kind OrElse base IsNot Me.Base OrElse token1 <> Me.Token1 OrElse token2 <> Me.Token2 OrElse token3 <> Me.Token3 OrElse name IsNot Me.Name Then 25212return Update(Me.Kind, left, Me.OperatorToken, Me.Right) 25227return Update(Me.Kind, Me.Left, operatorToken, Me.Right) 25244return Update(Me.Kind, Me.Left, Me.OperatorToken, right) 25295If kind <> Me.Kind OrElse left IsNot Me.Left OrElse operatorToken <> Me.OperatorToken OrElse right IsNot Me.Right Then 25350return Update(Me.Kind, operatorToken, Me.Operand) 25368return Update(Me.Kind, Me.OperatorToken, operand) 25412If kind <> Me.Kind OrElse operatorToken <> Me.OperatorToken OrElse operand IsNot Me.Operand Then 25963return Update(Me.Kind, subOrFunctionHeader, Me.Body) 25981return Update(Me.Kind, Me.SubOrFunctionHeader, body) 26029If kind <> Me.Kind OrElse subOrFunctionHeader IsNot Me.SubOrFunctionHeader OrElse body IsNot Me.Body Then 26092return Update(Me.Kind, subOrFunctionHeader, Me.Statements, Me.EndSubOrFunctionStatement) 26116return Update(Me.Kind, Me.SubOrFunctionHeader, statements, Me.EndSubOrFunctionStatement) 26139return Update(Me.Kind, Me.SubOrFunctionHeader, Me.Statements, endSubOrFunctionStatement) 26194If kind <> Me.Kind OrElse subOrFunctionHeader IsNot Me.SubOrFunctionHeader OrElse statements <> Me.Statements OrElse endSubOrFunctionStatement IsNot Me.EndSubOrFunctionStatement Then 26260return Update(Me.Kind, attributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.ParameterList, Me.AsClause) 26304return Update(Me.Kind, Me.AttributeLists, modifiers, Me.SubOrFunctionKeyword, Me.ParameterList, Me.AsClause) 26330return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, subOrFunctionKeyword, Me.ParameterList, Me.AsClause) 26360return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, parameterList, Me.AsClause) 26391return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.ParameterList, asClause) 26452If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse subOrFunctionKeyword <> Me.SubOrFunctionKeyword OrElse parameterList IsNot Me.ParameterList OrElse asClause IsNot Me.AsClause Then 28694return Update(Me.Kind, skipOrTakeKeyword, Me.WhileKeyword, Me.Condition) 28712return Update(Me.Kind, Me.SkipOrTakeKeyword, whileKeyword, Me.Condition) 28730return Update(Me.Kind, Me.SkipOrTakeKeyword, Me.WhileKeyword, condition) 28777If kind <> Me.Kind OrElse skipOrTakeKeyword <> Me.SkipOrTakeKeyword OrElse whileKeyword <> Me.WhileKeyword OrElse condition IsNot Me.Condition Then 28830return Update(Me.Kind, skipOrTakeKeyword, Me.Count) 28847return Update(Me.Kind, Me.SkipOrTakeKeyword, count) 28891If kind <> Me.Kind OrElse skipOrTakeKeyword <> Me.SkipOrTakeKeyword OrElse count IsNot Me.Count Then 30174return Update(Me.Kind, expression, Me.AscendingOrDescendingKeyword) 30200return Update(Me.Kind, Me.Expression, ascendingOrDescendingKeyword) 30244If kind <> Me.Kind OrElse expression IsNot Me.Expression OrElse ascendingOrDescendingKeyword <> Me.AscendingOrDescendingKeyword Then 36295return Update(Me.Kind, hashToken, Me.ElseKeyword, Me.IfOrElseIfKeyword, Me.Condition, Me.ThenKeyword) 36317return Update(Me.Kind, Me.HashToken, elseKeyword, Me.IfOrElseIfKeyword, Me.Condition, Me.ThenKeyword) 36332return Update(Me.Kind, Me.HashToken, Me.ElseKeyword, ifOrElseIfKeyword, Me.Condition, Me.ThenKeyword) 36347return Update(Me.Kind, Me.HashToken, Me.ElseKeyword, Me.IfOrElseIfKeyword, condition, Me.ThenKeyword) 36369return Update(Me.Kind, Me.HashToken, Me.ElseKeyword, Me.IfOrElseIfKeyword, Me.Condition, thenKeyword) 36422If kind <> Me.Kind OrElse hashToken <> Me.HashToken OrElse elseKeyword <> Me.ElseKeyword OrElse ifOrElseIfKeyword <> Me.IfOrElseIfKeyword OrElse condition IsNot Me.Condition OrElse thenKeyword <> Me.ThenKeyword Then
Symbols\Attributes\AttributeData.vb (1)
94attributeSyntax.ArgumentList.Arguments.Where(Function(arg) arg.Kind = SyntaxKind.SimpleArgument AndAlso Not arg.IsNamed).Count,
Symbols\LabelSymbol.vb (3)
169Debug.Assert(resumeStmt.Kind = SyntaxKind.OnErrorResumeNextStatement OrElse 170resumeStmt.Kind = SyntaxKind.ResumeNextStatement OrElse 171resumeStmt.Kind = SyntaxKind.ResumeStatement)
Symbols\NamespaceSymbol.vb (1)
410Select Case name.Kind
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
182Dim nodeMembers = If(node.Kind = SyntaxKind.CompilationUnit, DirectCast(node, CompilationUnitSyntax).Members, DirectCast(node, NamespaceBlockSyntax).Members)
Symbols\Source\QuickAttributeChecker.vb (1)
114Select Case node.Kind
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
109If syntax.Kind = SyntaxKind.DelegateFunctionStatement Then
Symbols\Source\SourceEventSymbol.vb (2)
349Select Case blockSyntax.Kind 360Throw ExceptionUtilities.UnexpectedValue(blockSyntax.Kind)
Symbols\Source\SourceFile.vb (1)
115If clause.Kind = SyntaxKind.SimpleImportsClause Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (9)
1444Dim childDeclKind As DeclarationKind = DeclarationTreeBuilder.GetKind(declarationSyntax.Kind) 1457Dim childDeclKind As DeclarationKind = DeclarationTreeBuilder.GetKind(declarationSyntax.Kind) 2536Select Case memberSyntax.Kind 2614If memberSyntax.Kind = SyntaxKind.EmptyStatement OrElse TypeOf memberSyntax Is ExecutableStatementSyntax Then 2645If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then 2687Select Case methodBaseSyntax.Kind 2697Throw ExceptionUtilities.UnexpectedValue(methodBaseSyntax.Kind) 2829If handlesClause.EventContainer.Kind = SyntaxKind.KeywordEventContainer Then 2843If handlesClause.EventContainer.Kind <> SyntaxKind.MyBaseKeyword Then
Symbols\Source\SourceMemberFieldSymbol.vb (8)
155If (asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse (DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.Kind <> SyntaxKind.AnonymousObjectCreationExpression)) Then 158If asClauseOpt.Kind = SyntaxKind.AsNewClause Then 166If (asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause AndAlso 167(DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.Kind = SyntaxKind.AnonymousObjectCreationExpression)) Then 505If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then 523ElseIf asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then 552(simpleAsClauseSyntax.Type.Kind = SyntaxKind.PredefinedType AndAlso DirectCast(simpleAsClauseSyntax.Type, PredefinedTypeSyntax).Keyword.Kind = SyntaxKind.ObjectKeyword) Then
Symbols\Source\SourceMemberMethodSymbol.vb (3)
325If Me.DeclarationSyntax.Kind = SyntaxKind.FunctionStatement AndAlso CaseInsensitiveComparison.Equals(Me.Name, ident.ValueText) Then 611If Me.ContainingType.IsModuleType AndAlso singleHandleClause.EventContainer.Kind <> SyntaxKind.WithEventsEventContainer Then 616Dim eventContainerKind = singleHandleClause.EventContainer.Kind
Symbols\Source\SourceMethodSymbol.vb (19)
83If syntax.Kind = SyntaxKind.SubStatement Then 136If methodSyntax.Kind = SyntaxKind.SubStatement OrElse methodSyntax.Kind = SyntaxKind.FunctionStatement Then 254If syntax.Kind = SyntaxKind.DeclareSubStatement Then 861Select Case node.Kind 881Throw ExceptionUtilities.UnexpectedValue(node.Kind) 910Select Case node.Kind 1031If node.Parent.Kind = SyntaxKind.ModuleBlock OrElse 1032(node.Parent.Parent IsNot Nothing AndAlso node.Parent.Parent.Kind = SyntaxKind.ModuleBlock) Then 1040Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1051Select Case syntax.Kind 1068Dim accessor = If(syntax.Kind = SyntaxKind.GetAccessorStatement, propertySymbol.GetMethod, propertySymbol.SetMethod) 1100Select Case syntax.Kind 2050Select Case decl.Kind 2201Select Case decl.Kind 2211Throw ExceptionUtilities.UnexpectedValue(decl.Kind) 2225Select Case methodStatement.Kind 2233Throw ExceptionUtilities.UnexpectedValue(methodStatement.Kind) 2264Select Case methodStatement.Kind
Symbols\Source\SourceModuleSymbol.vb (1)
335If globalImport.Clause.Kind = SyntaxKind.SimpleImportsClause Then
Symbols\Source\SourceNamedTypeSymbol.vb (17)
129Select Case node.Kind 140Throw ExceptionUtilities.UnexpectedValue(node.Kind) 410Select Case node.Kind 452Throw ExceptionUtilities.UnexpectedValue(node.Kind) 651Select Case node.Kind 660Throw ExceptionUtilities.UnexpectedValue(node.Kind) 722If member.Kind <> SyntaxKind.EnumMemberDeclaration Then 800Select Case syntaxNode.Kind 941Select Case syntax.Kind 1004Select Case syntaxNode.Kind 1033Select Case syntaxNode.Kind 1086If baseDeclaration.Kind = SyntaxKind.InheritsStatement Then 1440location = If(syntax.Kind = SyntaxKind.CompilationUnit OrElse syntax.Kind = SyntaxKind.NamespaceBlock, 1702Select Case syntaxNode.Kind 1720Select Case syntaxNode.Kind 1806If globalImport.Clause.Kind = SyntaxKind.SimpleImportsClause Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (3)
157Select Case argumentSyntax.Kind 165Throw ExceptionUtilities.UnexpectedValue(argumentSyntax.Kind) 323Select Case memberSyntax.Kind
Symbols\Source\SourceNamespaceSymbol.vb (3)
478Select Case node.Kind 488Throw ExceptionUtilities.UnexpectedValue(node.Kind) 537If ancestorNode.Kind = SyntaxKind.NamespaceBlock Then
Symbols\Source\SourcePropertySymbol.vb (6)
113Dim accessorKind = accessor.BlockStatement.Kind 309If syntax.Kind = SyntaxKind.PropertyStatement Then 312Debug.Assert(syntax.Kind = SyntaxKind.ModifiedIdentifier) 354asClause.Kind = SyntaxKind.AsNewClause AndAlso 355(DirectCast(asClause, AsNewClauseSyntax).NewExpression.Kind = SyntaxKind.AnonymousObjectCreationExpression) Then 814If decl.Kind = SyntaxKind.PropertyStatement Then
Symbols\Source\SourceSymbolHelpers.vb (2)
14(asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse 15(DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.Kind <> SyntaxKind.AnonymousObjectCreationExpression)) Then
Syntax\ArgumentSyntax.vb (1)
25Return Kind = SyntaxKind.OmittedArgument
Syntax\DirectiveTriviaSyntax.vb (16)
38Select Case d.Kind 41Select Case d.Kind 51Select Case d.Kind 61If d.Kind = SyntaxKind.EndIfDirectiveTrivia Then 70If d.Kind = SyntaxKind.EndRegionDirectiveTrivia Then 87Select Case d.Kind 89While d IsNot Nothing AndAlso d.Kind <> SyntaxKind.EndIfDirectiveTrivia 95While d IsNot Nothing AndAlso d.Kind <> SyntaxKind.EndRegionDirectiveTrivia 111Select Case d.Kind 114Select Case d.Kind 124If d.Kind = SyntaxKind.IfDirectiveTrivia Then 133Select Case d.Kind 143If d.Kind = SyntaxKind.RegionDirectiveTrivia Then 160Select Case d.Kind 162While d IsNot Nothing AndAlso d.Kind <> SyntaxKind.IfDirectiveTrivia 168While d IsNot Nothing AndAlso d.Kind <> SyntaxKind.RegionDirectiveTrivia
Syntax\LambdaUtilities.vb (3)
271Select Case clause.Kind 298Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 439Select Case innerClause.Kind
Syntax\SyntaxExtensions.vb (7)
53Select Case newExpressionSyntax.Kind 61Throw ExceptionUtilities.UnexpectedValue(newExpressionSyntax.Kind) 70Select Case asClauseSyntax.Kind 76Throw ExceptionUtilities.UnexpectedValue(asClauseSyntax.Kind) 85Select Case asClauseSyntax.Kind 91Throw ExceptionUtilities.UnexpectedValue(asClauseSyntax.Kind) 104Return If(simpleName.Kind = SyntaxKind.IdentifierName,
Syntax\SyntaxFactory.vb (4)
139Select Case node.Kind 141Select Case parent.Kind 153Select Case parent.Kind 161If parent.Kind = SyntaxKind.XmlElement Then
Syntax\SyntaxFacts.vb (5)
59Return parent IsNot Nothing AndAlso parent.Kind = SyntaxKind.AddressOfExpression 81Select Case parent.Kind 110If parentQualName.Parent IsNot Nothing AndAlso parentQualName.Parent.Kind = SyntaxKind.ImplementsClause Then 174If Not (parentQualName.Parent IsNot Nothing AndAlso parentQualName.Parent.Kind = SyntaxKind.ImplementsClause) Then 687Select Case parent3.Kind
Syntax\SyntaxNodeExtensions.vb (8)
36Select Case node.Kind 107Select Case input.Kind 131If input.Kind = SyntaxKind.SimpleMemberAccessExpression Then 136Select Case receiver.Kind 176Select Case target.Kind 208Select Case parent.Kind 255Select Case access.Kind 306Return Not arguments.Any(Function(arg) Not (arg.Kind = kind AndAlso DirectCast(arg, IdentifierNameSyntax).IsMissing))
Syntax\SyntaxNodePartials.vb (3)
84Debug.Assert(Kind = SyntaxKind.SingleLineSubLambdaExpression, "Only SingleLineSubLambdas have statements.") 96Select Case Me.Kind 127Throw ExceptionUtilities.UnexpectedValue(Me.Kind)
Syntax\SyntaxNodeRemover.vb (1)
334Select Case directive.Kind
Syntax\SyntaxNormalizer.vb (8)
768If node.Members(0).Kind <> SyntaxKind.NamespaceBlock Then 848If node.Kind = SyntaxKind.InterfaceBlock Then 1227(node.Parent.Kind <> SyntaxKind.Parameter AndAlso node.Parent.Kind <> SyntaxKind.SimpleAsClause) Then 1403(node.Parent.Kind = SyntaxKind.SubBlock OrElse node.Parent.Kind = SyntaxKind.FunctionBlock) Then 1435If node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.EventBlock Then 1446If node.Parent IsNot Nothing AndAlso node.Parent.Kind = SyntaxKind.PropertyBlock Then
Syntax\VisualBasicLineDirectiveMap.vb (4)
24Return directive.Kind = SyntaxKind.ExternalSourceDirectiveTrivia OrElse directive.Kind = SyntaxKind.EndExternalSourceDirectiveTrivia 43If directive.Kind = SyntaxKind.ExternalSourceDirectiveTrivia Then 92ElseIf directive.Kind = SyntaxKind.EndExternalSourceDirectiveTrivia Then
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
111Select Case directive.Kind
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
57_hasCompilationUnitRoot = (syntaxRoot.Kind = SyntaxKind.CompilationUnit)
VisualBasicDeclarationComputer.vb (3)
67While (name.Kind() = SyntaxKind.QualifiedName) 201Select Case methodBase.Kind 232Throw ExceptionUtilities.UnexpectedValue(methodBase.Kind)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (67)
CastAnalyzer.vb (2)
211If _castExpressionNode.Kind = SyntaxKind.CollectionInitializer Then 293(_castExpressionNode.Kind = SyntaxKind.CollectionInitializer AndAlso expressionToOuterType.IsWidening AndAlso speculatedExpressionOuterType.IsArrayType())) AndAlso
DirectiveSyntaxExtensions.vb (4)
91Function(d) d.Kind = SyntaxKind.RegionDirectiveTrivia OrElse d.Kind = SyntaxKind.IfDirectiveTrivia) 105If directive.Kind = SyntaxKind.ElseIfDirectiveTrivia OrElse directive.Kind = SyntaxKind.ElseDirectiveTrivia Then
DirectiveWalker.vb (4)
81If poppedDirective.Kind = SyntaxKind.IfDirectiveTrivia Then 94Debug.Assert(ifDirective.Kind = SyntaxKind.IfDirectiveTrivia OrElse 95ifDirective.Kind = SyntaxKind.ElseIfDirectiveTrivia OrElse 96ifDirective.Kind = SyntaxKind.ElseDirectiveTrivia)
ElasticTriviaFormattingRule.vb (7)
283If previousStatement.Kind = SyntaxKind.EndSetStatement OrElse 284previousStatement.Kind = SyntaxKind.EndGetStatement OrElse 285previousStatement.Kind = SyntaxKind.EndAddHandlerStatement OrElse 286previousStatement.Kind = SyntaxKind.EndRemoveHandlerStatement OrElse 287previousStatement.Kind = SyntaxKind.EndRaiseEventStatement Then 294currentStatement.Kind = SyntaxKind.ElseIfStatement OrElse 295currentStatement.Kind = SyntaxKind.ElseStatement Then
ExpressionSyntaxExtensions.vb (5)
131If unary IsNot Nothing AndAlso unary.Kind() = SyntaxKind.AddressOfExpression Then 158unaryParent.Kind() <> SyntaxKind.AddressOfExpression AndAlso 177collectionInitializer.Initializers(0).Kind = SyntaxKind.CollectionInitializer 221Select Case expression.Kind 422Select Case expression.Kind
FormattingHelpers.vb (3)
275Return memberAccess.Kind = SyntaxKind.DictionaryAccessExpression AndAlso memberAccess.OperatorToken = token 288Return memberAccess.Kind = SyntaxKind.DictionaryAccessExpression AndAlso memberAccess.OperatorToken = token 351If memberAccess?.Kind = SyntaxKind.DictionaryAccessExpression Then
NameSyntaxComparer.vb (1)
97Select Case name.Kind
ParenthesizedExpressionSyntaxExtensions.vb (5)
397If IsAssociative(parentBinaryExpression.Kind) AndAlso 398expression.Kind = parentExpression.Kind Then 429lastStatement IsNot Nothing AndAlso lastStatement.Kind = SyntaxKind.ReDimStatement) Then 534If expression.Kind = SyntaxKind.DictionaryAccessExpression AndAlso
SemanticModelExtensions.vb (1)
210If current.Kind = SyntaxKind.IdentifierName Then
SpeculationAnalyzer.vb (4)
253Select Case originalLambda.Kind 274Throw ExceptionUtilities.UnexpectedValue(originalLambda.Kind) 457Select Case expression.Kind 492Select Case expression.Kind
StatementSyntaxExtensions.vb (13)
16Select Case member.Kind 76Select Case member.Kind 306Select Case member.Kind 356Select Case member.Kind 396Select Case member.Kind 423Select Case member.Kind 465Select Case member.Kind 509Select Case statement.Kind 540Select Case statement.Kind 569Select Case statement.Kind 599Select Case statement.Kind 629Select Case statement.Kind 657Select Case statement.Kind
SyntaxNodeExtensions.vb (2)
641If node.Kind = SyntaxKind.SingleLineSubLambdaExpression Then 991If importsClause.Kind = SyntaxKind.SimpleImportsClause Then
TypeSyntaxComparer.vb (1)
50Select Case type.Kind
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
40If member.Kind() = SyntaxKind.NamespaceBlock Then
VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (2)
25Select Case node.Kind 31Throw ExceptionUtilities.UnexpectedValue(node.Kind)
VisualBasicSyntaxFacts.vb (5)
619Return node.GetAncestors(Of StatementSyntax).Any(Function(s) s.Kind = SyntaxKind.ConstructorBlock) 982If nameSyntax.Kind() = SyntaxKind.GlobalName Then 990If qualified.Left.Kind() = SyntaxKind.GlobalName Then 1560If importsClause.Kind = SyntaxKind.SimpleImportsClause Then 1581If importsClause.Kind = SyntaxKind.SimpleImportsClause Then
VisualBasicUseAutoPropertyAnalyzer.vb (4)
71Return memberAccessExpression.Expression.Kind() = SyntaxKind.MeExpression AndAlso 72memberAccessExpression.Name.Kind() = SyntaxKind.IdentifierName 94If statement.Kind() = SyntaxKind.ReturnStatement Then 119If assignmentStatement.Right.Kind() = SyntaxKind.IdentifierName Then
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (3)
46If binary.Right.Kind() <> SyntaxKind.NothingLiteralExpression Then 50If binary.Kind() <> SyntaxKind.IsExpression AndAlso binary.Kind() <> SyntaxKind.EqualsExpression Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (9)
ArgumentFixer.vb (1)
18Select Case oldArgument.Kind
ExpressionSyntaxExtensions.vb (5)
185Return expression.Kind = SyntaxKind.MeExpression OrElse 186expression.Kind = SyntaxKind.MyBaseExpression OrElse 187expression.Kind = SyntaxKind.MyClassExpression 283If simplifiedNode.Kind = SyntaxKind.IdentifierName Then 285ElseIf simplifiedNode.Kind = SyntaxKind.QualifiedName Then
SyntaxTreeExtensions.vb (1)
930If singleLineLambda IsNot Nothing AndAlso singleLineLambda.Kind = SyntaxKind.SingleLineFunctionLambdaExpression Then
TypeBlockSyntaxExtensions.vb (1)
92Select Case destinationType.Kind
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
839Select Case unaryExpressionSyntax.Kind
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (8)
EndConstructGeneration\EndConstructStatementVisitor.vb (2)
104If methodBlock.BlockStatement.Kind = SyntaxKind.SubNewStatement Then 277Dim needsEnd = Not matchingDirectives.Any(Function(d) d.Kind = SyntaxKind.EndIfDirectiveTrivia)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
80If statement.Kind <> SyntaxKind.EmptyStatement OrElse statement.HasTrailingTrivia Then
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (2)
32Dim endStatementKind = If(originalNode.Kind = SyntaxKind.SingleLineSubLambdaExpression, SyntaxKind.EndSubStatement, SyntaxKind.EndFunctionStatement) 38If node.Kind = SyntaxKind.SingleLineSubLambdaExpression Then
EndConstructGeneration\EndConstructStatementVisitor_Properties.vb (3)
78If node.Kind = SyntaxKind.GetAccessorStatement Then 142If accessor IsNot accessorToIgnore And accessor.Kind = SyntaxKind.GetAccessorBlock Then 174If accessor IsNot accessorToIgnore And accessor.Kind = SyntaxKind.SetAccessorBlock Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
SymbolId\SymbolKeyTestBase.vb (1)
313Dim kind = expr.Kind
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
CodeGen\CodeGenTuples.vb (2)
20823Assert.Equal(SyntaxKind.TypedTupleElement, type.Elements.First().Kind()) 20825Assert.Equal(SyntaxKind.NamedTupleElement, type.Elements.Last().Kind())
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.vb (2)
145Dim bindAsExpression = syntax.Kind = SyntaxKind.PrintStatement 759If Not TryParseDottedName([alias], aliasNameSyntax) OrElse aliasNameSyntax.Kind <> SyntaxKind.IdentifierName Then
EvaluationContext.vb (1)
364diagnostics.Add(New SimpleMessageDiagnostic(String.Format(Resources.InvalidDebuggerStatement, syntax.Kind)))
SyntaxHelpers.vb (1)
214Select Case syntax.Kind
Microsoft.CodeAnalysis.VisualBasic.Features (81)
ArgumentFixer.vb (1)
18Select Case oldArgument.Kind
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
92Select Case forBlock.Kind()
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (2)
175Dim getter = updatedProperty.Accessors.FirstOrDefault(Function(a) a.Kind = SyntaxKind.GetAccessorBlock) 180Dim setter = updatedProperty.Accessors.FirstOrDefault(Function(a) a.Kind = SyntaxKind.SetAccessorBlock)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (3)
65If node.Kind = SyntaxKind.ImportsStatement Then 74If node.Kind = SyntaxKind.OptionStatement Then 81If node.Kind = SyntaxKind.AttributesStatement Then
Completion\KeywordRecommenders\Declarations\ParameterModifiersKeywordRecommender.vb (4)
37methodDeclaration.Kind <> SyntaxKind.PropertyStatement AndAlso 38methodDeclaration.Kind <> SyntaxKind.OperatorStatement 43methodDeclaration.Kind <> SyntaxKind.EventStatement AndAlso 44methodDeclaration.Kind <> SyntaxKind.OperatorStatement
Completion\KeywordRecommenders\Expressions\BinaryOperatorKeywordRecommender.vb (1)
105If u.Kind = SyntaxKind.AddressOfExpression Then
Completion\KeywordRecommenders\PreprocessorDirectives\EndRegionDirectiveKeywordRecommender.vb (1)
39If directive.Kind = SyntaxKind.RegionDirectiveTrivia AndAlso directive.Span.End <= context.Position Then
Completion\KeywordRecommenders\PreprocessorDirectives\PreprocessorHelpers.vb (5)
62If node.Kind = SyntaxKind.IfDirectiveTrivia Then 63_kindStack.Push(node.Kind) 64ElseIf node.Kind = SyntaxKind.ElseIfDirectiveTrivia Then 70_kindStack.Push(node.Kind) 79_kindStack.Push(node.Kind)
Completion\KeywordRecommenders\RecommendationHelpers.vb (2)
34Select Case asNewClause.NewExpression.Kind 51Throw ExceptionUtilities.UnexpectedValue(asNewClause.NewExpression.Kind)
Completion\KeywordRecommenders\Statements\CaseKeywordRecommender.vb (1)
40Dim caseElseBlock = selectStatement.CaseBlocks.FirstOrDefault(Function(caseBlock) caseBlock.CaseStatement.Kind = SyntaxKind.CaseElseStatement)
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (1)
39Not selectBlock.CaseBlocks.Any(Function(cb) cb.CaseStatement.Kind = SyntaxKind.CaseElseStatement) Then
Completion\KeywordRecommenders\Statements\IsKeywordRecommender.vb (1)
32Dim caseElseBlock = selectBlock.CaseBlocks.FirstOrDefault(Function(caseBlock) caseBlock.CaseStatement.Kind = SyntaxKind.CaseElseStatement)
Completion\KeywordRecommenders\Statements\LoopKeywordRecommender.vb (1)
28If doBlock.Kind <> SyntaxKind.SimpleDoLoopBlock Then
ConvertForToForEach\VisualBasicConvertForToForEachCodeRefactoringProvider.vb (1)
61If subtraction?.Kind() = SyntaxKind.SubtractExpression Then
Debugging\LocationInfoGetter.vb (1)
25If memberDeclaration?.Kind = SyntaxKind.FieldDeclaration Then
Debugging\ProximityExpressionsGetter.Worker.vb (2)
57Select Case (previousStatement.Kind) 147If typeBlock IsNot Nothing AndAlso typeBlock.Kind = SyntaxKind.ModuleBlock Then
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (2)
102ElseIf expression.Kind = SyntaxKind.SimpleMemberAccessExpression Then 106If (symbol.IsOverrides Or symbol.IsOverridable) And memberAccess.Expression.Kind = SyntaxKind.MyClassExpression Then
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (2)
35Select Case member.Kind 83Select Case member.Kind
EditAndContinue\SyntaxUtilities.vb (2)
58Select Case node.Kind 64Throw ExceptionUtilities.UnexpectedValue(node.Kind)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (5)
243Select Case argument.Kind 255Throw ExceptionUtilities.UnexpectedValue(argument.Kind) 1768Select Case header.Kind 1785Select Case header.Kind 1818Throw ExceptionUtilities.UnexpectedValue(header.Kind)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
36typeDeclaration.Kind = SyntaxKind.ModuleStatement Then
ExtractMethod\Extensions.vb (1)
193Select Case directive.Kind
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (2)
83If expression.Kind <> SyntaxKind.InvocationExpression AndAlso 84expression.Kind <> SyntaxKind.SimpleMemberAccessExpression Then
ExtractMethod\VisualBasicSelectionResult.vb (2)
182If expression.Kind = SyntaxKind.AddressOfExpression Then 301Return types.Any(Function(t) t.BlockStatement.Kind = SyntaxKind.ModuleStatement)
ExtractMethod\VisualBasicSelectionValidator.vb (2)
631If TryCast(container, MethodBlockBaseSyntax)?.BlockStatement.Kind = SyntaxKind.SubStatement Then 633ElseIf TryCast(container, MultiLineLambdaExpressionSyntax)?.SubOrFunctionHeader.Kind = SyntaxKind.SubLambdaHeader Then
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
159Return Me.State.SimpleNameOpt.Kind = SyntaxKind.IdentifierName
GenerateMember\GenerateVariable\VisualBasicGenerateVariableService.vb (1)
78If memberAccess.Kind = SyntaxKind.DictionaryAccessExpression Then
Highlighting\KeywordHighlighters\EnumBlockHighlighter.vb (1)
25If endBlockStatement.Kind <> SyntaxKind.EndEnumStatement Then
Highlighting\KeywordHighlighters\SelectBlockHighlighter.vb (1)
42If caseBlock.Kind = SyntaxKind.CaseElseBlock Then
Highlighting\KeywordHighlightingHelpers.vb (2)
61Return continueStatement.Kind <> expectedKind 71Return exitStatement.Kind <> expectedKind
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
208MakeFieldModifiers(matches, isConstant, inScript:=oldTypeDeclaration Is Nothing, inModule:=oldTypeDeclaration.Kind = SyntaxKind.ModuleBlock),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
63Where(Function(lambda) lambda.Kind = SyntaxKind.SingleLineFunctionLambdaExpression).
LambdaUtilities.vb (1)
439Select Case innerClause.Kind
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (4)
99Not (member1.Kind = SyntaxKind.ImportsStatement AndAlso TypeOf member2 Is TypeStatementSyntax) Then 104If member1.Kind = member2.Kind Then 123Select Case node.Kind
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.vb (3)
109If x.Kind = SyntaxKind.FieldDeclaration Then 118Select Case x.Kind 146Select Case x.Kind
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (2)
194Dim name = If(expression.Kind() = SyntaxKind.SimpleMemberAccessExpression, 196If(expression.Kind() = SyntaxKind.IdentifierName, DirectCast(expression, IdentifierNameSyntax), Nothing))
SignatureHelp\AddRemoveHandlerSignatureHelpProvider.vb (1)
23Select Case node.Kind
SignatureHelp\CastExpressionSignatureHelpProvider.vb (1)
23Select Case node.Kind
SpellCheck\VisualBasicSpellCheckCodeFixProvider.vb (1)
66Return nameNode.Kind() = SyntaxKind.GenericName
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
40If member.Kind() = SyntaxKind.NamespaceBlock Then
VisualBasicDeclarationComputer.vb (3)
67While (name.Kind() = SyntaxKind.QualifiedName) 201Select Case methodBase.Kind 232Throw ExceptionUtilities.UnexpectedValue(methodBase.Kind)
VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (2)
25Select Case node.Kind 31Throw ExceptionUtilities.UnexpectedValue(node.Kind)
VisualBasicUseAutoPropertyAnalyzer.vb (4)
71Return memberAccessExpression.Expression.Kind() = SyntaxKind.MeExpression AndAlso 72memberAccessExpression.Name.Kind() = SyntaxKind.IdentifierName 94If statement.Kind() = SyntaxKind.ReturnStatement Then 119If assignmentStatement.Right.Kind() = SyntaxKind.IdentifierName Then
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (3)
46If binary.Right.Kind() <> SyntaxKind.NothingLiteralExpression Then 50If binary.Kind() <> SyntaxKind.IsExpression AndAlso binary.Kind() <> SyntaxKind.EqualsExpression Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (38)
Binding\MethodBodyBindingTests.vb (5)
332Assert.Equal(SyntaxKind.CatchStatement, node1.Parent.Kind) 333Assert.Equal(SyntaxKind.CatchStatement, node2.Parent.Kind) 387Assert.Equal(SyntaxKind.CatchStatement, node1.Parent.Kind) 388Assert.Equal(SyntaxKind.CatchStatement, node2.Parent.Kind) 389Assert.Equal(SyntaxKind.CatchStatement, node3.Parent.Kind)
Compilation\SemanticModelAPITests.vb (3)
499Assert.Equal(SyntaxKind.QualifiedName, crefSyntax.Name.Kind()) 1742If speculatedTypeSyntax.Kind = SyntaxKind.QualifiedName Then 3636Where x.Kind = SyntaxKind.StringLiteralExpression AndAlso
DeclaringSyntaxNodeTests.vb (1)
135Dim nodes = CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(comp, sym, 1, node.Kind)
FlowAnalysis\RegionAnalysisTests.vb (4)
786Assert.Equal(SyntaxKind.ExpressionStatement, startNodes(2).Kind) 941Assert.Equal(SyntaxKind.DictionaryAccessExpression, startNodes(2).Kind) 971Assert.Equal(SyntaxKind.NumericLiteralExpression, startNodes(0).Kind) 999Assert.Equal(SyntaxKind.NumericLiteralExpression, startNodes(0).Kind)
Semantics\GetSemanticInfoTests.vb (25)
800Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 837Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 906Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 943Assert.Equal(SyntaxKind.MeExpression, expressionSyntax.Kind) 975Assert.Equal(SyntaxKind.IdentifierLabel, expressionSyntax.Kind) 983Assert.Equal(SyntaxKind.NumericLabel, expressionSyntax.Kind) 991Assert.Equal(SyntaxKind.LabelStatement, expressionSyntax2.Kind) 1020Assert.Equal(SyntaxKind.LabelStatement, expressionSyntax.Kind) 1047Assert.Equal(SyntaxKind.LabelStatement, expressionSyntax.Kind) 1137Assert.Equal(SyntaxKind.PredefinedType, expressionSyntax.Kind) 1145Assert.Equal(SyntaxKind.ArrayType, expressionSyntax.Kind) 1153Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 1161Assert.Equal(SyntaxKind.ArrayType, expressionSyntax.Kind) 1169Assert.Equal(SyntaxKind.ArrayType, expressionSyntax.Kind) 1177Assert.Equal(SyntaxKind.QualifiedName, expressionSyntax.Kind) 1185Assert.Equal(SyntaxKind.ArrayType, expressionSyntax.Kind) 1193Assert.Equal(SyntaxKind.GenericName, expressionSyntax.Kind) 1201Assert.Equal(SyntaxKind.GenericName, expressionSyntax.Kind) 1209Assert.Equal(SyntaxKind.QualifiedName, expressionSyntax.Kind) 1217Assert.Equal(SyntaxKind.ArrayType, expressionSyntax.Kind) 1225Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 1234Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 1245Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 4523Assert.Equal(SyntaxKind.InvocationExpression, speculativeSyntax.Kind) 4570Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, speculativeSyntax.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
DocumentationComments\DocCommentTests.vb (1)
11980While node IsNot Nothing AndAlso node.Kind <> SyntaxKind.CrefReference
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (2)
2404Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, node2.Kind) 2415Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, node2.Kind)
SymbolsTests\Metadata\MetadataMemberTests.vb (5)
632Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 641Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 650Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 659Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind) 668Assert.Equal(SyntaxKind.IdentifierName, expressionSyntax.Kind)
SymbolsTests\Source\OperatorsTests.vb (1)
251If node.Kind = SyntaxKind.OperatorStatement Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (224)
Parser\ParseAsyncTests.vb (33)
108Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM.Kind) 109Assert.Equal(SyntaxKind.AwaitExpression, CType(firstStatementOfM, ExpressionStatementSyntax).Expression.Kind) 113Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM2.Kind) 114Assert.Equal(SyntaxKind.InvocationExpression, CType(firstStatementOfM2, ExpressionStatementSyntax).Expression.Kind) 118Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM.Kind) 119Assert.Equal(SyntaxKind.AwaitExpression, CType(firstStatementOfM, ExpressionStatementSyntax).Expression.Kind) 123Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM2.Kind) 124Assert.Equal(SyntaxKind.InvocationExpression, CType(firstStatementOfM2, ExpressionStatementSyntax).Expression.Kind) 143Assert.Equal(SyntaxKind.AddExpression, expression.Kind) 145Assert.Equal(SyntaxKind.MultiplyExpression, expression.Left.Kind) 149Assert.Equal(SyntaxKind.AwaitExpression, left.Left.Kind) 151Assert.Equal(SyntaxKind.ExponentiateExpression, left.Right.Kind) 155Assert.Equal(SyntaxKind.AwaitExpression, right.Kind) 219Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM.Kind) 220Assert.Equal(SyntaxKind.AwaitExpression, CType(firstStatementOfM, ExpressionStatementSyntax).Expression.Kind) 224Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM2.Kind) 225Assert.Equal(SyntaxKind.InvocationExpression, CType(firstStatementOfM2, ExpressionStatementSyntax).Expression.Kind) 229Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM.Kind) 230Assert.Equal(SyntaxKind.AwaitExpression, CType(firstStatementOfM, ExpressionStatementSyntax).Expression.Kind) 234Assert.Equal(SyntaxKind.ExpressionStatement, firstStatementOfM2.Kind) 235Assert.Equal(SyntaxKind.InvocationExpression, CType(firstStatementOfM2, ExpressionStatementSyntax).Expression.Kind) 283Assert.Equal(4, lambdas.Count(Function(l) SyntaxFacts.IsSingleLineLambdaExpression(l.Kind))) 285Assert.Equal(SyntaxKind.ExpressionStatement, CType(lambdas(0), SingleLineLambdaExpressionSyntax).Body.Kind) 286Assert.Equal(SyntaxKind.AwaitExpression, CType(CType(lambdas(0), SingleLineLambdaExpressionSyntax).Body, ExpressionStatementSyntax).Expression.Kind) 288Assert.Equal(SyntaxKind.SimpleAssignmentStatement, CType(lambdas(1), SingleLineLambdaExpressionSyntax).Body.Kind) 289Assert.Equal(SyntaxKind.AwaitExpression, CType(CType(lambdas(1), SingleLineLambdaExpressionSyntax).Body, AssignmentStatementSyntax).Right.Kind) 291Assert.Equal(SyntaxKind.AwaitExpression, CType(lambdas(2), SingleLineLambdaExpressionSyntax).Body.Kind) 293Assert.Equal(SyntaxKind.EqualsExpression, CType(lambdas(3), SingleLineLambdaExpressionSyntax).Body.Kind) 294Assert.Equal(SyntaxKind.AwaitExpression, CType(CType(lambdas(3), SingleLineLambdaExpressionSyntax).Body, BinaryExpressionSyntax).Right.Kind) 296Assert.Equal(3, lambdas.Count(Function(l) SyntaxFacts.IsMultiLineLambdaExpression(l.Kind))) 381Where expression.Kind = SyntaxKind.AwaitExpression OrElse 382(expression.Kind = SyntaxKind.IdentifierName AndAlso DirectCast(expression, IdentifierNameSyntax).Identifier.ValueText.Equals("Await")) 384Select expression.Kind
Parser\ParseDirectives.vb (62)
1652Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 1654Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 1661Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 1663Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 1690Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes.Single.Kind) 1696Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes.Single.Kind) 1917Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 1919Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 1921Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(2).Kind) 1942Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 1944Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 1968Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 1970Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 1990Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes.Single.Kind) 2014Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2016Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2043Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2045Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2047Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2068Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2070Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2072Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(2).Kind) 2098Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2100Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2119Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2121Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2145Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2147Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2167Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2168Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2206Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2208Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2210Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(2).Kind) 2212Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(3).Kind) 2214Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(4).Kind) 2217Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(5).Kind) 2241Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2243Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2268Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2271Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2274Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(2).Kind) 2277Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(3).Kind) 2300Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2302Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2304Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(2).Kind) 2307Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(3).Kind) 2328Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2331Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2334Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(2).Kind) 2439Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes.Single.Kind) 2463Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2487Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2513Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2558Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2582Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2583Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind) 2585Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(2).Kind) 2620Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes.Single.Kind) 2678Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(0).Kind) 2681Assert.Equal(SyntaxKind.IdentifierName, disableNode.ErrorCodes(1).Kind) 2690Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(0).Kind) 2693Assert.Equal(SyntaxKind.IdentifierName, enableNode.ErrorCodes(1).Kind)
Parser\ParseExpression.vb (90)
309Assert.Equal(SyntaxKind.MeExpression, expr.Kind) 317Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.Kind) 337Assert.Equal(SyntaxKind.TupleExpression, expr.Kind) 364Assert.Equal(SyntaxKind.TupleExpression, expr.Kind) 374Assert.Equal(SyntaxKind.TupleExpression, expr.Kind) 406Assert.Equal(SyntaxKind.TupleExpression, expr.Kind) 429Assert.Equal(SyntaxKind.TernaryConditionalExpression, expr.Kind) 431Assert.Equal(SyntaxKind.BinaryConditionalExpression, expr.Kind) 433Assert.Equal(SyntaxKind.BinaryConditionalExpression, expr.Kind) 439Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind) 442Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind) 445Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind) 448Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind) 451Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind) 454Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, expr.Kind) 457Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind) 492Assert.Equal(SyntaxKind.PredefinedCastExpression, expr.Kind) 496Assert.Equal(SyntaxKind.PredefinedCastExpression, expr.Kind) 500Assert.Equal(SyntaxKind.PredefinedCastExpression, expr.Kind) 508Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, expr.Kind) 509Assert.Equal(SyntaxKind.PredefinedType, DirectCast(expr, MemberAccessExpressionSyntax).Expression.Kind) 512Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 513Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, DirectCast(expr, InvocationExpressionSyntax).Expression.Kind) 514Assert.Equal(SyntaxKind.PredefinedType, DirectCast(DirectCast(expr, InvocationExpressionSyntax).Expression, MemberAccessExpressionSyntax).Expression.Kind) 520Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 523Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 526Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 529Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 532Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind) 538Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 0).Kind) 541Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 0).Kind) 544Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 0).Kind) 564Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 0).Kind) 571Assert.Equal(SyntaxKind.LeftShiftExpression, expr.Kind) 575Assert.Equal(SyntaxKind.IdentifierName, expr.Kind) 578Assert.Equal(SyntaxKind.IdentifierName, expr.Kind) 585Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 1).Kind) 588Assert.Equal(SyntaxKind.LetClause, GetOperator(expr, 1).Kind) 595Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 1).Kind) 602Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 1).Kind) 611Assert.Equal(SyntaxKind.LetClause, GetOperator(expr, 2).Kind) 620Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 4).Kind) 627Assert.Equal(SyntaxKind.TakeClause, GetOperator(expr, 1).Kind) 630Assert.Equal(SyntaxKind.TakeWhileClause, GetOperator(expr, 1).Kind) 638Assert.Equal(SyntaxKind.TakeClause, GetOperator(expr, 1).Kind) 647Assert.Equal(SyntaxKind.FromClause, GetOperator(expr, 2).Kind) 654Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 1).Kind) 657Assert.Equal(SyntaxKind.SkipWhileClause, GetOperator(expr, 1).Kind) 667Assert.Equal(SyntaxKind.SkipWhileClause, GetOperator(expr, 2).Kind) 676Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 683Assert.Equal(SyntaxKind.DistinctClause, GetOperator(expr, 1).Kind) 686Assert.Equal(SyntaxKind.SkipWhileClause, GetOperator(expr, 2).Kind) 694Assert.Equal(SyntaxKind.DistinctClause, GetOperator(expr, 2).Kind) 702Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 710Assert.Equal(SyntaxKind.AggregateClause, GetOperator(expr, 0).Kind) 713Assert.Equal(SyntaxKind.AggregateClause, GetOperator(expr, 0).Kind) 716Assert.Equal(SyntaxKind.AggregateClause, GetOperator(expr, 0).Kind) 724Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 738Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 745Assert.Equal(SyntaxKind.OrderByClause, GetOperator(expr, 1).Kind) 748Assert.Equal(SyntaxKind.OrderByClause, GetOperator(expr, 1).Kind) 751Assert.Equal(SyntaxKind.OrderByClause, GetOperator(expr, 1).Kind) 762Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 773Assert.Equal(SyntaxKind.SelectClause, GetOperator(expr, 1).Kind) 776Assert.Equal(SyntaxKind.SelectClause, GetOperator(expr, 1).Kind) 779Assert.Equal(SyntaxKind.SelectClause, GetOperator(expr, 1).Kind) 787Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 3).Kind) 801Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 3).Kind) 808Assert.Equal(SyntaxKind.GroupByClause, GetOperator(expr, 1).Kind) 811Assert.Equal(SyntaxKind.GroupByClause, GetOperator(expr, 2).Kind) 814Assert.Equal(SyntaxKind.GroupByClause, GetOperator(expr, 1).Kind) 829Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 843Assert.Equal(SyntaxKind.GroupByClause, GetOperator(expr, 1).Kind) 851Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 854Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 857Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 882Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 906Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 913Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 919Assert.Equal(SyntaxKind.GroupJoinClause, GetOperator(expr, 1).Kind) 922Assert.Equal(SyntaxKind.GroupJoinClause, GetOperator(expr, 1).Kind) 925Assert.Equal(SyntaxKind.GroupJoinClause, GetOperator(expr, 1).Kind) 946Assert.Equal(SyntaxKind.SkipClause, GetOperator(expr, 2).Kind) 972Assert.Equal(SyntaxKind.SimpleJoinClause, GetOperator(expr, 1).Kind) 978Assert.Equal(SyntaxKind.IntegerDivideExpression, expr.Kind) 984Assert.Equal(SyntaxKind.IsNotExpression, expr.Kind) 990Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, expr.Kind) 1164Assert.Equal(SyntaxKind.GoToStatement, gotoStmt.Kind) 1165Assert.Equal(SyntaxKind.LabelStatement, labelStmt.Kind) 1923Assert.Equal(SyntaxKind.QueryExpression, expr.Kind)
Parser\ParseIteratorTests.vb (14)
160Assert.Equal(SyntaxKind.YieldStatement, firstStatementOfM.Kind) ' 1 169Assert.Equal(SyntaxKind.YieldStatement, statements(0).Kind) ' 2 172Assert.Equal(SyntaxKind.YieldStatement, statements(1).Kind) ' 3 177Assert.Equal(SyntaxKind.YieldStatement, statements(0).Kind) ' 5 182Assert.NotEqual(SyntaxKind.YieldStatement, statements(0).Kind) 185Assert.NotEqual(SyntaxKind.YieldStatement, statements(1).Kind) 190Assert.NotEqual(SyntaxKind.YieldStatement, statements(0).Kind) 195Assert.Equal(SyntaxKind.YieldStatement, statements(0).Kind) ' 7 198Assert.Equal(SyntaxKind.YieldStatement, statements(1).Kind) ' 8 205Assert.NotEqual(SyntaxKind.YieldStatement, statements(0).Kind) 208Assert.NotEqual(SyntaxKind.YieldStatement, statements(1).Kind) 260Assert.Equal(1, lambdas.Count(Function(l) SyntaxFacts.IsSingleLineLambdaExpression(l.Kind))) 261Assert.Equal(2, lambdas.Count(Function(l) SyntaxFacts.IsMultiLineLambdaExpression(l.Kind))) 264Assert.Equal(SyntaxKind.YieldStatement, CType(lambdas(0), SingleLineLambdaExpressionSyntax).Body.Kind)
Parser\ParseStatements.vb (17)
366Assert.Equal(SyntaxKind.ExpressionStatement, goo.Kind) 367Assert.Equal(SyntaxKind.InvocationExpression, DirectCast(goo, ExpressionStatementSyntax).Expression.Kind) 582Assert.Equal(SyntaxKind.InvocationExpression, DirectCast(subMain.ChildNodesAndTokens()(2).AsNode, ExpressionStatementSyntax).Expression.Kind) 1896Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind) 1905Assert.Equal(SyntaxKind.EndSubStatement, statement.Kind) 1914Assert.Equal(SyntaxKind.EndClassStatement, statement.Kind) 1923Assert.Equal(SyntaxKind.EmptyStatement, statement.Kind) 1929Assert.Equal(SyntaxKind.EmptyStatement, statement.Kind) 1935Assert.Equal(SyntaxKind.EmptyStatement, statement.Kind) 1950Assert.Equal(SyntaxKind.ForBlock, statement.Kind) 1967Assert.Equal(SyntaxKind.ForBlock, statement.Kind) 1984Assert.Equal(SyntaxKind.ForBlock, statement.Kind) 2001Assert.Equal(SyntaxKind.ForBlock, statement.Kind) 2112Assert.Equal(SyntaxKind.InvocationExpression, DirectCast(wl5.AsNode, ExpressionStatementSyntax).Expression.Kind) 2295Assert.Equal(SyntaxKind.ForEachBlock, statement.Kind) 2335Assert.Equal(stmt.Kind, SyntaxKind.MultiLineIfBlock) 2339Assert.Equal(stmt.Kind, SyntaxKind.SingleLineIfStatement)
Parser\ParseXml.vb (1)
1899Assert.Equal(SyntaxKind.InvocationExpression, DirectCast(stmt2.AsNode, ExpressionStatementSyntax).Expression.Kind)
Syntax\ManualTests.vb (3)
154Dim newAssignmentStatement = assignmentStatement.Update(assignmentStatement.Kind, GeneratedTests.GenerateRedAddExpression(), SyntaxFactory.Token(SyntaxKind.PlusEqualsToken), GeneratedTests.GenerateRedAddExpression()) 155Assert.Equal(assignmentStatement.Kind, newAssignmentStatement.Kind)
Syntax\SyntaxTokenFactoryTests.vb (3)
166Assert.Equal(SyntaxKind.AddExpression, expr.Kind) 168Assert.Equal(SyntaxKind.IdentifierName, bex.Left.Kind) 175Assert.Equal(SyntaxKind.AddExpression, bex2.Kind)
TestSyntaxNodes.vb (1)
1156Return SyntaxFactory.MethodStatement(node.Kind,
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (28)
ParserTestUtilities.vb (28)
883IncrementTypeCounter(node, node.Kind.ToString) 888IncrementTypeCounter(node, node.Kind.ToString) 893IncrementTypeCounter(node, node.Kind.ToString) 897IncrementTypeCounter(node, node.Kind.ToString) 901IncrementTypeCounter(node, node.Kind.ToString) 906IncrementTypeCounter(node, node.Kind.ToString) 911IncrementTypeCounter(node, node.Kind.ToString) 916IncrementTypeCounter(node, node.Kind.ToString) 921IncrementTypeCounter(node, node.Kind.ToString) 926IncrementTypeCounter(node, node.Kind.ToString) 931IncrementTypeCounter(node, node.Kind.ToString) 935IncrementTypeCounter(node, node.Kind.ToString) 940IncrementTypeCounter(node, node.Kind.ToString) 945IncrementTypeCounter(node, node.Kind.ToString) 950IncrementTypeCounter(node, node.Kind.ToString) 954IncrementTypeCounter(node, node.Kind.ToString) 959IncrementTypeCounter(node, node.Kind.ToString) 964IncrementTypeCounter(node, node.Kind.ToString) 969IncrementTypeCounter(node, node.Kind.ToString) 983IncrementTypeCounter(node, node.Kind.ToString) 988IncrementTypeCounter(node, node.Kind.ToString) 993IncrementTypeCounter(node, node.Kind.ToString) 997IncrementTypeCounter(node, node.Kind.ToString) 1002IncrementTypeCounter(node, node.Kind.ToString) 1007IncrementTypeCounter(node, node.Kind.ToString) 1012IncrementTypeCounter(node, node.Kind.ToString) 1017IncrementTypeCounter(node, node.Kind.ToString) 1022IncrementTypeCounter(node, node.Kind.ToString)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (130)
CastAnalyzer.vb (2)
211If _castExpressionNode.Kind = SyntaxKind.CollectionInitializer Then 293(_castExpressionNode.Kind = SyntaxKind.CollectionInitializer AndAlso expressionToOuterType.IsWidening AndAlso speculatedExpressionOuterType.IsArrayType())) AndAlso
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
265Select Case node.Kind
Classification\Worker.DocumentationCommentClassifier.vb (2)
40Select Case node.Kind 211Select Case attribute.Kind
Classification\Worker.XmlClassifier.vb (1)
53Select Case node.Kind
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (3)
25Return func.Update(func.Kind, func.AttributeLists, func.Modifiers, func.DeclarationKeyword, func.Identifier, 45Return lambdaHeader.Update(lambdaHeader.Kind, lambdaHeader.AttributeLists, lambdaHeader.Modifiers, lambdaHeader.DeclarationKeyword, parameterList, asClause) 193If newTypeSyntax.Kind = SyntaxKind.QualifiedName Then
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
90name.CheckParent(Of UnaryExpressionSyntax)(Function(p) p.Kind = SyntaxKind.AddressOfExpression AndAlso p.Operand Is name) OrElse
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (1)
234If structuredTrivia.Kind = SyntaxKind.SkippedTokensTrivia Then
CodeGeneration\EnumMemberGenerator.vb (3)
89If lastExpression.Kind = SyntaxKind.LeftShiftExpression AndAlso IntegerUtilities.HasOneBitSet(value) Then 91If binaryExpression.Left.Kind = SyntaxKind.NumericLiteralExpression Then 103ElseIf lastExpression.Kind = SyntaxKind.NumericLiteralExpression Then
CodeGeneration\EventGenerator.vb (4)
17If eventDeclaration.Kind = SyntaxKind.EventStatement Then 24If eventDeclaration.Kind = SyntaxKind.EventBlock Then 26Dim lastEvent = members.LastOrDefault(Function(m) m.Kind = SyntaxKind.EventBlock) 39If eventDeclaration.Kind = SyntaxKind.FieldDeclaration Then
CodeGeneration\NamedTypeGenerator.vb (1)
80Select Case declaration.Kind
CodeGeneration\VisualBasicCodeGenerationService.vb (7)
220Select Case methodStatement.Kind 260Select Case methodBlock.Kind 472Select Case methodBlock.Kind 677Select Case asClause.Kind 684Select Case newExpression.Kind 703Select Case syntaxNode.Kind 762Select Case syntaxNode.Kind
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
2226Select Case clause.Kind 2269Select Case asClause.Kind 2274Select Case asNew.NewExpression.Kind
DirectiveSyntaxExtensions.vb (4)
91Function(d) d.Kind = SyntaxKind.RegionDirectiveTrivia OrElse d.Kind = SyntaxKind.IfDirectiveTrivia) 105If directive.Kind = SyntaxKind.ElseIfDirectiveTrivia OrElse directive.Kind = SyntaxKind.ElseDirectiveTrivia Then
DirectiveWalker.vb (4)
81If poppedDirective.Kind = SyntaxKind.IfDirectiveTrivia Then 94Debug.Assert(ifDirective.Kind = SyntaxKind.IfDirectiveTrivia OrElse 95ifDirective.Kind = SyntaxKind.ElseIfDirectiveTrivia OrElse 96ifDirective.Kind = SyntaxKind.ElseDirectiveTrivia)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (9)
166If(typeDeclaration.Kind() = SyntaxKind.ClassBlock, DeclaredSymbolInfoKind.Class, 167If(typeDeclaration.Kind() = SyntaxKind.InterfaceBlock, DeclaredSymbolInfoKind.Interface, 168If(typeDeclaration.Kind() = SyntaxKind.ModuleBlock, DeclaredSymbolInfoKind.Module, DeclaredSymbolInfoKind.Struct))), 207If node.Kind() = SyntaxKind.PropertyBlock Then 209ElseIf node.Kind() = SyntaxKind.EventBlock Then 215Dim kind = node.Kind() 428If node.Kind() = SyntaxKind.FieldDeclaration Then 432If node.Kind() = SyntaxKind.SubNewStatement AndAlso 561If importsClause.Kind = SyntaxKind.SimpleImportsClause Then
Formatting\FormattingHelpers.vb (3)
275Return memberAccess.Kind = SyntaxKind.DictionaryAccessExpression AndAlso memberAccess.OperatorToken = token 288Return memberAccess.Kind = SyntaxKind.DictionaryAccessExpression AndAlso memberAccess.OperatorToken = token 351If memberAccess?.Kind = SyntaxKind.DictionaryAccessExpression Then
Formatting\Rules\ElasticTriviaFormattingRule.vb (7)
283If previousStatement.Kind = SyntaxKind.EndSetStatement OrElse 284previousStatement.Kind = SyntaxKind.EndGetStatement OrElse 285previousStatement.Kind = SyntaxKind.EndAddHandlerStatement OrElse 286previousStatement.Kind = SyntaxKind.EndRemoveHandlerStatement OrElse 287previousStatement.Kind = SyntaxKind.EndRaiseEventStatement Then 294currentStatement.Kind = SyntaxKind.ElseIfStatement OrElse 295currentStatement.Kind = SyntaxKind.ElseStatement Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (5)
131If unary IsNot Nothing AndAlso unary.Kind() = SyntaxKind.AddressOfExpression Then 158unaryParent.Kind() <> SyntaxKind.AddressOfExpression AndAlso 177collectionInitializer.Initializers(0).Kind = SyntaxKind.CollectionInitializer 221Select Case expression.Kind 422Select Case expression.Kind
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
930If singleLineLambda IsNot Nothing AndAlso singleLineLambda.Kind = SyntaxKind.SingleLineFunctionLambdaExpression Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (5)
185Return expression.Kind = SyntaxKind.MeExpression OrElse 186expression.Kind = SyntaxKind.MyBaseExpression OrElse 187expression.Kind = SyntaxKind.MyClassExpression 283If simplifiedNode.Kind = SyntaxKind.IdentifierName Then 285ElseIf simplifiedNode.Kind = SyntaxKind.QualifiedName Then
NameSyntaxComparer.vb (1)
97Select Case name.Kind
ParenthesizedExpressionSyntaxExtensions.vb (5)
397If IsAssociative(parentBinaryExpression.Kind) AndAlso 398expression.Kind = parentExpression.Kind Then 429lastStatement IsNot Nothing AndAlso lastStatement.Kind = SyntaxKind.ReDimStatement) Then 534If expression.Kind = SyntaxKind.DictionaryAccessExpression AndAlso
Rename\LocalConflictVisitor.vb (3)
65Select Case clause.Kind 84If statement.Kind = SyntaxKind.LocalDeclarationStatement Then 140If node.ForOrForEachStatement.Kind = SyntaxKind.ForEachStatement Then
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
461Select Case expressionOfInvocation.Kind 1000If name.Kind = SyntaxKind.IdentifierName Then
SemanticModelExtensions.vb (1)
210If current.Kind = SyntaxKind.IdentifierName Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
90If enclosingStatement.Kind <> SyntaxKind.MidAssignmentStatement Then
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (1)
36If invocationExpression.Expression?.Kind = SyntaxKind.SimpleMemberAccessExpression Then
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (1)
92If declaredSymbolType.IsArrayType() AndAlso variableDeclarator.Initializer.Value.Kind() = SyntaxKind.CollectionInitializer Then
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (4)
95If node.Kind = SyntaxKind.IdentifierName AndAlso semanticModel.GetAliasInfo(DirectCast(node, IdentifierNameSyntax)) IsNot Nothing Then 134If expression.Kind = SyntaxKind.IdentifierName OrElse 135expression.Kind = SyntaxKind.QualifiedName Then 139If expression.Kind = SyntaxKind.SimpleMemberAccessExpression Then
Simplification\Simplifiers\ExpressionSimplifier.vb (4)
32If memberAccessExpression?.Expression?.Kind() = SyntaxKind.MeExpression Then 61If expression.Kind = SyntaxKind.SimpleMemberAccessExpression Then 180Select Case expression.Kind 187replacementNode = memberAccess.Update(memberAccess.Kind, newLeft, memberAccess.OperatorToken, memberAccess.Name).WithAdditionalAnnotations(Simplifier.Annotation)
Simplification\Simplifiers\NameSimplifier.vb (5)
46If symbol.Kind = SymbolKind.Method AndAlso name.Kind = SyntaxKind.GenericName Then 108If name.Kind = SyntaxKind.QualifiedName Then 201If name.Kind = SyntaxKind.QualifiedName Then 219Select Case name.Kind 321simplifiedNode.Kind = SyntaxKind.NullableType
Simplification\VisualBasicSimplificationService.Expander.vb (6)
332If newSimpleArgument.Expression.Kind = SyntaxKind.AddressOfExpression Then 497If originalSimpleName.Kind = SyntaxKind.IdentifierName Then 521If replacement.Kind = SyntaxKind.QualifiedName Then 602Select Case newNode.Kind 685If newNode.Kind = SyntaxKind.IdentifierName AndAlso symbol.Kind = SymbolKind.Method Then 710Debug.Assert(Not replaceNode OrElse rewrittenNode.Kind = SyntaxKind.IdentifierName)
Simplification\VisualBasicSimplificationService.NodesAndTokensToReduceComputer.vb (2)
126Return DirectCast(n, MethodBlockSyntax).Update(node.Kind, DirectCast(b, MethodStatementSyntax), s, e) 147Return DirectCast(n, AccessorBlockSyntax).Update(node.Kind, DirectCast(b, AccessorStatementSyntax), s, e)
SpeculationAnalyzer.vb (4)
253Select Case originalLambda.Kind 274Throw ExceptionUtilities.UnexpectedValue(originalLambda.Kind) 457Select Case expression.Kind 492Select Case expression.Kind
StatementSyntaxExtensions.vb (13)
16Select Case member.Kind 76Select Case member.Kind 306Select Case member.Kind 356Select Case member.Kind 396Select Case member.Kind 423Select Case member.Kind 465Select Case member.Kind 509Select Case statement.Kind 540Select Case statement.Kind 569Select Case statement.Kind 599Select Case statement.Kind 629Select Case statement.Kind 657Select Case statement.Kind
SyntaxNodeExtensions.vb (2)
641If node.Kind = SyntaxKind.SingleLineSubLambdaExpression Then 991If importsClause.Kind = SyntaxKind.SimpleImportsClause Then
TypeBlockSyntaxExtensions.vb (1)
92Select Case destinationType.Kind
TypeSyntaxComparer.vb (1)
50Select Case type.Kind
VisualBasicSyntaxFacts.vb (5)
619Return node.GetAncestors(Of StatementSyntax).Any(Function(s) s.Kind = SyntaxKind.ConstructorBlock) 982If nameSyntax.Kind() = SyntaxKind.GlobalName Then 990If qualified.Left.Kind() = SyntaxKind.GlobalName Then 1560If importsClause.Kind = SyntaxKind.SimpleImportsClause Then 1581If importsClause.Kind = SyntaxKind.SimpleImportsClause Then
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
839Select Case unaryExpressionSyntax.Kind
Microsoft.VisualStudio.LanguageServices.VisualBasic (57)
ChangeSignature\VisualBasicChangeSignatureViewModelFactoryService.vb (1)
30Dim isPredefinedType = SyntaxFactory.ParseExpression(addedParameterViewModel.Type).Kind() = SyntaxKind.PredefinedType
CodeModel\MethodXML\MethodXmlBuilder.vb (12)
36Select Case statement.Kind 128If addHandlerStatement.Kind() = SyntaxKind.AddHandlerStatement Then 130ElseIf addHandlerStatement.Kind() = SyntaxKind.RemoveHandlerStatement 168Select Case expression.Kind 242Select Case expression.Kind 274Select Case binaryExpression.Kind 504Select Case castExpression.Kind() 585If initializer IsNot Nothing AndAlso initializer.Kind = SyntaxKind.CollectionInitializer Then 596Select Case initializer.Kind 660Debug.Assert(expression.Kind() = SyntaxKind.AddressOfExpression) 677If delegateExpression.Kind() = SyntaxKind.IdentifierName Then 679ElseIf delegateExpression.Kind() = SyntaxKind.SimpleMemberAccessExpression
CodeModel\SyntaxExtensions.vb (3)
30Select Case method.Kind 49Debug.Fail(String.Format("Unexpected node kind: {0}", method.Kind)) 58Select Case method.Kind
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (19)
250If oldArgument.Kind <> newArgument.Kind OrElse 282If oldNamespaceOrType.Kind <> newNamespaceOrType.Kind Then 350Return oldType.Kind <> newType.Kind 533Return oldMember.Kind <> newMember.Kind 590Debug.Fail(String.Format("Unexpected member kind: {0}", oldMember.Kind)) 960If oldExpression.Kind <> newExpression.Kind Then 1018If oldType.Kind <> newType.Kind Then 1022Select Case oldType.Kind 1052Debug.Fail(String.Format("Unknown kind: {0}", oldType.Kind)) 1057If oldName.Kind <> newName.Kind Then 1061Select Case oldName.Kind 1099Debug.Fail(String.Format("Unknown kind: {0}", oldName.Kind))
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (5)
323([next].Kind = SyntaxKind.InheritsStatement OrElse 324[next].Kind = SyntaxKind.ImplementsStatement) Then 462Select Case methodBlock.BlockStatement.Kind 622Select Case methodBlock.BlockStatement.Kind 1520startPosition = If(argument.Kind = SyntaxKind.OmittedArgument,
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (3)
25If name.Kind = SyntaxKind.QualifiedName Then 29Select Case name.Kind 51Select Case type.Kind
CodeModel\VisualBasicCodeModelService.vb (12)
472If member.Kind() <> SyntaxKind.NamespaceBlock AndAlso TypeOf member Is DeclarationStatementSyntax Then 478If member.Kind() = SyntaxKind.EnumMemberDeclaration Then 515If member.Kind = SyntaxKind.FieldDeclaration Then 1144If accessor.Kind = accessorKind Then 2759If resultMember.Kind = SyntaxKind.FunctionStatement Then 2764ElseIf resultMember.Kind = SyntaxKind.SubStatement Then 3090If accessorBlock.Kind = SyntaxKind.AddHandlerAccessorBlock OrElse 3091accessorBlock.Kind = SyntaxKind.RemoveHandlerAccessorBlock Then 3112ElseIf accessorBlock.Kind = SyntaxKind.RaiseEventAccessorBlock Then 3268methodBlock = methodBlock.Update(If(methodStatement.Kind = SyntaxKind.SubStatement, SyntaxKind.SubBlock, SyntaxKind.FunctionBlock), 3356If accessorBlock.Kind = SyntaxKind.SetAccessorBlock Then 3959Select Case methodBlock.Kind
Help\VisualBasicHelpContextService.Visitor.vb (1)
695Select Case node.Kind()
Venus\VisualBasicContainedLanguage.vb (1)
177If multiLineLambda.Kind <> SyntaxKind.MultiLineSubLambdaExpression Then