2247 references to Kind
Microsoft.CodeAnalysis.CSharp (125)
Binder\Binder_Expressions.cs (2)
1836return (parent?.Kind() == SyntaxKind.Argument && 10989switch (parent.Kind())
Binder\Binder_Operators.cs (2)
2265UnaryOperatorKind kind = SyntaxKindToUnaryOperatorKind(node.Kind()); 2725UnaryOperatorKind kind = SyntaxKindToUnaryOperatorKind(node.Kind());
Binder\Binder_QueryErrors.cs (4)
138if (parent.Kind() == SyntaxKind.JoinClause) 154if (parent.Kind() == SyntaxKind.JoinClause) 168switch (queryClause.Kind()) 204throw ExceptionUtilities.UnexpectedValue(queryClause.Kind());
Binder\Binder_Statements.cs (7)
788declarationNode.Kind() == SyntaxKind.VariableDeclaration || 789declarationNode.Kind() == SyntaxKind.DeclarationExpression || 790declarationNode.Kind() == SyntaxKind.DiscardDesignation); 828if (declarationNode.Parent.Kind() == SyntaxKind.LocalDeclarationStatement && 1903hasUnsafeModifier: node.Parent?.Kind() == SyntaxKind.UnsafeStatement, 3532return new BoundBlock(node, locals, ImmutableArray.Create(statement)) { WasCompilerGenerated = node.Kind() != SyntaxKind.ArrowExpressionClause }; 3644throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\BinderFactory.BinderFactoryVisitor.cs (10)
284switch (propertyOrEventDecl.Kind()) 292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod; 306accessor = (parent.Kind() == SyntaxKind.AddAccessorDeclaration) ? eventSymbol.AddMethod : eventSymbol.RemoveMethod; 311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 441if (node.Parent.Kind() == SyntaxKind.CompilationUnit && syntaxTree.Options.Kind != SourceCodeKind.Regular) 1036Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration); 1069if (containingNode.Kind() != SyntaxKind.CompilationUnit && _position == containingSpan.End) 1416Debug.Assert(xmlSyntax is XmlAttributeSyntax || xmlSyntax.Kind() == SyntaxKind.XmlEmptyElement || xmlSyntax.Kind() == SyntaxKind.XmlElementStartTag); 1448for (; !SyntaxFacts.IsDocumentationCommentTrivia(curr.Kind()); curr = curr.Parent)
Binder\BinderFactory.cs (1)
186switch (unit.Kind())
Binder\ExpressionVariableFinder.cs (1)
35switch (node.Kind())
Binder\LocalBinderFactory.cs (1)
388if (body.Kind() == SyntaxKind.Block)
Binder\WithExternAliasesBinder.cs (1)
91Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration);
Binder\WithExternAndUsingAliasesBinder.cs (1)
120Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
276Debug.Assert(declarationSyntax.Kind() is SyntaxKind.CompilationUnit or SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration);
BoundTree\UnboundLambda.cs (1)
1515private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.Block; } }
Compilation\AttributeSemanticModel.cs (2)
63switch (node.Kind()) 87if (node.Kind() == SyntaxKind.Attribute)
Compilation\CSharpCompilation.cs (1)
2757TryAdd(new ImportInfo(syntax.SyntaxTree, syntax.Kind(), syntax.Span), default);
Compilation\CSharpSemanticModel.cs (6)
68switch (node.Kind()) 93if (!isSpeculative && node.Parent != null && node.Parent.Kind() == SyntaxKind.NameEquals && node.Parent.Parent.Kind() == SyntaxKind.UsingDirective) 1240if (node.Kind() == SyntaxKind.XmlCrefAttribute || node.Kind() == SyntaxKind.XmlNameAttribute) 3303Debug.Assert(catchClause.Kind() == SyntaxKind.CatchClause);
Compilation\InitializerSemanticModel.cs (4)
82switch (rootSyntax.Kind()) 105throw ExceptionUtilities.UnexpectedValue(rootSyntax.Kind()); 115switch (node.Kind()) 192switch (node.Kind())
Compilation\MemberSemanticModel.cs (8)
1332if (bindableParent != null && bindableParent.Kind() == SyntaxKind.SimpleMemberAccessExpression && ((MemberAccessExpressionSyntax)bindableParent).Expression == bindableNode) 1545switch (current.Kind()) 1554if (current.Parent == null || current.Parent.Kind() != SyntaxKind.LocalFunctionStatement) 2164switch (node.Kind()) 2215switch (node.Kind()) 2236Debug.Assert(parent.Kind() == SyntaxKind.VariableDeclaration); 2238if (grandparent != null && grandparent.Kind() == SyntaxKind.LocalDeclarationStatement && 2297switch (parent.Kind())
Compilation\MethodBodySemanticModel.cs (2)
55Debug.Assert((syntax.Kind() == SyntaxKind.CompilationUnit) == (!IsSpeculativeSemanticModel && owner is SynthesizedSimpleProgramEntryPointSymbol)); 76switch (node.Kind())
Compilation\SyntaxTreeSemanticModel.cs (19)
247else if (node.Parent.Kind() == SyntaxKind.XmlNameAttribute && (attrSyntax = (XmlNameAttributeSyntax)node.Parent).Identifier == node) 786switch (memberDecl.Kind()) 850switch (memberDecl.Kind()) 1074switch (node.Kind()) 1120switch (node.Parent.Kind()) 1177throw ExceptionUtilities.UnexpectedValue(node.Parent.Kind()); 1210if (parent.Kind() == SyntaxKind.CompilationUnit && 1292(node.Kind() == SyntaxKind.Attribute) || (node.Kind() == SyntaxKind.Parameter); 1571if (declarationSyntax.Kind() == SyntaxKind.UnknownAccessorDeclaration) 1579switch (propertyOrEventDecl.Kind()) 1593throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 1624switch (declaration.Kind()) 1701throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 2301if (memberDeclaration.Parent.Kind() == SyntaxKind.CompilationUnit) 2304if (memberDeclaration.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration) 2316if (SyntaxFacts.IsTypeDeclaration(memberDeclaration.Kind())) 2335if (memberDeclaration.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration 2336|| SyntaxFacts.IsTypeDeclaration(memberDeclaration.Kind()))
Declarations\DeclarationTreeBuilder.cs (4)
129node.Kind() is SyntaxKind.NamespaceDeclaration or SyntaxKind.FileScopedNamespaceDeclaration || 130(node.Kind() == SyntaxKind.CompilationUnit && _syntaxTree.Options.Kind == SourceCodeKind.Regular)); 140bool acceptSimpleProgram = node.Kind() == SyntaxKind.CompilationUnit && _syntaxTree.Options.Kind == SourceCodeKind.Regular; 326Debug.Assert(parent.Kind() == SyntaxKind.CompilationUnit && _syntaxTree.Options.Kind != SourceCodeKind.Regular);
DocumentationComments\SourceDocumentationCommentUtils.cs (2)
42if (syntaxNode.Kind() == SyntaxKind.VariableDeclarator) 47SyntaxKind kind = curr.Kind();
Parser\LanguageParser.cs (7)
4643if (parent.Kind() == SyntaxKind.SimpleLambdaExpression) 4649if (grandparent != null && grandparent.Kind() == SyntaxKind.ParenthesizedLambdaExpression) 4651Debug.Assert(parent.Kind() == SyntaxKind.ParameterList); 5099switch (decl.Kind()) 5158if (parent != null && (parent.Kind() == SyntaxKind.VariableDeclaration || parent.Kind() == SyntaxKind.LocalDeclarationStatement)) 5178&& (oldKind = GetOldParent(old).Kind()) != SyntaxKind.VariableDeclaration // or in a method body
Parser\SyntaxParser.cs (1)
276return cn != null ? cn.Kind() : SyntaxKind.None;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
381switch (node.Kind()) 411ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceConstructorSymbolBase.cs (1)
30Debug.Assert(syntax.Kind() is SyntaxKind.ConstructorDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration);
Symbols\Source\SourceCustomEventAccessorSymbol.cs (3)
32isAdder: syntax.Kind() == SyntaxKind.AddAccessorDeclaration, 38Debug.Assert(syntax.Kind() == SyntaxKind.AddAccessorDeclaration || syntax.Kind() == SyntaxKind.RemoveAccessorDeclaration);
Symbols\Source\SourceCustomEventSymbol.cs (2)
85switch (accessor.Kind()) 121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceEventSymbol.cs (2)
145switch (syntax.Kind()) 153throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceNamedTypeSymbol.cs (5)
111switch (node.Kind()) 156SyntaxKind typeKind = typeDecl.Kind(); 174throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 466switch (node.Kind()) 481throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourcePropertyAccessorSymbol.cs (6)
36Debug.Assert(syntax.Kind() == SyntaxKind.GetAccessorDeclaration || 37syntax.Kind() == SyntaxKind.SetAccessorDeclaration || 38syntax.Kind() == SyntaxKind.InitAccessorDeclaration); 40bool isGetMethod = (syntax.Kind() == SyntaxKind.GetAccessorDeclaration); 658switch (syntax.Kind()) 730switch (GetSyntax().Kind())
Syntax\CSharpSyntaxNode.cs (3)
400if (curr.Kind() == SyntaxKind.XmlCrefAttribute || curr.Kind() == SyntaxKind.XmlNameAttribute) 522if (this.Kind() == SyntaxKind.Block)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
53_hasCompilationUnitRoot = root.Kind() == SyntaxKind.CompilationUnit;
Syntax\SyntaxExtensions.cs (4)
24switch (node.Kind()) 54ExceptionUtilities.UnexpectedValue(node.Kind()); 135SyntaxKind parentKind = parentSyntax.Kind(); 237switch (node.Kind())
Syntax\SyntaxFactory.cs (7)
2125switch (node.Kind()) 2148switch (parent.Kind()) 2189return grandparent != null && grandparent.Kind() == SyntaxKind.QualifiedCref 2213if (node.Kind() == SyntaxKind.NullableType && ((ObjectCreationExpressionSyntax)parent).Type == node) 2247Debug.Assert(currentNode.Kind() == SyntaxKind.MemberBindingExpression || 2248currentNode.Kind() == SyntaxKind.ElementBindingExpression); 2257if (currentNode.Kind() == SyntaxKind.ConditionalAccessExpression)
Syntax\SyntaxNodeExtensions.cs (1)
117switch (parent?.Kind())
Microsoft.CodeAnalysis.CSharp.CodeStyle (79)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (2)
61switch (embeddedStatement.Kind()) 89if (statement.Kind() == embeddedStatement.Kind())
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
266return node.Kind();
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
293_ => throw ExceptionUtilities.UnexpectedValue(expression.Kind()),
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
142else if (directive.Kind() is
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
93if (addressOfExpression.Kind() == SyntaxKind.AddressOfExpression)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
403if (memberAccess.Kind() != SyntaxKind.SimpleMemberAccessExpression)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
127if (binaryExpression.Kind() != SyntaxKind.AddExpression)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (4)
76if (assignment.Kind() != SyntaxKind.SimpleAssignmentExpression) 203if (arg0.Kind() == SyntaxKind.NullLiteralExpression || 204arg1.Kind() == SyntaxKind.NullLiteralExpression) 210testedExpression = arg0.Kind() == SyntaxKind.NullLiteralExpression ? arg1 : arg0;
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
61var properties = binaryExpression.Kind() == SyntaxKind.EqualsExpression
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
368variableDeclarator.Initializer.Value.Kind() is
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (2)
100if (binaryExpression.Kind() is SyntaxKind.EqualsExpression) 110else if (binaryExpression.Kind() is SyntaxKind.NotEqualsExpression)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
96var defAssignedWhenTrue = _comparison.Kind() is SyntaxKind.NotEqualsExpression or SyntaxKind.IsExpression; 242if (_operand.Kind() == SyntaxKind.IdentifierName)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
82var operand = GetNullCheckOperand(comparisonLeft, comparison.Kind(), comparisonRight)?.WalkDownParentheses();
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
26if (asExpression.Kind() == SyntaxKind.AsExpression)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
377Debug.Assert(constructorDeclaration.Initializer.Kind() == SyntaxKind.ThisConstructorInitializer); 472if (assignmentExpression.Kind() != SyntaxKind.SimpleAssignmentExpression)
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
222=> priorStatement.Kind() is SyntaxKind.GotoStatement or
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
72if (argument.Kind() != SyntaxKind.OmittedTypeArgument)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
79if (initializerExpression.Kind() is SyntaxKind.ObjectCreationExpression or SyntaxKind.ArrayCreationExpression && 87if (initializerExpression.Kind() is SyntaxKind.CastExpression or SyntaxKind.IsExpression or SyntaxKind.AsExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (3)
16return assignment.Kind() == SyntaxKind.SimpleAssignmentExpression && 18(left.Kind() == SyntaxKind.TupleExpression || left.Kind() == SyntaxKind.DeclarationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
64=> directive?.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia; 67=> directive?.Kind()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
476if (expression.Kind() 696switch (expression.Kind()) 1092return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left, out var leftType) ? leftType : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
31switch (member.Kind()) 72switch (member.Kind()) 94switch (member.Kind()) 118switch (member.Kind()) 142switch (member.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (10)
86if (expression.Kind() is SyntaxKind.GreaterThanExpression or SyntaxKind.LessThanExpression && 276expression.Kind() is SyntaxKind.PreIncrementExpression or SyntaxKind.PreDecrementExpression) 420if (IsAssociative(parentBinaryExpression.Kind()) && 422node.Expression.IsKind(parentBinaryExpression.Kind(), out BinaryExpressionSyntax? nodeBinary)) 491if (castExpression.Type.Kind() is 507if (expression.Kind() is 548binaryExpression.Kind() is SyntaxKind.LessThanExpression or SyntaxKind.GreaterThanExpression && 567binaryExpression.Right.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.CastExpression) 663&& greaterThanExpression.Right.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.CastExpression; 667=> expression.Kind() is SyntaxKind.IdentifierName or SyntaxKind.QualifiedName or SyntaxKind.SimpleMemberAccessExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
61switch (expression.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
405if (expression.Kind() == SyntaxKind.SimpleAssignmentExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
213if (previousMember.Kind() == nextMember.Kind()) 216if (previousMember.Kind() is SyntaxKind.FieldDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
103if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 116if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
545=> (node as MemberAccessExpressionSyntax)?.Kind() == SyntaxKind.PointerMemberAccessExpression; 836if (memberDeclaration.Kind() == SyntaxKind.ConversionOperatorDeclaration) 846if (memberDeclaration.Kind() == SyntaxKind.DestructorDeclaration) 862Debug.Assert(memberDeclaration.Kind() == SyntaxKind.IncompleteMember);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
55return cast.Kind() == SyntaxKind.AsExpression && 772Debug.Assert(rewrittenBitwiseNotExpression.Kind() == SyntaxKind.BitwiseNotExpression); 891if (parentBinary != null && parentBinary.Kind() is SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression) 959=> node is ExpressionSyntax expression && expression.WalkDownParentheses().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression; 996if (otherSide.WalkDownParentheses().Kind() == SyntaxKind.NullLiteralExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
84switch (name.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (9)
69=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression; 199switch (originalLambda.Kind()) 252throw ExceptionUtilities.UnexpectedValue(originalLambda.Kind()); 467if (previousReplacedExpression.WalkDownParentheses().Kind() is SyntaxKind.NullLiteralExpression or SyntaxKind.DefaultLiteralExpression) 600return expression.Kind() switch 613switch (expression.Kind()) 673if (binaryExpression.Kind() is SyntaxKind.AsExpression or SyntaxKind.IsExpression && 720assignmentExpression.Kind() != SyntaxKind.LeftShiftAssignmentExpression && 721assignmentExpression.Kind() != SyntaxKind.RightShiftAssignmentExpression &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
63if (type.IsVar || (type.Kind() == SyntaxKind.RefType && ((RefTypeSyntax)type).Type.IsVar))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeSyntaxComparer.cs (1)
50switch (type.Kind())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (41)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(baseNamespace.Kind()),
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
160switch (switchLabel.Kind())
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
76var currentAccessor = currentAccessorList.Accessors.First(a => a.Kind() == accessor.Kind());
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
50if (enclosingType?.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.RecordDeclaration &&
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
177switch (designation.Kind()) 188throw ExceptionUtilities.UnexpectedValue(designation.Kind());
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
123return binaryExpression.Kind() switch
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.IsPatternExpression))
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
58if (typeArgumentList.Arguments.Any(a => a.Kind() != SyntaxKind.OmittedTypeArgument))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
77declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedConstructors.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
89declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedOperators.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
760switch (syntaxNode.Kind()) 892switch (syntaxNode.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
119if (lastExpression.Kind() == SyntaxKind.LeftShiftExpression && 123if (binaryExpression.Left.Kind() == SyntaxKind.NumericLiteralExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (3)
28if (eventDeclaration.Kind() == SyntaxKind.EventFieldDeclaration) 36if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration) 53if (eventDeclaration.Kind() == SyntaxKind.FieldDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
164methodDeclaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedMethods.Value, cancellationToken, 182localFunctionDeclaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedLocalFunctions.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
164switch (declaration.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
61declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedOperators.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
169baseProperty.Kind(), accessor, languageVersion, preference, cancellationToken, 224declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedAccessors.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (3)
19switch (node.Kind()) 37switch (node.Kind()) 55switch (node.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
372validTypeDeclarations.Contains(record.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (4)
29if (nameSyntax.Kind() == SyntaxKind.IdentifierName) 33else if (nameSyntax.Kind() == SyntaxKind.QualifiedName) 37else if (nameSyntax.Kind() == SyntaxKind.GenericName) 41else if (nameSyntax.Kind() == SyntaxKind.AliasQualifiedName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (7)
934if (binop.Kind() == SyntaxKind.CoalesceExpression) 966if (binop.Kind() == SyntaxKind.SimpleAssignmentExpression && 1329foreach (var sibling in initializerExpression.Expressions.Where(e => e.Kind() != SyntaxKind.ComplexElementInitializerExpression)) 1877switch (postfixUnaryExpressionSyntax.Kind()) 1892switch (prefixUnaryExpression.Kind()) 2098switchLabel.Kind() != SyntaxKind.CaseSwitchLabel) 2117.FirstOrDefault(label => label.Kind() == SyntaxKind.CaseSwitchLabel) is CaseSwitchLabelSyntax firstCase)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NameSyntaxIterator.cs (1)
27if (currentNode.Kind() == SyntaxKind.QualifiedName)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteData.cs (1)
72_ => throw ExceptionUtilities.UnexpectedValue(stringExpression.Kind()),
StringCopyPaste\StringInfo.cs (1)
152throw ExceptionUtilities.UnexpectedValue(literal.Kind());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyTestBase.cs (1)
389var kind = expr.Kind();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleEqualityTests.cs (7)
1056.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1090.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1122.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1153.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1212.Where(e => e.Kind() == SyntaxKind.DefaultLiteralExpression); 1409.Where(e => e.Kind() == SyntaxKind.DelegateDeclaration); 1464.Where(e => e.Kind() == SyntaxKind.DelegateDeclaration);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (56)
Diagnostics\GetDiagnosticsTests.cs (2)
1021_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 1032_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()),
Semantics\PatternMatchingTests3.cs (53)
4117Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4123Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4130Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4139Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4145Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4152Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4159Assert.Equal(SyntaxKind.TypePattern, pattern.Kind()); 4166Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4174Assert.Equal(SyntaxKind.TypePattern, pattern.Kind()); 4181Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4187Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4194Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4201Assert.Equal(SyntaxKind.OrPattern, pattern.Kind()); 4207Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4213Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4219Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4226Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4233Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4239Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4245Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4252Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4259Assert.Equal(SyntaxKind.NotPattern, pattern.Kind()); 4265Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4271Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4277Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4284Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4344Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4350Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4357Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4366Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4372Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4379Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4386Assert.Equal(SyntaxKind.TypePattern, pattern.Kind()); 4393Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4401Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4408Assert.Equal(SyntaxKind.TypePattern, pattern.Kind()); 4415Assert.Equal(SyntaxKind.RecursivePattern, pattern.Kind()); 4421Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4428Assert.Equal(SyntaxKind.ConstantPattern, pattern.Kind()); 4435Assert.Equal(SyntaxKind.OrPattern, pattern.Kind()); 4441Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4447Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4453Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4460Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4467Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4473Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4479Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4486Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4493Assert.Equal(SyntaxKind.NotPattern, pattern.Kind()); 4499Assert.Equal(SyntaxKind.ParenthesizedPattern, pattern.Kind()); 4505Assert.Equal(SyntaxKind.AndPattern, pattern.Kind()); 4511Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind()); 4518Assert.Equal(SyntaxKind.RelationalPattern, pattern.Kind());
Semantics\PrimaryConstructorTests.cs (1)
5344Assert.Equal(SyntaxKind.StructDeclaration, record.Kind());
Microsoft.CodeAnalysis.CSharp.Features (124)
ChangeSignature\CSharpChangeSignatureService.cs (1)
300if (updatedNode?.Kind()
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
243var firstRelevantDirective = root.GetFirstDirective(static directive => directive.Kind() is SyntaxKind.NullableDirectiveTrivia or SyntaxKind.IfDirectiveTrivia);
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
91|| expressionNode.Kind()
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
66if (variableDeclaration.Type.Kind() == SyntaxKind.RefType)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (3)
324Debug.Assert(containingPattern.Kind() is SyntaxKind.VarPattern or SyntaxKind.DeclarationPattern or SyntaxKind.RecursivePattern); 507if (binaryExpression.Left.Kind() == NullLiteralExpression || binaryExpression.Right.Kind() == NullLiteralExpression)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
613switch (argumentSyntax.Expression?.Kind())
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
215var type = constructorInitializer.Kind() == SyntaxKind.BaseConstructorInitializer
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
63type.Kind() is SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration &&
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (3)
76accessorListSyntax.Accessors.FirstOrDefault(a => a.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration)); 91accessorDeclarationSyntax.Kind(), info.LanguageVersion, preference, cancellationToken, 128propertyDeclaration.AccessorList.Accessors[0].Kind() == SyntaxKind.GetAccessorDeclaration)
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
30=> literalExpression.Kind() == SyntaxKind.StringLiteralExpression;
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (1)
85switch (incrementor.Kind())
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (5)
57switch (current.Kind()) 216switch (statementCannotBeConverted.Kind()) 221switch (expression.Kind()) 299.Where(statement => statement.Kind() != SyntaxKind.LocalFunctionStatement).ToArray(); 317lastNonLocalFunctionStatement.Kind() == SyntaxKind.YieldBreakStatement &&
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (3)
116switch (node.Kind()) 216throw new ArgumentException($"Unexpected node kind {node.Kind()}"); 839switch (queryClause.Kind())
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
84throw ExceptionUtilities.UnexpectedValue(baseDeclaration.Kind());
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
33=> stringExpression.Kind() is SyntaxKind.StringLiteralExpression;
Debugging\CSharpProximityExpressionsService.RelevantExpressionsCollector.cs (2)
112switch (component.Kind()) 140switch (component.Kind())
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
189switch (previousStatement.Kind()) 235switch (statement.Kind())
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (3)
62switch (expression.Kind()) 282if (prefixUnaryExpression.Kind() is SyntaxKind.LogicalNotExpression or SyntaxKind.BitwiseNotExpression or SyntaxKind.UnaryMinusExpression or SyntaxKind.UnaryPlusExpression) 352switch (binaryExpression.Kind())
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
51switch (member.Kind()) 123if (member.Kind() is
EditAndContinue\BreakpointSpans.cs (2)
584switch (statement.Kind()) 674if (forEachStatement.Kind() == SyntaxKind.ForEachStatement)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
899if (oldNode.Kind() != newNode.Kind() || !AreEquivalentIgnoringLambdaBodies(oldNode.Expression, newNode.Expression)) 904switch (oldNode.Kind()) 908default: throw ExceptionUtilities.UnexpectedValue(oldNode.Kind()); 2949isRude = oldCheckedStatement.Kind() != newCheckedStatement.Kind();
EditAndContinue\SyntaxComparer.cs (7)
1223if (leftStatement.Kind() == SyntaxKind.Block && rightStatement.Kind() == SyntaxKind.Block) 1302switch (commonForEach.Kind()) 1314throw ExceptionUtilities.UnexpectedValue(commonForEach.Kind()); 1320switch (expression.Kind()) 1345switch (designation.Kind()) 1364throw ExceptionUtilities.UnexpectedValue(designation.Kind());
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
437if (declaration.Designation.Kind() != SyntaxKind.SingleVariableDesignation) 555return statements[index + 1].Kind() == SyntaxKind.ReturnStatement;
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
275assignment.Expression.Kind() != SyntaxKind.SimpleAssignmentExpression)
GenerateConstructorFromMembers\CSharpGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
65var getAccessor = propertyDeclaration.AccessorList?.Accessors.FirstOrDefault(a => a.Kind() == SyntaxKind.GetAccessorDeclaration);
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
71if (gotoStatement.Kind() is SyntaxKind.GotoCaseStatement or SyntaxKind.GotoDefaultStatement ||
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
42if (member.Kind() is
MoveToNamespace\CSharpMoveToNamespaceService.cs (1)
36_ => throw ExceptionUtilities.UnexpectedValue(baseNamespace.Kind()),
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
146switch (x.Kind()) 187switch (x.Kind())
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (4)
84propertyDeclaration.Kind(), languageVersion, expressionBodyPreference, cancellationToken, 182accessorDeclaration.Kind(), languageVersion, expressionBodyPreference, cancellationToken, 196createReturnStatementForExpression: accessorDeclaration.Kind() == SyntaxKind.GetAccessorDeclaration, 322invocation.ArgumentList.Arguments[0].Expression.Kind() == SyntaxKind.DeclarationExpression)
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
266methodDeclaration.Kind(), languageVersion, expressionBodyPreference, cancellationToken, 330var operatorKind = parent.Kind() switch
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (22)
143if (condition.Kind() is SyntaxKind.LessThanExpression or 147equals = condition.Kind() == SyntaxKind.LessThanOrEqualExpression; 152if (condition.Kind() is SyntaxKind.GreaterThanExpression or 156equals = condition.Kind() == SyntaxKind.GreaterThanOrEqualExpression; 172postfixUnary.Kind() == SyntaxKind.PostIncrementExpression && 179prefixUnary.Kind() == SyntaxKind.PreIncrementExpression && 186assignment.Kind() == SyntaxKind.AddAssignmentExpression && 211if (condition.Kind() == SyntaxKind.GreaterThanOrEqualExpression) 218if (condition.Kind() == SyntaxKind.LessThanOrEqualExpression) 235postfixUnary.Kind() == SyntaxKind.PostDecrementExpression && 242prefixUnary.Kind() == SyntaxKind.PreDecrementExpression && 249assignment.Kind() == SyntaxKind.SubtractAssignmentExpression && 323if ((outerBinary.Kind() == SyntaxKind.SubtractExpression && innerLeft.Kind() == SyntaxKind.AddExpression) || 324(outerBinary.Kind() == SyntaxKind.AddExpression && innerLeft.Kind() == SyntaxKind.SubtractExpression)) 334if (outerBinary.Kind() == SyntaxKind.LessThanOrEqualExpression && 336innerRight.Kind() == SyntaxKind.SubtractExpression && 344if (outerBinary.Kind() == SyntaxKind.GreaterThanOrEqualExpression && 346innerLeft.Kind() == SyntaxKind.SubtractExpression && 366var newOperatorKind = condition.Kind() is SyntaxKind.LessThanExpression or SyntaxKind.LessThanOrEqualExpression 385_ => throw ExceptionUtilities.UnexpectedValue(after.Kind())
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (1)
60var includeInstance = throughExpression.Kind() is not (SyntaxKind.IdentifierName or SyntaxKind.SimpleMemberAccessExpression or SyntaxKind.PredefinedType) ||
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
266return node.Kind();
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
31varPattern.Designation.Kind() is SyntaxKind.DiscardDesignation or SyntaxKind.SingleVariableDesignation)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
293_ => throw ExceptionUtilities.UnexpectedValue(expression.Kind()),
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
142else if (directive.Kind() is
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
93if (addressOfExpression.Kind() == SyntaxKind.AddressOfExpression)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
403if (memberAccess.Kind() != SyntaxKind.SimpleMemberAccessExpression)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
127if (binaryExpression.Kind() != SyntaxKind.AddExpression)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (4)
76if (assignment.Kind() != SyntaxKind.SimpleAssignmentExpression) 203if (arg0.Kind() == SyntaxKind.NullLiteralExpression || 204arg1.Kind() == SyntaxKind.NullLiteralExpression) 210testedExpression = arg0.Kind() == SyntaxKind.NullLiteralExpression ? arg1 : arg0;
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
61var properties = binaryExpression.Kind() == SyntaxKind.EqualsExpression
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
368variableDeclarator.Initializer.Value.Kind() is
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (2)
100if (binaryExpression.Kind() is SyntaxKind.EqualsExpression) 110else if (binaryExpression.Kind() is SyntaxKind.NotEqualsExpression)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
96var defAssignedWhenTrue = _comparison.Kind() is SyntaxKind.NotEqualsExpression or SyntaxKind.IsExpression; 242if (_operand.Kind() == SyntaxKind.IdentifierName)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
82var operand = GetNullCheckOperand(comparisonLeft, comparison.Kind(), comparisonRight)?.WalkDownParentheses();
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
26if (asExpression.Kind() == SyntaxKind.AsExpression)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
377Debug.Assert(constructorDeclaration.Initializer.Kind() == SyntaxKind.ThisConstructorInitializer); 472if (assignmentExpression.Kind() != SyntaxKind.SimpleAssignmentExpression)
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
222=> priorStatement.Kind() is SyntaxKind.GotoStatement or
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
72if (argument.Kind() != SyntaxKind.OmittedTypeArgument)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(baseNamespace.Kind()),
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
160switch (switchLabel.Kind())
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
76var currentAccessor = currentAccessorList.Accessors.First(a => a.Kind() == accessor.Kind());
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
50if (enclosingType?.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.RecordDeclaration &&
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
177switch (designation.Kind()) 188throw ExceptionUtilities.UnexpectedValue(designation.Kind());
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
123return binaryExpression.Kind() switch
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.IsPatternExpression))
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
58if (typeArgumentList.Arguments.Any(a => a.Kind() != SyntaxKind.OmittedTypeArgument))
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (3)
91while (name.Kind() == SyntaxKind.QualifiedName) 381switch (node.Kind()) 411ExceptionUtilities.UnexpectedValue(node.Kind());
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
49=> accessor.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
177Assert.Equal(SyntaxKind.IdentifierName, initializerSyntax.Kind());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (41)
Semantics\ColorColorTests.cs (17)
598Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 638Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 645Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1067Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1074Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1113Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1120Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1159Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1166Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1204Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1211Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1245Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1255Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1282Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1289Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind()); 1845Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 1852Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, parentExpr.Kind());
Semantics\IteratorTests.cs (2)
461Assert.Equal(SyntaxKind.YieldReturnStatement, yieldNode.Kind()); 484Assert.Equal(SyntaxKind.YieldBreakStatement, yieldNode.Kind());
Semantics\LambdaTests.cs (1)
842Where(e => e.Kind() == SyntaxKind.AddExpression).Single();
Semantics\ObjectAndCollectionInitializerTests.cs (3)
3694Assert.Equal(SyntaxKind.SimpleAssignmentExpression, listAssignment.Kind()); 3744Assert.Equal(SyntaxKind.SimpleAssignmentExpression, listAssignment.Kind()); 3788Assert.Equal(SyntaxKind.SimpleAssignmentExpression, listAssignment.Kind());
Semantics\RecordStructTests.cs (1)
6043Assert.Equal(SyntaxKind.RecordStructDeclaration, record.Kind());
Semantics\ScriptSemanticsTests.cs (2)
245Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 562Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind());
Semantics\StackAllocInitializerTests.cs (1)
1154Assert.Equal(SyntaxKind.CastExpression, obj1.Initializer.Value.Kind());
Semantics\StackAllocSpanExpressionsTests.cs (1)
132Assert.Equal(SyntaxKind.CastExpression, obj1.Initializer.Value.Kind());
Semantics\UnsafeTests.cs (13)
7258Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7295Assert.Equal(SyntaxKind.FieldDeclaration, syntax.Kind()); 7324Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7362Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7405Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7536Assert.Equal(SyntaxKind.PointerIndirectionExpression, syntax.Kind()); 7846Assert.Equal(SyntaxKind.PointerMemberAccessExpression, syntax.Kind()); 7913Assert.Equal(SyntaxKind.PointerMemberAccessExpression, syntax.Kind()); 8159Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 8226Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 8284Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 8865if (binOpSyntax.Kind() == SyntaxKind.SimpleAssignmentExpression) 9327if (binOpSyntax.Kind() == SyntaxKind.SimpleAssignmentExpression)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (60)
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
268Assert.Equal(SyntaxKind.NumericLiteralExpression, literalSyntax.Kind());
Compilation\GetSemanticInfoTests.cs (38)
249Assert.Equal(SyntaxKind.SimpleAssignmentExpression, v1.Kind()); 262Assert.Equal(SyntaxKind.InvocationExpression, v6.Kind()); 544Assert.Equal(SyntaxKind.SimpleAssignmentExpression, v3.Kind()); 1049Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxList[4].Kind()); 1050Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxList[5].Kind()); 1140Assert.Equal(SyntaxKind.GreaterThanExpression, expr.Kind()); 1413Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind()); 1451Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind()); 1489Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind()); 1525Assert.Equal(SyntaxKind.GenericName, exprSyntaxToBind.Kind()); 1556Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1578Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1606Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1630Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1669Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1702Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1737Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1772Assert.Equal(SyntaxKind.ThisExpression, exprSyntaxToBind.Kind()); 1808Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1844Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1885Assert.Equal(SyntaxKind.GenericName, nameSyntaxToBind.Kind()); 1914Assert.Equal(SyntaxKind.ArrayType, exprSyntaxToBind.Kind()); 1950Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 1986Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 2022Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 2057Assert.Equal(SyntaxKind.IdentifierName, exprSyntaxToBind.Kind()); 2227Assert.Equal(SyntaxKind.DefaultExpression, exprSyntaxToBind.Kind()); 3787Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, syntax.Kind()); 3820Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, syntax.Kind()); 3847Assert.Equal(SyntaxKind.IdentifierName, syntax.Kind()); 3873Assert.Equal(SyntaxKind.IdentifierName, syntax.Kind()); 3914Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, syntax.Kind()); 3954Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, syntax.Kind()); 3999Assert.Equal(SyntaxKind.QualifiedName, syntax.Kind()); 4039Assert.Equal(SyntaxKind.InvocationExpression, originalSyntax.Kind()); 4067Assert.Equal(SyntaxKind.InvocationExpression, speculativeSyntax.Kind()); 4753Assert.Equal(SyntaxKind.TrueLiteralExpression, trueLiteral.Kind()); 4758Assert.Equal(SyntaxKind.Parameter, parameterSyntax.Kind());
Compilation\SemanticModelAPITests.cs (2)
2311Assert.Equal(SyntaxKind.UnknownAccessorDeclaration, accessorSyntax.Kind()); 2723if (speculatedTypeSyntax.Kind() == SyntaxKind.QualifiedName)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
3178Assert.Equal(SyntaxKind.UnknownAccessorDeclaration, accessorDecl.Kind()); 3636Assert.Equal(SyntaxKind.EnumMemberDeclaration, enumMemberDecl.Kind());
Symbols\ExtensionMethodTests.cs (3)
3013Assert.Equal(SyntaxKind.InvocationExpression, call.Kind()); 3153Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, firstInvocationExpression.Kind()); 3159Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, secondInvocationExpression.Kind());
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
161var nodes = CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(comp, sym, 1, node.Kind());
Symbols\UnsignedRightShiftTests.cs (13)
123var unsignedShift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftExpression).First(); 124var shift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.RightShiftExpression).First(); 626var unsignedShift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftAssignmentExpression).First(); 627var shift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.RightShiftAssignmentExpression).First(); 1176var unsignedShift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftExpression).First(); 1177var shift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.RightShiftExpression).First(); 1584var unsignedShift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftAssignmentExpression).First(); 1585var shift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.RightShiftAssignmentExpression).First(); 1983var unsignedShift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftExpression).First(); 2235var unsignedShift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftExpression).First(); 2377var unsignedShift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftAssignmentExpression).First(); 2511var unsignedShift = tree.GetRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftExpression).First(); 2608var unsignedShift = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().Where(e => e.Kind() == SyntaxKind.UnsignedRightShiftAssignmentExpression).First();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1521)
IncrementalParsing\BinaryExpression.cs (2)
36Assert.Equal(SyntaxKind.MultiplyExpression, expression.Kind()); 202Assert.Equal(treeNode.Kind(), newSyntaxKind);
IncrementalParsing\CompoundAssignment.cs (1)
108Assert.Equal(binNode.Kind(), newSyntaxKind);
IncrementalParsing\IncrementalParsingTests.cs (14)
359Assert.Equal(SyntaxKind.IfDirectiveTrivia, oldDirectives[0].Kind()); 360Assert.Equal(SyntaxKind.RegionDirectiveTrivia, oldDirectives[1].Kind()); 361Assert.Equal(SyntaxKind.EndRegionDirectiveTrivia, oldDirectives[2].Kind()); 362Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, oldDirectives[3].Kind()); 371Assert.Equal(SyntaxKind.IfDirectiveTrivia, newDirectives[0].Kind()); 372Assert.Equal(SyntaxKind.RegionDirectiveTrivia, newDirectives[1].Kind()); 373Assert.Equal(SyntaxKind.BadDirectiveTrivia, newDirectives[2].Kind()); 405Assert.Equal(SyntaxKind.IfDirectiveTrivia, oldDirectives[0].Kind()); 406Assert.Equal(SyntaxKind.RegionDirectiveTrivia, oldDirectives[1].Kind()); 407Assert.Equal(SyntaxKind.BadDirectiveTrivia, oldDirectives[2].Kind()); 414Assert.Equal(SyntaxKind.IfDirectiveTrivia, newDirectives[0].Kind()); 415Assert.Equal(SyntaxKind.RegionDirectiveTrivia, newDirectives[1].Kind()); 416Assert.Equal(SyntaxKind.EndRegionDirectiveTrivia, newDirectives[2].Kind()); 417Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, newDirectives[3].Kind());
IncrementalParsing\TypeChanges.cs (4)
94Assert.Equal(SyntaxKind.SetAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind()); 110Assert.Equal(SyntaxKind.GetAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind()); 126Assert.Equal(SyntaxKind.RemoveAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind()); 142Assert.Equal(SyntaxKind.AddAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind());
IncrementalParsing\UnaryExpression.cs (1)
84Assert.Equal(treeNode.Kind(), newSyntaxKind);
LexicalAndXml\PreprocessorTests.cs (8)
132actual.Add(dt.Kind()); 151actual.Add(dt.Kind()); 303Assert.Equal(expected.PragmaKind, dt.Kind()); 338if (actualWarningNumber.Kind() == SyntaxKind.NumericLiteralExpression) 343else if (actualWarningNumber.Kind() == SyntaxKind.IdentifierName) 383throw new NotImplementedException(dt.Kind().ToString()); 444Assert.Equal(exp.Kind, mem.Kind()); 1685Assert.Equal(SyntaxKind.ClassDeclaration, node.Members[0].Kind());
LexicalAndXml\XmlDocCommentTests.cs (120)
87Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 88Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 148Assert.Equal(SyntaxKind.ClassDeclaration, tree.GetCompilationUnitRoot().Members[0].Kind()); 156Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 158Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 159Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 177Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 179Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 180Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 194Assert.Equal(SyntaxKind.ClassDeclaration, tree.GetCompilationUnitRoot().Members[0].Kind()); 202Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 204Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 205Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 224Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 226Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 247Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 249Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 270Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 272Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 275Assert.Equal(SyntaxKind.XmlTextAttribute, element.Attributes[0].Kind()); 297Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 299Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 302Assert.Equal(SyntaxKind.XmlTextAttribute, element.Attributes[0].Kind()); 325Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 327Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 349Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 351Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 353Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 374Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 376Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 378Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 400Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 402Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 404Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 427Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 429Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 454Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 456Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 482Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 484Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 487Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 511Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 513Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 516Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 541Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 543Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 570Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 572Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 600Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 602Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 605Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 631Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 633Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 636Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 654Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 656Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 676Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 678Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 698Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 700Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 720Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 722Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 762Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 764Assert.Equal(SyntaxKind.XmlElement, doc.Content[1].Kind()); 796Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 798Assert.Equal(SyntaxKind.XmlElement, doc.Content[1].Kind()); 829Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 831Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 860Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 862Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 870Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 888Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 890Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 913Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 915Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 939Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 941Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 964Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 966Assert.Equal(SyntaxKind.XmlCDataSection, doc.Content[1].Kind()); 991Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 993Assert.Equal(SyntaxKind.XmlComment, doc.Content[1].Kind()); 1022Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1024Assert.Equal(SyntaxKind.XmlComment, doc.Content[1].Kind()); 1032Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 1050Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1052Assert.Equal(SyntaxKind.XmlComment, doc.Content[1].Kind()); 1075Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1077Assert.Equal(SyntaxKind.XmlComment, doc.Content[1].Kind()); 1100Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1102Assert.Equal(SyntaxKind.XmlComment, doc.Content[1].Kind()); 1127Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1129Assert.Equal(SyntaxKind.XmlProcessingInstruction, doc.Content[1].Kind()); 1160Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1162Assert.Equal(SyntaxKind.XmlProcessingInstruction, doc.Content[1].Kind()); 1173Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind()); 1191Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1193Assert.Equal(SyntaxKind.XmlProcessingInstruction, doc.Content[1].Kind()); 1217Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1219Assert.Equal(SyntaxKind.XmlProcessingInstruction, doc.Content[1].Kind()); 1244Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1246Assert.Equal(SyntaxKind.XmlProcessingInstruction, doc.Content[1].Kind()); 1272Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1317Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1341Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1366Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1390Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1415Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1439Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1464Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1488Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1568Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1570Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 1596Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1598Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 1624Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 1625Assert.Equal(SyntaxKind.XmlEmptyElement, doc.Content[1].Kind()); 1650Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 2774Assert.Equal(SyntaxKind.XmlText, doc.Content[0].Kind()); 2775Assert.Equal(SyntaxKind.XmlElement, doc.Content[1].Kind()); 2776Assert.Equal(SyntaxKind.XmlText, doc.Content[2].Kind());
Parsing\DeclarationParsingTests.cs (217)
265Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 291Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 320Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 349Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 376Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 404Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 434Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 465Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 501Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 533Assert.Equal(SyntaxKind.AttributeList, file.AttributeLists[0].Kind()); 570Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 592Assert.Equal(SyntaxKind.FileScopedNamespaceDeclaration, file.Members[0].Kind()); 613Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 635Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 658Assert.Equal(SyntaxKind.FileScopedNamespaceDeclaration, file.Members[0].Kind()); 680Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 703Assert.Equal(SyntaxKind.FileScopedNamespaceDeclaration, file.Members[0].Kind()); 725Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 749Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 757Assert.Equal(SyntaxKind.NamespaceDeclaration, ns.Members[0].Kind()); 780Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 806Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 833Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 860Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 887Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 914Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 941Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 968Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 995Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1023Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1050Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1081Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1113Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1132Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1155Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1173Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1216Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1235Assert.Equal(SyntaxKind.ConstructorConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1260Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1279Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1301Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1320Assert.Equal(SyntaxKind.StructConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1342Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1362Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1368Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[1].Kind()); 1373Assert.Equal(SyntaxKind.ConstructorConstraint, cs.ConstraintClauses[0].Constraints[2].Kind()); 1398Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1417Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1428Assert.Equal(SyntaxKind.ConstructorConstraint, cs.ConstraintClauses[1].Constraints[0].Kind()); 1453Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1472Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1483Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[1].Constraints[0].Kind()); 1499Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1518Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1527Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[1].Constraints[0].Kind()); 1543Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1567Assert.Equal(SyntaxKind.ClassConstraint, cs.ConstraintClauses[0].Constraints[0].Kind()); 1573Assert.Equal(SyntaxKind.TypeConstraint, cs.ConstraintClauses[0].Constraints[1].Kind()); 1578Assert.Equal(SyntaxKind.ConstructorConstraint, cs.ConstraintClauses[0].Constraints[2].Kind()); 1603Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 1628Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 1658Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 1690Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind()); 1715Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1730Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1755Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1770Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1796Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1811Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1837Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1852Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1879Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1894Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1921Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1936Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 1962Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1977Assert.Equal(SyntaxKind.ClassDeclaration, cs.Members[0].Kind()); 2003Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2030Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2058Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2105Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2151Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2186Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2221Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2263Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2299Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2335Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2372Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2405Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2441Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2456Assert.Equal(SyntaxKind.DelegateDeclaration, cs.Members[0].Kind()); 2483Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2498Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2529Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2544Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2575Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2590Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2620Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2635Assert.Equal(SyntaxKind.IncompleteMember, cs.Members[0].Kind()); 2650Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2665Assert.Equal(SyntaxKind.IncompleteMember, cs.Members[0].Kind()); 2678Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2693Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2746Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2761Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 2793Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind()); 2808Assert.Equal(SyntaxKind.MethodDeclaration, structDecl.Members[0].Kind()); 2840Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind()); 2855Assert.Equal(SyntaxKind.MethodDeclaration, structDecl.Members[0].Kind()); 2860Assert.Equal(SyntaxKind.RefType, ms.ReturnType.Kind()); 2890Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind()); 2905Assert.Equal(SyntaxKind.PropertyDeclaration, structDecl.Members[0].Kind()); 2931Assert.Equal(SyntaxKind.StructDeclaration, file.Members[0].Kind()); 2946Assert.Equal(SyntaxKind.PropertyDeclaration, structDecl.Members[0].Kind()); 2992Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3007Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3044Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3059Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3105Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3120Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3170Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3185Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3244Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3259Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3309Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3324Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3361Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3376Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3407Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3422Assert.Equal(SyntaxKind.MethodDeclaration, cs.Members[0].Kind()); 3445Assert.Equal(SyntaxKind.TypeConstraint, ms.ConstraintClauses[0].Constraints[0].Kind()); 3488Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3504Assert.Equal(SyntaxKind.ConstructorDeclaration, cs.Members[0].Kind()); 3523Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3539Assert.Equal(SyntaxKind.ConstructorDeclaration, cs.Members[0].Kind()); 3570Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3586Assert.Equal(SyntaxKind.DestructorDeclaration, cs.Members[0].Kind()); 3607Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3622Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3667Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3682Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3707Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3722Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3761Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3776Assert.Equal(SyntaxKind.EventFieldDeclaration, cs.Members[0].Kind()); 3817Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3832Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3862Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3877Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3906Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3921Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3934Assert.Equal(SyntaxKind.ArrayInitializerExpression, fs.Declaration.Variables[0].Initializer.Value.Kind()); 3951Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3966Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 4005Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4020Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 4068Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4083Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 4114Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4129Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4168Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4183Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4223Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4238Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4296Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4311Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4350Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4365Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4404Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4419Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4459Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4463Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4488Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4503Assert.Equal(isEvent ? SyntaxKind.EventDeclaration : SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4518Assert.Equal(accessorKind, ps.AccessorList.Accessors[0].Kind()); 4525Assert.Equal(SyntaxKind.ExpressionStatement, body.Statements[0].Kind()); 4528Assert.Equal(SyntaxKind.SimpleAssignmentExpression, es.Expression.Kind()); 4530Assert.Equal(SyntaxKind.IdentifierName, bx.Right.Kind()); 4544Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4559Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4574Assert.Equal(accessorKind, es.AccessorList.Accessors[0].Kind()); 4581Assert.Equal(SyntaxKind.ExpressionStatement, body.Statements[0].Kind()); 4584Assert.Equal(SyntaxKind.SimpleAssignmentExpression, xs.Expression.Kind()); 4586Assert.Equal(SyntaxKind.IdentifierName, bx.Right.Kind()); 4600Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4615Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4684Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4699Assert.Equal(SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4740Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4755Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4794Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4809Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4877Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4892Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4934Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4949Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5001Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5016Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5069Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5084Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5136Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5151Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5212Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5227Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5280Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5295Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 5360Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5375Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 5474Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5489Assert.Equal(SyntaxKind.OperatorDeclaration, cs.Members[0].Kind()); 5537Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5552Assert.Equal(SyntaxKind.ConversionOperatorDeclaration, cs.Members[0].Kind()); 5585Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5600Assert.Equal(SyntaxKind.ConversionOperatorDeclaration, cs.Members[0].Kind()); 5635Assert.Equal(SyntaxKind.AliasQualifiedName, ns.Name.Kind()); 5647Assert.Equal(SyntaxKind.GenericName, ns.Name.Kind()); 5659Assert.Equal(SyntaxKind.GenericName, ns.Name.Kind());
Parsing\DeconstructionTests.cs (20)
1881Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 1894Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 1896Assert.Equal(SyntaxKind.InvocationExpression, expression.Kind()); 1906Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 1908Assert.Equal(SyntaxKind.InvocationExpression, expression.Kind()); 1918Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 1920Assert.Equal(SyntaxKind.InvocationExpression, expression.Kind()); 1930Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 1932Assert.Equal(SyntaxKind.InvocationExpression, expression.Kind()); 1937Assert.Equal(SyntaxKind.SimpleAssignmentExpression, lhsContent.Expression.Kind()); 1947Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 1949Assert.Equal(SyntaxKind.InvocationExpression, expression.Kind()); 1954Assert.Equal(SyntaxKind.CastExpression, lhsContent.Expression.Kind()); 1968Assert.Equal(SyntaxKind.TupleExpression, paren.Expression.Kind()); 1982Assert.Equal(SyntaxKind.TupleExpression, paren.Expression.Kind()); 1998Assert.Equal(SyntaxKind.TupleExpression, paren3.Expression.Kind()); 2009Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expression.Kind()); 2020Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expression.Kind()); 2039Assert.True(statement.Kind() == SyntaxKind.ForStatement); 2050Assert.Equal(SyntaxKind.TupleType, nullable.ElementType.Kind());
Parsing\ExpressionParsingTests.cs (145)
37Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 432Assert.Equal(SyntaxKind.IdentifierName, expr.Kind()); 445Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.Kind()); 457Assert.Equal(opKind, expr.Kind()); 480Assert.Equal(opKind, expr.Kind()); 483switch (expr.Kind()) 512Assert.Equal(SyntaxKind.StringLiteralExpression, expr.Kind()); 527Assert.Equal(SyntaxKind.StringLiteralExpression, expr.Kind()); 542Assert.Equal(SyntaxKind.CharacterLiteralExpression, expr.Kind()); 556Assert.Equal(SyntaxKind.NumericLiteralExpression, expr.Kind()); 570Assert.Equal(opKind, expr.Kind()); 577Assert.Equal(SyntaxKind.IdentifierName, us.Operand.Kind()); 601Assert.Equal(opKind, expr.Kind()); 608Assert.Equal(SyntaxKind.IdentifierName, us.Operand.Kind()); 627Assert.Equal(opKind, expr.Kind()); 673Assert.Equal(opKind, expr.Kind()); 774Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind()); 780Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind()); 786Assert.Equal(SyntaxKind.ConditionalAccessExpression, cons.Kind()); 792Assert.Equal(SyntaxKind.MemberBindingExpression, cons.Kind()); 817Assert.Equal(opKind, expr.Kind()); 880Assert.Equal(SyntaxKind.RefValueExpression, expr.Kind()); 901Assert.Equal(SyntaxKind.ConditionalExpression, expr.Kind()); 920Assert.Equal(SyntaxKind.ConditionalExpression, expr.Kind()); 931Assert.Equal(SyntaxKind.CastExpression, expr.Kind()); 952Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind()); 973Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind()); 998Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind()); 1023Assert.Equal(SyntaxKind.InvocationExpression, expr.Kind()); 1048Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1069Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1094Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1119Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1140Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1162Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1185Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1208Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1236Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1259Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1283Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1309Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1333Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 1348Assert.Equal(SyntaxKind.SimpleAssignmentExpression, oc.Initializer.Expressions[0].Kind()); 1351Assert.Equal(SyntaxKind.ObjectInitializerExpression, b.Right.Kind()); 1361Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1839Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1861Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1885Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 1907Assert.Equal(SyntaxKind.ImplicitArrayCreationExpression, expr.Kind()); 1927Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, expr.Kind()); 1948Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind()); 1979Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind()); 2009Assert.Equal(SyntaxKind.AnonymousMethodExpression, expr.Kind()); 2034Assert.Equal(SyntaxKind.SimpleLambdaExpression, expr.Kind()); 2052Assert.Equal(SyntaxKind.SimpleLambdaExpression, expr.Kind()); 2059Assert.Equal(SyntaxKind.RefExpression, lambda.Body.Kind()); 2070Assert.Equal(SyntaxKind.SimpleLambdaExpression, expr.Kind()); 2078Assert.Equal(SyntaxKind.Block, lambda.Body.Kind()); 2090Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2110Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2119Assert.Equal(SyntaxKind.RefExpression, lambda.Body.Kind()); 2130Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2140Assert.Equal(SyntaxKind.Block, lambda.Body.Kind()); 2152Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2161Assert.Equal(SyntaxKind.Parameter, lambda.ParameterList.Parameters[0].Kind()); 2176Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2185Assert.Equal(SyntaxKind.Parameter, lambda.ParameterList.Parameters[0].Kind()); 2203Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2212Assert.Equal(SyntaxKind.Parameter, lambda.ParameterList.Parameters[0].Kind()); 2228Assert.Equal(SyntaxKind.ParenthesizedLambdaExpression, expr.Kind()); 2237Assert.Equal(SyntaxKind.Parameter, lambda.ParameterList.Parameters[0].Kind()); 2255Assert.Equal(SyntaxKind.TupleExpression, expr.Kind()); 2264Assert.Equal(SyntaxKind.IdentifierName, tuple.Arguments[0].Expression.Kind()); 2275Assert.Equal(SyntaxKind.TupleExpression, expr.Kind()); 2284Assert.Equal(SyntaxKind.TupleExpression, tuple.Arguments[0].Expression.Kind()); 2296Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2313Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2329Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2336Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2347Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2362Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2368Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2369Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2380Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2387Assert.Equal(SyntaxKind.QueryContinuation, qs.Body.Continuation.Kind()); 2397Assert.Equal(SyntaxKind.SelectClause, qs.Body.Continuation.Body.SelectOrGroup.Kind()); 2413Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2420Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2430Assert.Equal(SyntaxKind.WhereClause, qs.Body.Clauses[0].Kind()); 2438Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2453Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2460Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2469Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2471Assert.Equal(SyntaxKind.FromClause, qs.Body.Clauses[0].Kind()); 2481Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2496Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2503Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2512Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2514Assert.Equal(SyntaxKind.LetClause, qs.Body.Clauses[0].Kind()); 2526Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2541Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2548Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2557Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2559Assert.Equal(SyntaxKind.OrderByClause, qs.Body.Clauses[0].Kind()); 2571Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2586Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2593Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2602Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2604Assert.Equal(SyntaxKind.OrderByClause, qs.Body.Clauses[0].Kind()); 2620Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2635Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2642Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2651Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2653Assert.Equal(SyntaxKind.OrderByClause, qs.Body.Clauses[0].Kind()); 2668Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2683Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2690Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2699Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2701Assert.Equal(SyntaxKind.OrderByClause, qs.Body.Clauses[0].Kind()); 2716Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2731Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2747Assert.Equal(SyntaxKind.GroupClause, qs.Body.SelectOrGroup.Kind()); 2770Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2786Assert.Equal(SyntaxKind.GroupClause, qs.Body.SelectOrGroup.Kind()); 2798Assert.Equal(SyntaxKind.QueryContinuation, qs.Body.Continuation.Kind()); 2807Assert.Equal(SyntaxKind.SelectClause, qs.Body.Continuation.Body.SelectOrGroup.Kind()); 2823Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2830Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2840Assert.Equal(SyntaxKind.JoinClause, qs.Body.Clauses[0].Kind()); 2864Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2879Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2886Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2897Assert.Equal(SyntaxKind.JoinClause, qs.Body.Clauses[0].Kind()); 2919Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2934Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 2941Assert.Equal(SyntaxKind.FromClause, qs.FromClause.Kind()); 2951Assert.Equal(SyntaxKind.JoinClause, qs.Body.Clauses[0].Kind()); 2976Assert.Equal(SyntaxKind.SelectClause, qs.Body.SelectOrGroup.Kind()); 2991Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 3013Assert.Equal(SyntaxKind.ArrayCreationExpression, expr.Kind()); 3027Assert.Equal(SyntaxKind.ObjectCreationExpression, expr.Kind()); 3042Assert.Equal(SyntaxKind.QueryExpression, expr.Kind()); 3054Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.Kind()); 3057Assert.Equal(SyntaxKind.ElementAccessExpression, parenExp.Expression.Kind()); 4764Assert.Equal(SyntaxKind.DefaultLiteralExpression, expr.Kind());
Parsing\LineSpanDirectiveParsingTests.cs (1)
32UsingNode(node.GetDirectives().Single(d => d.Kind() is SyntaxKind.LineDirectiveTrivia or SyntaxKind.LineSpanDirectiveTrivia));
Parsing\LocalFunctionParsingTests.cs (5)
1232s => Assert.Equal(SyntaxKind.LocalFunctionStatement, s.Kind())); 1350Assert.Equal(SyntaxKind.PredefinedType, s1.ReturnType.Kind()); 1356Assert.Equal(SyntaxKind.NumericLiteralExpression, s1.ExpressionBody.Expression.Kind()); 1360Assert.Equal(SyntaxKind.PredefinedType, s1.ReturnType.Kind()); 1368Assert.Equal(SyntaxKind.NumericLiteralExpression, s2.Expression.Kind());
Parsing\NameParsingTests.cs (52)
36Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 49Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 62Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 76Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 91Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 106Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 121Assert.Equal(SyntaxKind.AliasQualifiedName, name.Kind()); 135Assert.Equal(SyntaxKind.AliasQualifiedName, name.Kind()); 149Assert.Equal(SyntaxKind.QualifiedName, name.Kind()); 162Assert.Equal(SyntaxKind.QualifiedName, name.Kind()); 168Assert.Equal(SyntaxKind.AliasQualifiedName, name.Kind()); 191Assert.Equal(SyntaxKind.QualifiedName, name.Kind()); 197Assert.Equal(SyntaxKind.AliasQualifiedName, name.Kind()); 209Assert.Equal(SyntaxKind.GenericName, name.Kind()); 225Assert.Equal(SyntaxKind.GenericName, name.Kind()); 241Assert.Equal(SyntaxKind.GenericName, name.Kind()); 248Assert.Equal(SyntaxKind.GenericName, gname.TypeArgumentList.Arguments[0].Kind()); 301Assert.Equal(SyntaxKind.GenericName, name.Kind()); 318Assert.Equal(SyntaxKind.GenericName, name.Kind()); 335Assert.Equal(SyntaxKind.IdentifierName, tname.Kind()); 349Assert.Equal(SyntaxKind.QualifiedName, tname.Kind()); 363Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 380Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 388Assert.Equal(SyntaxKind.GenericName, gname.TypeArgumentList.Arguments[0].Kind()); 441Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 477Assert.Equal(SyntaxKind.PredefinedType, tname.Kind()); 490Assert.Equal(SyntaxKind.NullableType, tname.Kind()); 493Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 505Assert.Equal(SyntaxKind.PointerType, tname.Kind()); 508Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 521Assert.Equal(SyntaxKind.PointerType, tname.Kind()); 525while (tname.Kind() == SyntaxKind.PointerType) 534Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 547Assert.Equal(SyntaxKind.ArrayType, tname.Kind()); 556Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 569Assert.Equal(SyntaxKind.ArrayType, tname.Kind()); 578Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 591Assert.Equal(SyntaxKind.ArrayType, tname.Kind()); 609Assert.Equal(SyntaxKind.IdentifierName, name.Kind()); 622Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 631Assert.Equal(SyntaxKind.IdentifierName, arg.Kind()); 647Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 656Assert.Equal(SyntaxKind.IdentifierName, arg.Kind()); 673Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 682Assert.Equal(SyntaxKind.IdentifierName, arg.Kind()); 699Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 709Assert.Equal(SyntaxKind.IdentifierName, arg.Kind()); 715Assert.Equal(SyntaxKind.PredefinedType, arg2.Kind()); 731Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 740Assert.Equal(SyntaxKind.IdentifierName, arg.Kind()); 756Assert.Equal(SyntaxKind.GenericName, tname.Kind()); 765Assert.Equal(SyntaxKind.IdentifierName, arg.Kind());
Parsing\ParsingErrorRecoveryTests.cs (731)
291Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 307Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 484Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 500Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 515Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 529Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 543Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 557Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 572Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 610Assert.Equal(SyntaxKind.IncompleteMember, file.Members[0].Kind()); 626Assert.Equal(SyntaxKind.IncompleteMember, file.Members[0].Kind()); 641Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 656Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 670Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 685Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 700Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 716Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 733Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 751Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 767Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 781Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 795Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 809Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 823Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 847Assert.Equal(SyntaxKind.NamespaceDeclaration, file.Members[0].Kind()); 860Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 861Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 877Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 878Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 893Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 894Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 910Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 911Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 927Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 942Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 956Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 971Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 986Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1000Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1013Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1027Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1040Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1054Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1068Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1081Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1095Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1108Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1122Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1138Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1153Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1167Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1181Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1197Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1212Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1226Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1240Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1257Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1273Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1288Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1302Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1317Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1332Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1346Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1361Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1376Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1390Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1391Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 1408Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1409Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 1425Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1426Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 1443Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1458Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1472Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1487Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1502Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1516Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1531Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1534Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 1535Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1549Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1552Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1553Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1567Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1570Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1571Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1586Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1589Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 1590Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1606Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1609Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1610Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1625Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1628Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1629Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1645Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1648Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 1662Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1665Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1679Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1682Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1697Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1700Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1715Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1718Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1734Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1737Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1752Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1755Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1772Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1775Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1789Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1792Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1806Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1809Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1824Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1827Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1841Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1844Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1860Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1863Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1864Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1879Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1882Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1883Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1899Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1902Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1903Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1918Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1921Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1922Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1939Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1942Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1943Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 1957Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1960Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1974Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 1991Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 1994Assert.Equal(SyntaxKind.ConstructorDeclaration, agg.Members[0].Kind()); 2008Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2023Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2026Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2062Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2065Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2082Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2085Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2101Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2104Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2122Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2125Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2140Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2143Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2171Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2174Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2189Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2192Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2206Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2209Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2225Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2228Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2229Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2265Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2268Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2269Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2286Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2289Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2290Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2306Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2309Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2310Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2328Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2331Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2332Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 2347Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2365Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2382Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2398Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2413Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2429Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2444Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2458Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2475Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2476Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2494Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2495Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2512Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2513Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2529Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2530Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2545Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2546Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2562Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2563Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2578Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2579Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2593Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2594Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2611Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2625Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2640Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2654Assert.Equal(SyntaxKind.DelegateDeclaration, file.Members[0].Kind()); 2670Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2684Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2698Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2712Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2726Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2740Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2754Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2769Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2784Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2798Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2812Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2826Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2827Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2841Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2842Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2856Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2857Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[1].Kind()); 2871Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2873Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2888Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2890Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2904Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2906Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2922Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2924Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2938Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2940Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2954Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2956Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2970Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2972Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 2986Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 2988Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 3002Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3005Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 3006Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 3020Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3023Assert.Equal(SyntaxKind.IncompleteMember, agg.Members[0].Kind()); 3024Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 3038Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3041Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3045Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3046Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3061Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3064Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3068Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3069Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3085Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3088Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3092Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3093Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3109Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3112Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3116Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3117Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3131Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3134Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3138Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3139Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3154Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3157Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3161Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3162Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3177Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3180Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3184Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3185Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3200Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3203Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3207Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3208Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3223Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3226Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3230Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3231Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3246Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3249Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3253Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3267Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3270Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3274Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3288Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3291Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3295Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3309Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3312Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3316Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3330Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3333Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3337Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3351Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3354Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3358Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3372Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3375Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3379Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3394Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3397Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3401Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3403Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3417Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3420Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3424Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3426Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3440Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3443Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3447Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3449Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3463Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3466Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3470Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3472Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3487Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3490Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3494Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3496Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3510Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3513Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3517Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3519Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3533Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3536Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3540Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3542Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3576Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3579Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3583Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3584Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3586Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3601Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3604Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3608Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3609Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3611Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3626Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3629Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3633Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3634Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3636Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3652Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3655Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3659Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3661Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3676Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3679Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3683Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3685Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3700Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3703Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3707Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3709Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 3725Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3728Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3732Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3734Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3735Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3749Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3752Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3756Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3758Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3759Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3773Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3776Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3780Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3782Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3783Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3797Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3800Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3804Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3806Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3807Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3822Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3825Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3829Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3831Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3832Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3846Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3849Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3853Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3855Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3856Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3870Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3873Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3877Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3879Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3880Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3895Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3898Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3902Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3903Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3905Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3906Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3921Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3924Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3928Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3929Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3931Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3932Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3947Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3950Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3954Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3955Assert.Equal(SyntaxKind.IfStatement, ms.Body.Statements[1].Kind()); 3957Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3958Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3974Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 3977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 3981Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 3983Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 3984Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3999Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4002Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4006Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 4008Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 4009Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 4024Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4027Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4031Assert.Equal(SyntaxKind.ExpressionStatement, ms.Body.Statements[0].Kind()); 4033Assert.Equal(SyntaxKind.PreIncrementExpression, es.Expression.Kind()); 4034Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 4050Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4053Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4057Assert.Equal(SyntaxKind.FixedStatement, ms.Body.Statements[0].Kind()); 4071Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4074Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4078Assert.Equal(SyntaxKind.FixedStatement, ms.Body.Statements[0].Kind()); 4116Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4119Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4123Assert.Equal(SyntaxKind.FixedStatement, ms.Body.Statements[0].Kind()); 4137Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4140Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4144Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4158Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4161Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4165Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4179Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4182Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4186Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4201Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4204Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4208Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4223Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4226Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4230Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4246Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4249Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4253Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4269Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4272Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4276Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4290Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4293Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4297Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4313Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4316Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4320Assert.Equal(SyntaxKind.DoStatement, ms.Body.Statements[0].Kind()); 4336Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4339Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4343Assert.Equal(SyntaxKind.DoStatement, ms.Body.Statements[0].Kind()); 4362Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4365Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4369Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4384Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4387Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4391Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4410Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4413Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4417Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4437Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4440Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4444Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4458Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4461Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4465Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4481Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4484Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4488Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4506Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4509Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4513Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4531Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4534Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4538Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4553Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4556Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4560Assert.Equal(SyntaxKind.ForStatement, ms.Body.Statements[0].Kind()); 4578Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4581Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4585Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4591Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4604Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4607Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4611Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4614Assert.NotEqual(SyntaxKind.None, ds.Declaration.Variables[0].Initializer.Kind()); 4617Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4631Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4634Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4638Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4644Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4658Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4661Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4665Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4671Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4686Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4689Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4693Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4699Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4713Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4716Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4720Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4726Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4740Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4743Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4747Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4748Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4754Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4769Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4772Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4776Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4777Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4783Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4798Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4801Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4805Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4806Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4812Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4828Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4831Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4835Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4836Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4842Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4857Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4860Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4864Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4865Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 4871Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4886Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4889Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4893Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4899Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4913Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4916Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4920Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4926Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4940Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4943Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4947Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4953Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4967Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4970Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 4974Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4980Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 4995Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 4998Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5002Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5008Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5022Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5025Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5029Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5035Assert.Equal(SyntaxKind.AnonymousObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5050Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5053Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5057Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5063Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5076Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5079Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5083Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5089Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5106Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5109Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5113Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5119Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5135Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5138Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5142Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5148Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5165Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5168Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5172Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5178Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5818Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5821Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5825Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5831Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5857Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5860Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5864Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5865Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5871Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5886Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5889Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5893Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5894Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5900Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5915Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5918Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5922Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5923Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5929Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5945Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5948Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5952Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5953Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5959Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 5974Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 5977Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 5981Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5982Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 5988Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6008Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6011Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6015Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6021Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6035Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6038Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6042Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6048Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6062Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6065Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6069Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6075Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6089Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6092Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6096Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6102Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6117Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6120Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6124Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6130Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6144Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6147Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6151Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6157Assert.Equal(SyntaxKind.ObjectCreationExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6174Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6177Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6181Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6187Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6205Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6208Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6212Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6218Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6233Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6236Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6240Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6246Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6280Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6283Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6287Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6288Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6294Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6314Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6317Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6321Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6322Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6328Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6344Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6347Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6351Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6352Assert.Equal(SyntaxKind.WhileStatement, ms.Body.Statements[1].Kind()); 6360Assert.Equal(SyntaxKind.TupleExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6402Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6405Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 6426Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6429Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 6430Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 6451Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6454Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 6455Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[1].Kind()); 6464Assert.Equal(SyntaxKind.GetAccessorDeclaration, acc.Kind()); 6486Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6489Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 6490Assert.Equal(SyntaxKind.ClassDeclaration, agg.Members[1].Kind()); 6499Assert.Equal(SyntaxKind.GetAccessorDeclaration, acc.Kind()); 6525Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6528Assert.Equal(SyntaxKind.PropertyDeclaration, agg.Members[0].Kind()); 6529Assert.Equal(SyntaxKind.ClassDeclaration, agg.Members[1].Kind()); 6538Assert.Equal(SyntaxKind.GetAccessorDeclaration, acc.Kind()); 6627Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6630Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6639Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6644Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6647Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6648Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6654Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6672Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6675Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6684Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6689Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6692Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6693Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6699Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6716Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6719Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6728Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6733Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6736Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6737Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6743Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6747Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6765Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6768Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6769Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 6778Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6783Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6786Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6787Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6793Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6813Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6816Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6817Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 6826Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6831Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6834Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6835Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6841Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6860Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6863Assert.Equal(SyntaxKind.MethodDeclaration, agg.Members[0].Kind()); 6864Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 6873Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6878Assert.Equal(SyntaxKind.QueryExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 6881Assert.Equal(SyntaxKind.FromClause, qx.FromClause.Kind()); 6882Assert.Equal(SyntaxKind.OrderByClause, qx.Body.Clauses[0].Kind()); 6888Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6892Assert.Equal(SyntaxKind.IdentifierName, oc.Orderings[0].Expression.Kind()); 6912Assert.Equal(SyntaxKind.ClassDeclaration, file.Members[0].Kind()); 6921Assert.Equal(SyntaxKind.MethodDeclaration, subitem1.Kind()); 6926Assert.Equal(SyntaxKind.LocalDeclarationStatement, subitem1.Body.Statements[0].Kind()); 6938Assert.Equal(SyntaxKind.ClassDeclaration, item1.Members[1].Kind()); 7112Assert.Equal(SyntaxKind.NamespaceDeclaration, namespaceDeclaration.Kind()); 7136Assert.Equal(SyntaxKind.FileScopedNamespaceDeclaration, namespaceDeclaration.Kind());
Parsing\StatementParsingTests.cs (133)
59Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 65Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 66Assert.Equal(SyntaxKind.IdentifierName, ((InvocationExpressionSyntax)es.Expression).Expression.Kind()); 79Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 85Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 86Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, ((InvocationExpressionSyntax)es.Expression).Expression.Kind()); 99Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 104Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 105Assert.Equal(SyntaxKind.GenericName, ((InvocationExpressionSyntax)es.Expression).Expression.Kind()); 118Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 124Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 125Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, ((InvocationExpressionSyntax)es.Expression).Expression.Kind()); 138Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 144Assert.Equal(SyntaxKind.InvocationExpression, es.Expression.Kind()); 145Assert.Equal(SyntaxKind.SimpleMemberAccessExpression, ((InvocationExpressionSyntax)es.Expression).Expression.Kind()); 157Assert.Equal(SyntaxKind.ExpressionStatement, statement.Kind()); 167Assert.Equal(opKind, es.Expression.Kind()); 188Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 216Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 224Assert.Equal(SyntaxKind.IdentifierName, ds.Declaration.Type.Kind()); 246Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 254Assert.Equal(SyntaxKind.TupleType, ds.Declaration.Type.Kind()); 258Assert.Equal(SyntaxKind.PredefinedType, tt.Elements[0].Type.Kind()); 280Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 288Assert.Equal(SyntaxKind.TupleType, ds.Declaration.Type.Kind()); 292Assert.Equal(SyntaxKind.IdentifierName, tt.Elements[0].Type.Kind()); 299Assert.Equal(SyntaxKind.IdentifierName, tt.Elements[0].Type.Kind()); 321Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 329Assert.Equal(SyntaxKind.IdentifierName, ds.Declaration.Type.Kind()); 349Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 375Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 401Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 427Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 453Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 479Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 505Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 540Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 570Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 615Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 632Assert.Equal(SyntaxKind.ArrayInitializerExpression, ds.Declaration.Variables[0].Initializer.Value.Kind()); 646Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 677Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 709Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 741Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 773Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 799Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 816Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 830Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 847Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 857Assert.Equal(SyntaxKind.RefExpression, initializer.Value.Kind()); 871Assert.Equal(SyntaxKind.FixedStatement, statement.Kind()); 881Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 887Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 898Assert.Equal(SyntaxKind.FixedStatement, statement.Kind()); 908Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 912Assert.Equal(SyntaxKind.IdentifierName, fs.Declaration.Type.Kind()); 917Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 928Assert.Equal(SyntaxKind.FixedStatement, statement.Kind()); 938Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 945Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 956Assert.Equal(SyntaxKind.EmptyStatement, statement.Kind()); 972Assert.Equal(SyntaxKind.LabeledStatement, statement.Kind()); 982Assert.Equal(SyntaxKind.EmptyStatement, ls.Statement.Kind()); 993Assert.Equal(SyntaxKind.BreakStatement, statement.Kind()); 1012Assert.Equal(SyntaxKind.ContinueStatement, statement.Kind()); 1031Assert.Equal(SyntaxKind.GotoStatement, statement.Kind()); 1053Assert.Equal(SyntaxKind.GotoCaseStatement, statement.Kind()); 1077Assert.Equal(SyntaxKind.GotoDefaultStatement, statement.Kind()); 1100Assert.Equal(SyntaxKind.ReturnStatement, statement.Kind()); 1120Assert.Equal(SyntaxKind.ReturnStatement, statement.Kind()); 1141Assert.Equal(SyntaxKind.YieldReturnStatement, statement.Kind()); 1165Assert.Equal(SyntaxKind.YieldBreakStatement, statement.Kind()); 1188Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind()); 1208Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind()); 1229Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1259Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1288Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1312Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1355Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1378Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1423Assert.Equal(SyntaxKind.CheckedStatement, statement.Kind()); 1440Assert.Equal(SyntaxKind.UncheckedStatement, statement.Kind()); 1457Assert.Equal(SyntaxKind.UnsafeStatement, statement.Kind()); 1474Assert.Equal(SyntaxKind.WhileStatement, statement.Kind()); 1486Assert.Equal(SyntaxKind.Block, ws.Statement.Kind()); 1496Assert.Equal(SyntaxKind.DoStatement, statement.Kind()); 1506Assert.Equal(SyntaxKind.Block, ds.Statement.Kind()); 1521Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1547Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1584Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1597Assert.Equal(SyntaxKind.IdentifierName, fs.Declaration.Type.Kind()); 1623Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1732Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1761Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1791Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1821Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1851Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1882Assert.Equal(SyntaxKind.ForStatement, statement.Kind()); 1925Assert.Equal(SyntaxKind.ForEachStatement, statement.Kind()); 1954Assert.Equal(SyntaxKind.ForEachStatement, statement.Kind()); 1987Assert.Equal(SyntaxKind.ForEachStatement, statement.Kind()); 1998Assert.Equal(SyntaxKind.IdentifierName, fs.Type.Kind()); 2018Assert.Equal(SyntaxKind.IfStatement, statement.Kind()); 2041Assert.Equal(SyntaxKind.IfStatement, statement.Kind()); 2067Assert.Equal(SyntaxKind.IfStatement, statement.Kind()); 2101Assert.Equal(SyntaxKind.LockStatement, statement.Kind()); 2122Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2147Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2182Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2229Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2247Assert.Equal(SyntaxKind.DefaultSwitchLabel, ss.Sections[0].Labels[0].Kind()); 2262Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2304Assert.Equal(SyntaxKind.SwitchStatement, statement.Kind()); 2340Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2362Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2396Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2455Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2467Assert.Equal(SyntaxKind.IdentifierName, us.Declaration.Type.Kind()); 2491Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2502Assert.Equal(SyntaxKind.IdentifierName, us.Declaration.Type.Kind()); 2623Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2636Assert.Equal(SyntaxKind.IdentifierName, us.Declaration.Type.Kind()); 2795Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2839Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2920Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 2942Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3003Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 3025Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3075Assert.Equal(SyntaxKind.UsingStatement, statement.Kind()); 3097Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3345Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3373Assert.Equal(SyntaxKind.ForEachStatement, statement.Kind()); 3553Assert.Equal(SyntaxKind.IfStatement, statement.Kind());
Syntax\SyntaxFactoryTests.cs (1)
113Assert.Equal(SyntaxKind.PragmaChecksumDirectiveTrivia, t.Kind());
Syntax\SyntaxNodeTests.cs (66)
124var firstParens = e.FirstAncestorOrSelf<ExpressionSyntax>(n => n.Kind() == SyntaxKind.ParenthesizedExpression); 848Assert.Equal(SyntaxKind.MethodDeclaration, m1.Kind()); 849Assert.Equal(SyntaxKind.MethodDeclaration, m2.Kind()); 1403Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d.Kind()); 1415Assert.Equal(SyntaxKind.UndefDirectiveTrivia, d.Kind()); 1432Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d1.Kind()); 1435Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d2.Kind()); 1438Assert.Equal(SyntaxKind.IfDirectiveTrivia, d3.Kind()); 1441Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, d4.Kind()); 1460Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, d1.Kind()); 1463Assert.Equal(SyntaxKind.IfDirectiveTrivia, d2.Kind()); 1466Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d3.Kind()); 1469Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d4.Kind()); 1519Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d.Kind()); 1522Assert.Equal(SyntaxKind.IfDirectiveTrivia, d.Kind()); 1526Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1527Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1528Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1529Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1530Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1550Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d.Kind()); 1553Assert.Equal(SyntaxKind.IfDirectiveTrivia, d.Kind()); 1557Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1558Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1559Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1560Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1561Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1589Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, d.Kind()); 1593Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1594Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1595Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1596Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1597Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1620Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d.Kind()); 1623Assert.Equal(SyntaxKind.IfDirectiveTrivia, d.Kind()); 1627Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1628Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1629Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1630Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1631Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1654Assert.Equal(SyntaxKind.DefineDirectiveTrivia, d.Kind()); 1657Assert.Equal(SyntaxKind.IfDirectiveTrivia, d.Kind()); 1661Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1662Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1663Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1664Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1665Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1688Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, d.Kind()); 1692Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1693Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1694Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1695Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1696Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1718Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, d.Kind()); 1722Assert.Equal(SyntaxKind.IfDirectiveTrivia, related[0].Kind()); 1723Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[1].Kind()); 1724Assert.Equal(SyntaxKind.ElifDirectiveTrivia, related[2].Kind()); 1725Assert.Equal(SyntaxKind.ElseDirectiveTrivia, related[3].Kind()); 1726Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, related[4].Kind()); 1741Assert.Equal(SyntaxKind.RegionDirectiveTrivia, d.Kind()); 1745Assert.Equal(SyntaxKind.RegionDirectiveTrivia, related[0].Kind()); 1746Assert.Equal(SyntaxKind.EndRegionDirectiveTrivia, related[1].Kind()); 1762Assert.Equal(SyntaxKind.EndRegionDirectiveTrivia, d.Kind()); 1766Assert.Equal(SyntaxKind.RegionDirectiveTrivia, related[0].Kind()); 1767Assert.Equal(SyntaxKind.EndRegionDirectiveTrivia, related[1].Kind()); 3845var firstParens = e.FirstAncestorOrSelf<ExpressionSyntax>(n => n.Kind() == SyntaxKind.ParenthesizedExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (125)
Classification\Worker_DocumentationComments.cs (2)
43switch (node.Kind()) 253switch (attribute.Kind())
Classification\Worker_Preprocesser.cs (1)
19switch (node.Kind())
CodeGeneration\CSharpSyntaxGenerator.cs (2)
96return SyntaxFactory.DocumentationCommentTrivia(documentationCommentTrivia.Kind(), (SyntaxList<XmlNodeSyntax>)SyntaxFactory.List(content), documentationCommentTrivia.EndOfComment); 3186expression.Kind()
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
229typeDeclaration.Kind() switch 236_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind()), 275switch (node.Kind())
Recommendations\CSharpRecommendationServiceRunner.cs (2)
43_ => throw ExceptionUtilities.UnexpectedValue(lambdaSyntax.Kind()), 714var originalExpressionKind = originalExpression.Kind();
Rename\CSharpRenameRewriterLanguageService.cs (2)
441switch (expressionOfInvocation.Kind()) 1131if (name.Kind() == SyntaxKind.IdentifierName)
Rename\LocalConflictVisitor.cs (1)
143switch (clause.Kind())
Simplification\CSharpSimplificationService.Expander.cs (10)
274node.Expression.Kind() != SyntaxKind.DeclarationExpression && 362if ((node.Kind() == SyntaxKind.GreaterThanExpression || node.Kind() == SyntaxKind.RightShiftExpression) && !node.IsParentKind(SyntaxKind.ParenthesizedExpression)) 397if (rewrittenname.Kind() == SyntaxKind.QualifiedName) 408else if (rewrittenname.Kind() == SyntaxKind.AliasQualifiedName) 493switch (replacement.Kind()) 525throw ExceptionUtilities.UnexpectedValue(replacement.Kind()); 612switch (newNode.Kind()) 743if (newNode.Kind() == SyntaxKind.IdentifierName && symbol.Kind == SymbolKind.Method) 902Debug.Assert(!replaceNode || rewrittenNode.Kind() == SyntaxKind.IdentifierName);
Simplification\Reducers\CSharpExtensionMethodReducer.cs (4)
40if (node.Expression.Kind() == SyntaxKind.SimpleMemberAccessExpression) 75if (node.Expression.Kind() == SyntaxKind.SimpleMemberAccessExpression) 82else if (node.Expression.Kind() == SyntaxKind.IdentifierName) 88else if (node.Expression.Kind() == SyntaxKind.GenericName)
Simplification\Reducers\CSharpNameReducer.Rewriter.cs (1)
206var isOrAsNode = node.Kind() is SyntaxKind.AsExpression or SyntaxKind.IsExpression;
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
137if (node.Kind() == SyntaxKind.IdentifierName && 196return current.Kind() is SyntaxKind.AliasQualifiedName or SyntaxKind.IdentifierName or SyntaxKind.GenericName or SyntaxKind.QualifiedName;
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
345if (memberAccess.Expression.Kind() == SyntaxKind.BaseExpression)
Simplification\Simplifiers\NameSimplifier.cs (7)
85if (symbol.Kind == SymbolKind.Method && name.Kind() == SyntaxKind.GenericName) 170if (name.Kind() == SyntaxKind.QualifiedName) 278if (name.Kind() == SyntaxKind.QualifiedName) 288if (oldType.Kind() == SyntaxKind.OmittedTypeArgument) 309switch (name.Kind()) 630if (nullableType.ElementType.Kind() == SyntaxKind.OmittedTypeArgument) 642if (simplifiedNode.Kind() == SyntaxKind.NullableType &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (2)
79if (initializerExpression.Kind() is SyntaxKind.ObjectCreationExpression or SyntaxKind.ArrayCreationExpression && 87if (initializerExpression.Kind() is SyntaxKind.CastExpression or SyntaxKind.IsExpression or SyntaxKind.AsExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (3)
16return assignment.Kind() == SyntaxKind.SimpleAssignmentExpression && 18(left.Kind() == SyntaxKind.TupleExpression || left.Kind() == SyntaxKind.DeclarationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
64=> directive?.Kind() is SyntaxKind.RegionDirectiveTrivia or SyntaxKind.EndRegionDirectiveTrivia; 67=> directive?.Kind()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
476if (expression.Kind() 696switch (expression.Kind()) 1092return binaryExpression.Kind() == SyntaxKind.CoalesceExpression && binaryExpression.Right == expression && HasType(binaryExpression.Left, out var leftType) ? leftType : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
31switch (member.Kind()) 72switch (member.Kind()) 94switch (member.Kind()) 118switch (member.Kind()) 142switch (member.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (10)
86if (expression.Kind() is SyntaxKind.GreaterThanExpression or SyntaxKind.LessThanExpression && 276expression.Kind() is SyntaxKind.PreIncrementExpression or SyntaxKind.PreDecrementExpression) 420if (IsAssociative(parentBinaryExpression.Kind()) && 422node.Expression.IsKind(parentBinaryExpression.Kind(), out BinaryExpressionSyntax? nodeBinary)) 491if (castExpression.Type.Kind() is 507if (expression.Kind() is 548binaryExpression.Kind() is SyntaxKind.LessThanExpression or SyntaxKind.GreaterThanExpression && 567binaryExpression.Right.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.CastExpression) 663&& greaterThanExpression.Right.Kind() is SyntaxKind.ParenthesizedExpression or SyntaxKind.CastExpression; 667=> expression.Kind() is SyntaxKind.IdentifierName or SyntaxKind.QualifiedName or SyntaxKind.SimpleMemberAccessExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
61switch (expression.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
405if (expression.Kind() == SyntaxKind.SimpleAssignmentExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (3)
213if (previousMember.Kind() == nextMember.Kind()) 216if (previousMember.Kind() is SyntaxKind.FieldDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
103if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 116if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
545=> (node as MemberAccessExpressionSyntax)?.Kind() == SyntaxKind.PointerMemberAccessExpression; 836if (memberDeclaration.Kind() == SyntaxKind.ConversionOperatorDeclaration) 846if (memberDeclaration.Kind() == SyntaxKind.DestructorDeclaration) 862Debug.Assert(memberDeclaration.Kind() == SyntaxKind.IncompleteMember);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
55return cast.Kind() == SyntaxKind.AsExpression && 772Debug.Assert(rewrittenBitwiseNotExpression.Kind() == SyntaxKind.BitwiseNotExpression); 891if (parentBinary != null && parentBinary.Kind() is SyntaxKind.EqualsExpression or SyntaxKind.NotEqualsExpression) 959=> node is ExpressionSyntax expression && expression.WalkDownParentheses().Kind() is SyntaxKind.CastExpression or SyntaxKind.AsExpression; 996if (otherSide.WalkDownParentheses().Kind() == SyntaxKind.NullLiteralExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
84switch (name.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (9)
69=> expression.Kind() is SyntaxKind.ThisExpression or SyntaxKind.BaseExpression; 199switch (originalLambda.Kind()) 252throw ExceptionUtilities.UnexpectedValue(originalLambda.Kind()); 467if (previousReplacedExpression.WalkDownParentheses().Kind() is SyntaxKind.NullLiteralExpression or SyntaxKind.DefaultLiteralExpression) 600return expression.Kind() switch 613switch (expression.Kind()) 673if (binaryExpression.Kind() is SyntaxKind.AsExpression or SyntaxKind.IsExpression && 720assignmentExpression.Kind() != SyntaxKind.LeftShiftAssignmentExpression && 721assignmentExpression.Kind() != SyntaxKind.RightShiftAssignmentExpression &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
63if (type.IsVar || (type.Kind() == SyntaxKind.RefType && ((RefTypeSyntax)type).Type.IsVar))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeSyntaxComparer.cs (1)
50switch (type.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
77declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedConstructors.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
89declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedOperators.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
760switch (syntaxNode.Kind()) 892switch (syntaxNode.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (2)
119if (lastExpression.Kind() == SyntaxKind.LeftShiftExpression && 123if (binaryExpression.Left.Kind() == SyntaxKind.NumericLiteralExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (3)
28if (eventDeclaration.Kind() == SyntaxKind.EventFieldDeclaration) 36if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration) 53if (eventDeclaration.Kind() == SyntaxKind.FieldDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
164methodDeclaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedMethods.Value, cancellationToken, 182localFunctionDeclaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedLocalFunctions.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
164switch (declaration.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
61declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedOperators.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
169baseProperty.Kind(), accessor, languageVersion, preference, cancellationToken, 224declaration.Kind(), info.LanguageVersion, info.Options.PreferExpressionBodiedAccessors.Value, cancellationToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (3)
19switch (node.Kind()) 37switch (node.Kind()) 55switch (node.Kind())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
372validTypeDeclarations.Contains(record.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
258if (!validTypeDeclarations.Contains(typeDecl.Kind())) 546if (!validTypeDeclarations.Contains(typeDecl.Kind()))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (4)
29if (nameSyntax.Kind() == SyntaxKind.IdentifierName) 33else if (nameSyntax.Kind() == SyntaxKind.QualifiedName) 37else if (nameSyntax.Kind() == SyntaxKind.GenericName) 41else if (nameSyntax.Kind() == SyntaxKind.AliasQualifiedName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (7)
934if (binop.Kind() == SyntaxKind.CoalesceExpression) 966if (binop.Kind() == SyntaxKind.SimpleAssignmentExpression && 1329foreach (var sibling in initializerExpression.Expressions.Where(e => e.Kind() != SyntaxKind.ComplexElementInitializerExpression)) 1877switch (postfixUnaryExpressionSyntax.Kind()) 1892switch (prefixUnaryExpression.Kind()) 2098switchLabel.Kind() != SyntaxKind.CaseSwitchLabel) 2117.FirstOrDefault(label => label.Kind() == SyntaxKind.CaseSwitchLabel) is CaseSwitchLabelSyntax firstCase)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\NameSyntaxIterator.cs (1)
27if (currentNode.Kind() == SyntaxKind.QualifiedName)
Microsoft.CodeAnalysis.Test.Utilities (9)
Compilation\ControlFlowGraphVerifier.cs (9)
955(binOpSyntax.Kind() == CSharp.SyntaxKind.LogicalAndExpression || binOpSyntax.Kind() == CSharp.SyntaxKind.LogicalOrExpression) && 1099switch (syntax.Kind()) 1133switch (parent?.Kind()) 1144if ((parent = parent.Parent)?.Kind() == CSharp.SyntaxKind.BracketedArgumentList && 1145(parent = parent.Parent)?.Kind() == CSharp.SyntaxKind.ImplicitElementAccess && 1146parent.Parent is AssignmentExpressionSyntax assignment && assignment.Kind() == CSharp.SyntaxKind.SimpleAssignmentExpression && 1149(assignment.Right.Kind() == CSharp.SyntaxKind.CollectionInitializerExpression || 1150assignment.Right.Kind() == CSharp.SyntaxKind.ObjectInitializerExpression))
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\AppContextDefaultsAnalyzer.cs (2)
74if (args.Expression.Kind() != SyntaxKind.TrueLiteralExpression) 96if (containingIfStatement.Condition.Kind() != SyntaxKind.LessThanOrEqualExpression)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
551while (parentLoggerClass != null && IsAllowedKind(parentLoggerClass.Kind()))
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (2)
128while (parent is not null && IsAllowedKind(parent.Kind())) 178type.Kind() switch
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
337while (parentLoggerClass != null && IsAllowedKind(parentLoggerClass.Kind()))
Microsoft.Gen.Metrics (1)
Parser.cs (1)
154while (parentMetricClass != null && IsAllowedKind(parentMetricClass.Kind()))
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
154while (parentMetricClass != null && IsAllowedKind(parentMetricClass.Kind()))
Microsoft.Interop.ComInterfaceGenerator (2)
ComClassInfo.cs (1)
67new ContainingSyntax(syntax.Modifiers, syntax.Kind(), syntax.Identifier, syntax.TypeParameterList),
ComInterfaceInfo.cs (1)
104new ContainingSyntax(syntax.Modifiers, syntax.Kind(), syntax.Identifier, syntax.TypeParameterList),
Microsoft.Interop.SourceGeneration (1)
ContainingSyntaxContext.cs (1)
58typeDeclaration.Kind(),
Microsoft.ML.AutoML (2)
Utils\Entity.cs (2)
148if (exp.Kind() == SyntaxKind.AddExpression) 156else if (exp.Kind() == SyntaxKind.MultiplyExpression)
Microsoft.VisualStudio.LanguageServices.CSharp (40)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
35var isPredefinedType = SyntaxFactory.ParseExpression(addedParameterViewModel.Type).Kind() == SyntaxKind.PredefinedType;
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (18)
140if (oldExpression.Kind() != newExpression.Kind()) 237if (oldMember.Kind() != newMember.Kind()) 385if (oldField.Kind() != newField.Kind() || 519if (oldMember.Kind() != newMember.Kind()) 657if (oldNamespaceOrType.Kind() != newNamespaceOrType.Kind()) 718if (oldName.Kind() != newName.Kind()) 723switch (oldName.Kind()) 770Debug.Fail("Unknown kind: " + oldName.Kind()); 782if (oldType.Kind() != newType.Kind()) 787switch (oldType.Kind()) 824Debug.Fail("Unknown kind: " + oldType.Kind());
CodeModel\CSharpCodeModelService.cs (10)
409if (member.Kind() != SyntaxKind.NamespaceDeclaration) 574if (baseFieldDeclaration.Kind() == SyntaxKind.FieldDeclaration) 578else if (baseFieldDeclaration.Kind() == SyntaxKind.EventFieldDeclaration) 932if (member.Kind() == SyntaxKind.ConstructorDeclaration) 937else if (member.Kind() == SyntaxKind.DestructorDeclaration) 944if (typeNode.Kind() == SyntaxKind.StructDeclaration) 1522if (accessor.Kind() == accessorKind) 2427if ((flags & ModifierFlags.Abstract) != 0 || containingType?.Kind() == SyntaxKind.InterfaceDeclaration) 2432if ((flags & ModifierFlags.Virtual) != 0 || containingType?.Kind() == SyntaxKind.InterfaceDeclaration) 3557switch (accessor.Kind())
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
392switch (node.Kind()) 955switch (node.Kind())
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (3)
28if (name.Kind() == SyntaxKind.QualifiedName) 33switch (name.Kind()) 68switch (type.Kind())
CodeModel\MethodXml\MethodXmlBuilder.cs (6)
64switch (statement.Kind()) 164switch (expression.Kind()) 261switch (expression.Kind()) 286if (expression.Kind() != SyntaxKind.CharacterLiteralExpression) 334switch (binaryExpression.Kind()) 359switch (binaryExpression.Kind())
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
260switch (typeDeclaration.Kind())
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
230while (parent is not null && IsAllowedKind(parent.Kind()))