Implemented interface member:
1826 references to Count
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
624return targetClass.Members.Count + 1;
Microsoft.AspNetCore.App.Analyzers (1)
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
39&& (classDeclaration.Members == null || classDeclaration.Members.Count == 0) // Skip non-empty declarations
Microsoft.AspNetCore.Components.Analyzers (3)
ComponentParameterAnalyzer.cs (3)
153syntax.AccessorList?.Accessors.Count == 2) 183if (getter.Body is { Statements: { Count: 1 } } && getter.Body.Statements[0] is ReturnStatementSyntax returnStatement) 196if (setter.Body.Statements.Count == 1)
Microsoft.CodeAnalysis (17)
Syntax\SyntaxList`1.cs (14)
161if (this.Count == 0) 167return TextSpan.FromBounds(this[0].FullSpan.Start, this[this.Count - 1].FullSpan.End); 179if (this.Count == 0) 185return TextSpan.FromBounds(this[0].Span.Start, this[this.Count - 1].Span.End); 222return this.Insert(this.Count, node); 231return this.InsertRange(this.Count, nodes); 256if (index < 0 || index > this.Count) 285if (index < 0 || index > this.Count) 330if (index >= 0 && index < this.Count) 382return this[this.Count - 1]; 392return this[this.Count - 1]; 405Debug.Assert(_node == null || Count != 0); 555for (int i = this.Count - 1; i >= 0; i--) 568for (int i = this.Count - 1; i >= 0; i--)
Syntax\SyntaxList`1.Enumerator.cs (1)
29if (newIndex < _list.Count)
Syntax\SyntaxListBuilder.cs (2)
81this.AddRange(list, 0, list.Count); 105this.AddRange(list, 0, list.Count);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
89for (var i = fieldIndex; i < members.Count; i++)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (5)
199Contract.ThrowIfTrue(availableIndices != null && availableIndices.Count != declarationList.Count + 1); 286var index = GetPreferredIndex(declarationList.Count, availableIndices, forward: false); 293return declarationList.Count; 342Debug.Assert(desiredGroupIndex <= declarationList.Count); 345while (desiredGroupIndex < declarationList.Count)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
24if (existingImports.Count == 0)
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Constraints.cs (1)
36Debug.Assert(clauses.Count > 0);
Binder\Binder_Expressions.cs (1)
4472if (rankSpecifiers.Count != 1 ||
Binder\Binder_Statements.cs (1)
3212int n = catchClauses.Count;
Declarations\DeclarationTreeBuilder.cs (1)
132if (members.Count == 0)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
628if (attributes.Count > 0)
Parser\DocumentationCommentParser.cs (2)
88isTerminated = !_isDelimited || (eoc.LeadingTrivia.Count > 0 && eoc.LeadingTrivia[eoc.LeadingTrivia.Count - 1].ToString() == "*/");
Parser\LanguageParser.cs (8)
2472bool haveAttributes = attributes.Count > 0; 2927if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.RefType) 6394if (attrs.Count > 0) 8033attributes.Count == 0) 8652attributes.Count == 0) 8692if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.Block && attributes.Count == 0) 10070if (attributes.Count == 0 && mods.Count > 0 && IsAccessibilityModifier(((SyntaxToken)mods[0]).ContextualKind)) 10449for (int i = 0; i < modifiers.Count; i++)
Symbols\ConstraintsHelper.cs (2)
352if (typeParameters.Length == 0 || constraintClauses.Count == 0) 388if (constraintClauses.Count == 0)
Symbols\Source\QuickAttributeChecker.cs (1)
87if (usingsSyntax.Count == 0)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4890if (members.Count == 0)
Symbols\Source\SourceNamedTypeSymbol.cs (5)
329if (skipPartialDeclarationsWithoutConstraintClauses && constraintClauses.Count == 0) 338if (constraintClauses.Count == 0) 385if (GetConstraintClauses((CSharpSyntaxNode)decl.SyntaxReference.GetSyntax(), out _).Count != 0) 410if (skipPartialDeclarationsWithoutConstraintClauses && constraintClauses.Count == 0) 419if (constraintClauses.Count == 0)
Symbols\Source\SourcePropertySymbolBase.cs (1)
165if (indexerNameAttributeLists.Count == 0 || isExplicitInterfaceImplementation)
Symbols\Symbol.cs (1)
1485if (constraintClauses.Count > 0)
Syntax\CSharpSyntaxRewriter.cs (1)
142for (int i = 0, n = list.Count; i < n; i++)
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (1)
45for (int i = 0, n = list.Count; i < n; i++)
Syntax\LookupPosition.cs (1)
100int count = attributesSyntaxList.Count;
Syntax\RecordDeclarationSyntax.cs (3)
38var semicolonToken = members.Count == 0 ? Token(SyntaxKind.SemicolonToken) : default; 39var openBraceToken = members.Count == 0 ? default : Token(SyntaxKind.OpenBraceToken); 40var closeBraceToken = members.Count == 0 ? default : Token(SyntaxKind.CloseBraceToken);
Syntax\SyntaxReplacer.cs (1)
423if (index >= 0 && index < list.Count)
Microsoft.CodeAnalysis.CSharp.CodeStyle (29)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
113if (typeDeclaration.AttributeLists.Count > 0) 128if (member.AttributeLists.Count > 0)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (4)
111if (sections.Count == 0) 135Debug.Assert(labels.Count >= 1); 136if (labels.Count == 1) 221switch (section.Statements.Count)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
72if (block.Statements.Count != 1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
308if (anonymousFunction.Block != null && anonymousFunction.Block.Statements.Count == 1)
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
62whenTrueStatement = ifStatement.Statement is BlockSyntax { Statements.Count: 1 } block
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
110? block.Statements.Count == 1 ? block.Statements[0] : null
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
91if (block.Statements.Count == 1)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
183if (block.Statements.Count == 0)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
296if (primaryConstructor.Parameters.Length == 0 && primaryConstructorDeclaration.AttributeLists.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
492if (attributes.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
82if (section.Labels.Count == 0 && 83section.Statements.Count == 0) 112if (section.Statements.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (6)
162for (var i = 0; i < attributes.Count; ++i) 186if (switchSection.Labels.Count < 2) 194for (var i = 0; i < switchSection.Labels.Count - 1; ++i) 203if (switchSection.Labels[switchSection.Labels.Count - 1] != null) 205AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[switchSection.Labels.Count - 1].GetFirstToken(includeZeroWidth: true), switchSection.GetLastToken(includeZeroWidth: true)); 223if (parameterNode.AttributeLists.Count != 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (5)
31if (organizedExternAliasList.Count > 0 && organizedUsingList.Count > 0) 42for (var i = 1; i < organizedUsingList.Count; i++) 103if (externAliasList.Count > 0 || usingList.Count > 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (39)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
132if (switchLabels.Count == 1) 146for (var i = 1; i < switchLabels.Count; i++) 207Debug.Assert(statements.Count is 1 or 2);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
806if (index == summaryContent.Count - 1 &&
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
57if (accessorList.Accessors.Count == 1) 65else if (accessorList.Accessors.Count == 2)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
390|| compilationUnit.Members.Count > 1
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
93blockSyntax.Statements.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
31return members.Count == 1
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
163accessorList?.Accessors.Count == 1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
130if (root.Externs.Count == 0) 158var endOfList = root.Usings.Count - 1; 161for (var i = 0; i < root.Usings.Count; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
431(compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) 1988(compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (3)
26if (members.Count == 0) 39for (var i = 0; i < members.Count - 1; i++) 150return (TypeDeclarationSyntax)EnsureHasBraces(typeDeclaration, typeDeclaration.Members.Count > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
175if (node is not SwitchSectionSyntax section || section.Statements.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
411for (var i = clauses.Count - 1; i >= 0; i--)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
97=> list.Count > 0 ? list[0].SpanStart : container.Span.End;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (15)
54for (var i = 0; i < usings.Count; i++) 70if (i < usings.Count - 1) 133Debug.Assert(oldUsings.Count == newUsings.Count); 136for (var i = 0; i < oldUsings.Count; i++) 161if (compilationUnit.Usings.Count > 0 && finalUsings.Count == 0) 181if (finalUsings.Count == 0 && 182resultCompilationUnit.Externs.Count == 0 && 183resultCompilationUnit.Members.Count >= 1) 213if (namespaceDeclaration.Usings.Count > 0 && finalUsings.Count == 0) 233if (finalUsings.Count == 0 && 234resultNamespace.Externs.Count == 0 && 235resultNamespace.Members.Count >= 1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
842for (var i = 0; i < arrayType.RankSpecifiers.Count; i++)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteHelpers.cs (1)
51for (int i = 0, n = interpolatedString.Contents.Count; i < n && errors.Count > 0; i++)
StringCopyPaste\StringInfo.cs (1)
204for (var i = 0; i < interpolatedString.Contents.Count; i++)
Microsoft.CodeAnalysis.CSharp.Features (55)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
132if (localFunction.AttributeLists.Count > 0)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
277if (members.Count > 0)
CodeRefactorings\SyncNamespace\CSharpSyncNamespaceCodeRefactoringProvider.cs (1)
41if (namespaceDecls.Length == 1 && compilationUnit.Members.Count == 1)
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (2)
95if (root.Externs.Count > 0 || 96root.Usings.Count > 0)
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (1)
172((CompilationUnitSyntax)context.SyntaxTree.GetRoot(cancellationToken)).Externs.Count > 0)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
127if (propertyDeclaration.AccessorList?.Accessors.Count == 1 &&
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
118if (block.Statements.Count == 0)
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (2)
111namespaceDeclaration.Members.Count >= 2) 188if (methodDeclaration.Body.Statements.Count > 0)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
43Contents.Count: > 0,
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
267if (documentationComment.Content.Count != 1)
EditAndContinue\BreakpointSpans.cs (3)
555if (switchLabel.Parent is not SwitchSectionSyntax switchSection || switchSection.Statements.Count == 0) 976for (var i = 0; i < accessors.Count; i++) 978if (position <= accessors[i].FullSpan.End || i == accessors.Count - 1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2689if (tryStatement.Catches.Count == 0)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
55if (block.Statements.Count == 0)
GenerateConstructorFromMembers\CSharpGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
94if (body is BlockSyntax { Statements.Count: > 0 } block)
InitializeParameter\InitializeParameterHelpers.cs (2)
90else if (block.Statements.Count > 0) 100Debug.Assert(block.Statements.Count == 0);
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
33=> tryStatement.Catches.Count > 0;
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
165for (var i = 0; i < oldMembers.Count; i++)
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
256return block.Statements.Count == 1 && IsSingleStatement(block.Statements[0]);
LineSeparators\CSharpLineSeparatorService.cs (2)
263if (children.Count == 0) 271for (var i = 0; i < children.Count - 1; i++)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
113if (typeDeclaration.AttributeLists.Count > 0) 128if (member.AttributeLists.Count > 0)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (4)
111if (sections.Count == 0) 135Debug.Assert(labels.Count >= 1); 136if (labels.Count == 1) 221switch (section.Statements.Count)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
72if (block.Statements.Count != 1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
308if (anonymousFunction.Block != null && anonymousFunction.Block.Statements.Count == 1)
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (1)
62whenTrueStatement = ifStatement.Statement is BlockSyntax { Statements.Count: 1 } block
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
110? block.Statements.Count == 1 ? block.Statements[0] : null
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
91if (block.Statements.Count == 1)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
183if (block.Statements.Count == 0)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
296if (primaryConstructor.Parameters.Length == 0 && primaryConstructorDeclaration.AttributeLists.Count == 0)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
132if (switchLabels.Count == 1) 146for (var i = 1; i < switchLabels.Count; i++) 207Debug.Assert(statements.Count is 1 or 2);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
806if (index == summaryContent.Count - 1 &&
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
57if (accessorList.Accessors.Count == 1) 65else if (accessorList.Accessors.Count == 2)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
390|| compilationUnit.Members.Count > 1
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
93blockSyntax.Statements.Count == 0)
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
248if (selectOrGroupClause.IsKind(SyntaxKind.SelectClause) && containingBody.Clauses.Count == 0)
Structure\Providers\CompilationUnitStructureProvider.cs (4)
40if (compilationUnit.Usings.Count > 0 || 41compilationUnit.Externs.Count > 0 || 42compilationUnit.Members.Count > 0 || 43compilationUnit.AttributeLists.Count > 0)
Structure\Providers\SwitchStatementStructureProvider.cs (2)
30if (section.Labels.Count > 0 && section.Statements.Count > 0)
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
149if (fieldAttributes.Count == 0)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
2593=> node is ClassDeclarationSyntax { AttributeLists: { Count: > 0 } };
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\GetSemanticInfoTests.cs (8)
243Assert.Equal(3, testClass.Members.Count); 246Assert.Equal(10, mainStats.Count); 375Assert.Equal(2, testClass.Members.Count); 378Assert.Equal(5, mainStats.Count); 478Assert.Equal(2, testClass.Members.Count); 481Assert.Equal(5, mainStats.Count); 531Assert.Equal(1, testClass.Members.Count); 534Assert.Equal(6, mainStats.Count);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
308Assert.Equal(2, accessorList.Count); 389Assert.Equal(2, accessorList.Count); 2789Assert.Equal(2, root.Members.Count); 2791Assert.Equal(1, nsSyntax.Members.Count); 2867Assert.Equal(2, explicitPropertyAccessors.Count);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1329)
IncrementalParsing\BinaryExpression.cs (1)
217Assert.True(statementType.AttributeLists.Count == 0);
IncrementalParsing\CompoundAssignment.cs (1)
157Assert.True(statementType.AttributeLists.Count == 0);
IncrementalParsing\UnaryExpression.cs (1)
100Assert.True(statementType.AttributeLists.Count == 0);
LexicalAndXml\PreprocessorTests.cs (2)
438Assert.Equal(memberInfo.Length, node.Members.Count); 1684Assert.Equal(1, node.Members.Count);
LexicalAndXml\XmlDocCommentTests.cs (77)
86Assert.Equal(2, doc.Content.Count); 155Assert.Equal(3, doc.Content.Count); 176Assert.Equal(3, doc.Content.Count); 201Assert.Equal(3, doc.Content.Count); 223Assert.Equal(2, doc.Content.Count); 228Assert.Equal(1, element.Attributes.Count); 246Assert.Equal(2, doc.Content.Count); 251Assert.Equal(1, element.Attributes.Count); 269Assert.Equal(2, doc.Content.Count); 274Assert.Equal(1, element.Attributes.Count); 296Assert.Equal(2, doc.Content.Count); 301Assert.Equal(1, element.Attributes.Count); 324Assert.Equal(2, doc.Content.Count); 348Assert.Equal(3, doc.Content.Count); 373Assert.Equal(3, doc.Content.Count); 399Assert.Equal(3, doc.Content.Count); 426Assert.Equal(2, doc.Content.Count); 431Assert.Equal(1, element.Attributes.Count); 453Assert.Equal(2, doc.Content.Count); 458Assert.Equal(1, element.Attributes.Count); 481Assert.Equal(3, doc.Content.Count); 486Assert.Equal(1, element.Attributes.Count); 510Assert.Equal(3, doc.Content.Count); 515Assert.Equal(1, element.Attributes.Count); 540Assert.Equal(2, doc.Content.Count); 545Assert.Equal(1, element.Attributes.Count); 569Assert.Equal(2, doc.Content.Count); 574Assert.Equal(1, element.Attributes.Count); 599Assert.Equal(3, doc.Content.Count); 604Assert.Equal(1, element.Attributes.Count); 630Assert.Equal(3, doc.Content.Count); 635Assert.Equal(1, element.Attributes.Count); 653Assert.Equal(2, doc.Content.Count); 675Assert.Equal(2, doc.Content.Count); 697Assert.Equal(2, doc.Content.Count); 719Assert.Equal(2, doc.Content.Count); 761Assert.Equal(2, doc.Content.Count); 768Assert.Equal(1, element.Content.Count); 795Assert.Equal(3, doc.Content.Count); 802Assert.Equal(1, element.Content.Count); 828Assert.Equal(2, doc.Content.Count); 859Assert.Equal(3, doc.Content.Count); 887Assert.Equal(2, doc.Content.Count); 912Assert.Equal(2, doc.Content.Count); 938Assert.Equal(2, doc.Content.Count); 963Assert.Equal(2, doc.Content.Count); 990Assert.Equal(2, doc.Content.Count); 1021Assert.Equal(3, doc.Content.Count); 1049Assert.Equal(2, doc.Content.Count); 1074Assert.Equal(2, doc.Content.Count); 1099Assert.Equal(2, doc.Content.Count); 1126Assert.Equal(2, doc.Content.Count); 1159Assert.Equal(3, doc.Content.Count); 1190Assert.Equal(2, doc.Content.Count); 1216Assert.Equal(2, doc.Content.Count); 1243Assert.Equal(2, doc.Content.Count); 1271Assert.Equal(1, doc.Content.Count); 1316Assert.Equal(1, doc.Content.Count); 1340Assert.Equal(1, doc.Content.Count); 1365Assert.Equal(1, doc.Content.Count); 1389Assert.Equal(1, doc.Content.Count); 1414Assert.Equal(1, doc.Content.Count); 1438Assert.Equal(1, doc.Content.Count); 1463Assert.Equal(1, doc.Content.Count); 1487Assert.Equal(1, doc.Content.Count); 1567Assert.Equal(2, doc.Content.Count); 1572Assert.Equal(1, element.Attributes.Count); 1595Assert.Equal(2, doc.Content.Count); 1600Assert.Equal(1, element.Attributes.Count); 1623Assert.Equal(2, doc.Content.Count); 1627Assert.Equal(1, element.Attributes.Count); 1649Assert.Equal(1, doc.Content.Count); 1993Assert.Equal(0, (firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes.Count); 2029Assert.Equal(0, (firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes.Count); 2773Assert.Equal(3, doc.Content.Count); 3335Assert.Equal(0, xmlElement.Content.Count); 3395Assert.Equal(attributes.Keys.Count, xmlAttributes.Count);
Parsing\DeclarationParsingTests.cs (589)
35Assert.Equal(1, file.Externs.Count); 58Assert.Equal(1, file.Usings.Count); 80Assert.Equal(1, file.Usings.Count); 102Assert.Equal(1, file.Usings.Count); 117Assert.Equal(1, file.Usings.Count); 132Assert.Equal(1, file.Usings.Count); 147Assert.Equal(1, file.Usings.Count); 169Assert.Equal(1, file.Usings.Count); 191Assert.Equal(1, file.Usings.Count); 213Assert.Equal(1, file.Usings.Count); 237Assert.Equal(1, file.Usings.Count); 261Assert.Equal(1, file.AttributeLists.Count); 287Assert.Equal(1, file.AttributeLists.Count); 316Assert.Equal(1, file.AttributeLists.Count); 345Assert.Equal(1, file.AttributeLists.Count); 372Assert.Equal(1, file.AttributeLists.Count); 400Assert.Equal(1, file.AttributeLists.Count); 430Assert.Equal(1, file.AttributeLists.Count); 461Assert.Equal(1, file.AttributeLists.Count); 497Assert.Equal(1, file.AttributeLists.Count); 529Assert.Equal(2, file.AttributeLists.Count); 566Assert.Equal(1, file.Members.Count); 576Assert.Equal(0, ns.Usings.Count); 577Assert.Equal(0, ns.Members.Count); 588Assert.Equal(1, file.Members.Count); 598Assert.Equal(0, ns.Usings.Count); 599Assert.Equal(0, ns.Members.Count); 609Assert.Equal(1, file.Members.Count); 619Assert.Equal(0, ns.Usings.Count); 620Assert.Equal(0, ns.Members.Count); 631Assert.Equal(1, file.Members.Count); 641Assert.Equal(1, ns.Usings.Count); 643Assert.Equal(0, ns.Members.Count); 654Assert.Equal(1, file.Members.Count); 664Assert.Equal(1, ns.Usings.Count); 666Assert.Equal(0, ns.Members.Count); 676Assert.Equal(1, file.Members.Count); 686Assert.Equal(1, ns.Externs.Count); 688Assert.Equal(0, ns.Members.Count); 699Assert.Equal(1, file.Members.Count); 709Assert.Equal(1, ns.Externs.Count); 711Assert.Equal(0, ns.Members.Count); 721Assert.Equal(1, file.Members.Count); 731Assert.Equal(1, ns.Usings.Count); 733Assert.Equal(0, ns.Externs.Count); 734Assert.Equal(0, ns.Members.Count); 745Assert.Equal(1, file.Members.Count); 755Assert.Equal(0, ns.Usings.Count); 756Assert.Equal(1, ns.Members.Count); 763Assert.Equal(0, ns2.Usings.Count); 764Assert.Equal(0, ns2.Members.Count); 776Assert.Equal(1, file.Members.Count); 782Assert.Equal(0, cs.AttributeLists.Count); 789Assert.Equal(0, cs.ConstraintClauses.Count); 791Assert.Equal(0, cs.Members.Count); 802Assert.Equal(1, file.Members.Count); 808Assert.Equal(0, cs.AttributeLists.Count); 816Assert.Equal(0, cs.ConstraintClauses.Count); 818Assert.Equal(0, cs.Members.Count); 829Assert.Equal(1, file.Members.Count); 835Assert.Equal(0, cs.AttributeLists.Count); 843Assert.Equal(0, cs.ConstraintClauses.Count); 845Assert.Equal(0, cs.Members.Count); 856Assert.Equal(1, file.Members.Count); 862Assert.Equal(0, cs.AttributeLists.Count); 870Assert.Equal(0, cs.ConstraintClauses.Count); 872Assert.Equal(0, cs.Members.Count); 883Assert.Equal(1, file.Members.Count); 889Assert.Equal(0, cs.AttributeLists.Count); 897Assert.Equal(0, cs.ConstraintClauses.Count); 899Assert.Equal(0, cs.Members.Count); 910Assert.Equal(1, file.Members.Count); 916Assert.Equal(0, cs.AttributeLists.Count); 924Assert.Equal(0, cs.ConstraintClauses.Count); 926Assert.Equal(0, cs.Members.Count); 937Assert.Equal(1, file.Members.Count); 943Assert.Equal(0, cs.AttributeLists.Count); 951Assert.Equal(0, cs.ConstraintClauses.Count); 953Assert.Equal(0, cs.Members.Count); 964Assert.Equal(1, file.Members.Count); 970Assert.Equal(1, cs.AttributeLists.Count); 978Assert.Equal(0, cs.ConstraintClauses.Count); 980Assert.Equal(0, cs.Members.Count); 991Assert.Equal(1, file.Members.Count); 997Assert.Equal(2, cs.AttributeLists.Count); 1006Assert.Equal(0, cs.ConstraintClauses.Count); 1008Assert.Equal(0, cs.Members.Count); 1019Assert.Equal(1, file.Members.Count); 1025Assert.Equal(1, cs.AttributeLists.Count); 1033Assert.Equal(0, cs.ConstraintClauses.Count); 1035Assert.Equal(0, cs.Members.Count); 1046Assert.Equal(1, file.Members.Count); 1052Assert.Equal(0, cs.AttributeLists.Count); 1064Assert.Equal(0, cs.ConstraintClauses.Count); 1066Assert.Equal(0, cs.Members.Count); 1077Assert.Equal(1, file.Members.Count); 1083Assert.Equal(0, cs.AttributeLists.Count); 1096Assert.Equal(0, cs.ConstraintClauses.Count); 1098Assert.Equal(0, cs.Members.Count); 1109Assert.Equal(1, file.Members.Count); 1115Assert.Equal(0, cs.AttributeLists.Count); 1125Assert.Equal(1, cs.ConstraintClauses.Count); 1138Assert.Equal(0, cs.Members.Count); 1149Assert.Equal(1, file.Members.Count); 1157Assert.Equal(0, cs.AttributeLists.Count); 1166Assert.Equal(1, cs.ConstraintClauses.Count); 1179Assert.Equal(0, cs.Members.Count); 1212Assert.Equal(1, file.Members.Count); 1218Assert.Equal(0, cs.AttributeLists.Count); 1228Assert.Equal(1, cs.ConstraintClauses.Count); 1245Assert.Equal(0, cs.Members.Count); 1256Assert.Equal(1, file.Members.Count); 1262Assert.Equal(0, cs.AttributeLists.Count); 1272Assert.Equal(1, cs.ConstraintClauses.Count); 1286Assert.Equal(0, cs.Members.Count); 1297Assert.Equal(1, file.Members.Count); 1303Assert.Equal(0, cs.AttributeLists.Count); 1313Assert.Equal(1, cs.ConstraintClauses.Count); 1327Assert.Equal(0, cs.Members.Count); 1338Assert.Equal(1, file.Members.Count); 1344Assert.Equal(0, cs.AttributeLists.Count); 1354Assert.Equal(1, cs.ConstraintClauses.Count); 1383Assert.Equal(0, cs.Members.Count); 1394Assert.Equal(1, file.Members.Count); 1400Assert.Equal(0, cs.AttributeLists.Count); 1409Assert.Equal(2, cs.ConstraintClauses.Count); 1438Assert.Equal(0, cs.Members.Count); 1449Assert.Equal(1, file.Members.Count); 1455Assert.Equal(0, cs.AttributeLists.Count); 1464Assert.Equal(2, cs.ConstraintClauses.Count); 1495Assert.Equal(1, file.Members.Count); 1501Assert.Equal(0, cs.AttributeLists.Count); 1510Assert.Equal(2, cs.ConstraintClauses.Count); 1539Assert.Equal(1, file.Members.Count); 1545Assert.Equal(0, cs.AttributeLists.Count); 1559Assert.Equal(1, cs.ConstraintClauses.Count); 1588Assert.Equal(0, cs.Members.Count); 1599Assert.Equal(1, file.Members.Count); 1605Assert.Equal(0, cs.AttributeLists.Count); 1612Assert.Equal(0, cs.ConstraintClauses.Count); 1624Assert.Equal(1, file.Members.Count); 1630Assert.Equal(0, cs.AttributeLists.Count); 1638Assert.Equal(0, gn.Parameters[0].AttributeLists.Count); 1642Assert.Equal(0, cs.ConstraintClauses.Count); 1654Assert.Equal(1, file.Members.Count); 1660Assert.Equal(0, cs.AttributeLists.Count); 1669Assert.Equal(1, gn.Parameters[0].AttributeLists.Count); 1674Assert.Equal(0, cs.ConstraintClauses.Count); 1686Assert.Equal(1, file.Members.Count); 1692Assert.Equal(0, cs.AttributeLists.Count); 1699Assert.Equal(0, cs.ConstraintClauses.Count); 1711Assert.Equal(1, file.Members.Count); 1717Assert.Equal(0, cs.AttributeLists.Count); 1724Assert.Equal(0, cs.ConstraintClauses.Count); 1728Assert.Equal(1, cs.Members.Count); 1732Assert.Equal(0, cs.AttributeLists.Count); 1739Assert.Equal(0, cs.ConstraintClauses.Count); 1751Assert.Equal(1, file.Members.Count); 1757Assert.Equal(0, cs.AttributeLists.Count); 1764Assert.Equal(0, cs.ConstraintClauses.Count); 1768Assert.Equal(1, cs.Members.Count); 1772Assert.Equal(0, cs.AttributeLists.Count); 1780Assert.Equal(0, cs.ConstraintClauses.Count); 1792Assert.Equal(1, file.Members.Count); 1798Assert.Equal(0, cs.AttributeLists.Count); 1805Assert.Equal(0, cs.ConstraintClauses.Count); 1809Assert.Equal(1, cs.Members.Count); 1813Assert.Equal(0, cs.AttributeLists.Count); 1821Assert.Equal(0, cs.ConstraintClauses.Count); 1833Assert.Equal(1, file.Members.Count); 1839Assert.Equal(0, cs.AttributeLists.Count); 1846Assert.Equal(0, cs.ConstraintClauses.Count); 1850Assert.Equal(1, cs.Members.Count); 1854Assert.Equal(0, cs.AttributeLists.Count); 1863Assert.Equal(0, cs.ConstraintClauses.Count); 1875Assert.Equal(1, file.Members.Count); 1881Assert.Equal(0, cs.AttributeLists.Count); 1888Assert.Equal(0, cs.ConstraintClauses.Count); 1892Assert.Equal(1, cs.Members.Count); 1896Assert.Equal(0, cs.AttributeLists.Count); 1905Assert.Equal(0, cs.ConstraintClauses.Count); 1917Assert.Equal(1, file.Members.Count); 1923Assert.Equal(0, cs.AttributeLists.Count); 1930Assert.Equal(0, cs.ConstraintClauses.Count); 1934Assert.Equal(1, cs.Members.Count); 1938Assert.Equal(0, cs.AttributeLists.Count); 1946Assert.Equal(0, cs.ConstraintClauses.Count); 1958Assert.Equal(1, file.Members.Count); 1964Assert.Equal(0, cs.AttributeLists.Count); 1971Assert.Equal(0, cs.ConstraintClauses.Count); 1975Assert.Equal(1, cs.Members.Count); 1979Assert.Equal(0, cs.AttributeLists.Count); 1987Assert.Equal(0, cs.ConstraintClauses.Count); 1999Assert.Equal(1, file.Members.Count); 2026Assert.Equal(1, file.Members.Count); 2054Assert.Equal(1, file.Members.Count); 2101Assert.Equal(1, file.Members.Count); 2147Assert.Equal(1, file.Members.Count); 2162Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2182Assert.Equal(1, file.Members.Count); 2197Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2217Assert.Equal(1, file.Members.Count); 2232Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2239Assert.Equal(0, ds.ParameterList.Parameters[1].AttributeLists.Count); 2259Assert.Equal(1, file.Members.Count); 2274Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2295Assert.Equal(1, file.Members.Count); 2310Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2331Assert.Equal(1, file.Members.Count); 2346Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2367Assert.Equal(1, file.Members.Count); 2383Assert.Equal(0, ds.ParameterList.Parameters[0].AttributeLists.Count); 2401Assert.Equal(1, file.Members.Count); 2416Assert.Equal(1, ds.ParameterList.Parameters[0].AttributeLists.Count); 2437Assert.Equal(1, file.Members.Count); 2443Assert.Equal(0, cs.AttributeLists.Count); 2450Assert.Equal(0, cs.ConstraintClauses.Count); 2454Assert.Equal(1, cs.Members.Count); 2479Assert.Equal(1, file.Members.Count); 2485Assert.Equal(0, cs.AttributeLists.Count); 2492Assert.Equal(0, cs.ConstraintClauses.Count); 2496Assert.Equal(1, cs.Members.Count); 2500Assert.Equal(0, ms.AttributeLists.Count); 2511Assert.Equal(0, ms.ConstraintClauses.Count); 2525Assert.Equal(1, file.Members.Count); 2531Assert.Equal(0, cs.AttributeLists.Count); 2538Assert.Equal(0, cs.ConstraintClauses.Count); 2542Assert.Equal(1, cs.Members.Count); 2546Assert.Equal(0, ms.AttributeLists.Count); 2556Assert.Equal(0, ms.ConstraintClauses.Count); 2571Assert.Equal(1, file.Members.Count); 2577Assert.Equal(0, cs.AttributeLists.Count); 2584Assert.Equal(0, cs.ConstraintClauses.Count); 2588Assert.Equal(1, cs.Members.Count); 2592Assert.Equal(0, ms.AttributeLists.Count); 2602Assert.Equal(0, ms.ConstraintClauses.Count); 2616Assert.Equal(1, file.Members.Count); 2622Assert.Equal(0, cs.AttributeLists.Count); 2629Assert.Equal(0, cs.ConstraintClauses.Count); 2633Assert.Equal(1, cs.Members.Count); 2646Assert.Equal(1, file.Members.Count); 2652Assert.Equal(0, cs.AttributeLists.Count); 2659Assert.Equal(0, cs.ConstraintClauses.Count); 2663Assert.Equal(1, cs.Members.Count); 2674Assert.Equal(1, file.Members.Count); 2680Assert.Equal(0, cs.AttributeLists.Count); 2687Assert.Equal(0, cs.ConstraintClauses.Count); 2691Assert.Equal(1, cs.Members.Count); 2695Assert.Equal(0, ms.AttributeLists.Count); 2710Assert.Equal(0, ms.ConstraintClauses.Count); 2742Assert.Equal(1, file.Members.Count); 2748Assert.Equal(0, cs.AttributeLists.Count); 2755Assert.Equal(0, cs.ConstraintClauses.Count); 2759Assert.Equal(1, cs.Members.Count); 2763Assert.Equal(0, ms.AttributeLists.Count); 2775Assert.Equal(0, ms.ConstraintClauses.Count); 2789Assert.Equal(1, file.Members.Count); 2795Assert.Equal(0, structDecl.AttributeLists.Count); 2802Assert.Equal(0, structDecl.ConstraintClauses.Count); 2806Assert.Equal(1, structDecl.Members.Count); 2810Assert.Equal(0, ms.AttributeLists.Count); 2822Assert.Equal(0, ms.ConstraintClauses.Count); 2836Assert.Equal(1, file.Members.Count); 2842Assert.Equal(0, structDecl.AttributeLists.Count); 2849Assert.Equal(0, structDecl.ConstraintClauses.Count); 2853Assert.Equal(1, structDecl.Members.Count); 2857Assert.Equal(0, ms.AttributeLists.Count); 2872Assert.Equal(0, ms.ConstraintClauses.Count); 2886Assert.Equal(1, file.Members.Count); 2892Assert.Equal(0, structDecl.AttributeLists.Count); 2899Assert.Equal(0, structDecl.ConstraintClauses.Count); 2903Assert.Equal(1, structDecl.Members.Count); 2907Assert.Equal(0, propertySyntax.AttributeLists.Count); 2927Assert.Equal(1, file.Members.Count); 2933Assert.Equal(0, structDecl.AttributeLists.Count); 2940Assert.Equal(0, structDecl.ConstraintClauses.Count); 2944Assert.Equal(1, structDecl.Members.Count); 2948Assert.Equal(0, propertySyntax.AttributeLists.Count); 2955Assert.Equal(1, accessors.Count); 2972Assert.Equal(1, file.Members.Count); 2988Assert.Equal(1, file.Members.Count); 2994Assert.Equal(0, cs.AttributeLists.Count); 3001Assert.Equal(0, cs.ConstraintClauses.Count); 3005Assert.Equal(1, cs.Members.Count); 3009Assert.Equal(0, ms.AttributeLists.Count); 3018Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3026Assert.Equal(0, ms.ConstraintClauses.Count); 3040Assert.Equal(1, file.Members.Count); 3046Assert.Equal(0, cs.AttributeLists.Count); 3053Assert.Equal(0, cs.ConstraintClauses.Count); 3057Assert.Equal(1, cs.Members.Count); 3061Assert.Equal(0, ms.AttributeLists.Count); 3072Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3079Assert.Equal(0, ms.ParameterList.Parameters[1].AttributeLists.Count); 3088Assert.Equal(0, ms.ConstraintClauses.Count); 3101Assert.Equal(1, file.Members.Count); 3107Assert.Equal(0, cs.AttributeLists.Count); 3114Assert.Equal(0, cs.ConstraintClauses.Count); 3118Assert.Equal(1, cs.Members.Count); 3122Assert.Equal(0, ms.AttributeLists.Count); 3133Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3143Assert.Equal(0, ms.ConstraintClauses.Count); 3166Assert.Equal(1, file.Members.Count); 3172Assert.Equal(0, cs.AttributeLists.Count); 3179Assert.Equal(0, cs.ConstraintClauses.Count); 3183Assert.Equal(1, cs.Members.Count); 3187Assert.Equal(0, ms.AttributeLists.Count); 3198Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3206Assert.Equal(0, ms.ConstraintClauses.Count); 3240Assert.Equal(1, file.Members.Count); 3246Assert.Equal(0, cs.AttributeLists.Count); 3253Assert.Equal(0, cs.ConstraintClauses.Count); 3257Assert.Equal(1, cs.Members.Count); 3261Assert.Equal(0, ms.AttributeLists.Count); 3272Assert.Equal(0, ms.ConstraintClauses.Count); 3305Assert.Equal(1, file.Members.Count); 3311Assert.Equal(0, cs.AttributeLists.Count); 3318Assert.Equal(0, cs.ConstraintClauses.Count); 3322Assert.Equal(1, cs.Members.Count); 3326Assert.Equal(0, ms.AttributeLists.Count); 3335Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 3343Assert.Equal(0, ms.ConstraintClauses.Count); 3357Assert.Equal(1, file.Members.Count); 3363Assert.Equal(0, cs.AttributeLists.Count); 3370Assert.Equal(0, cs.ConstraintClauses.Count); 3374Assert.Equal(1, cs.Members.Count); 3378Assert.Equal(0, ms.AttributeLists.Count); 3389Assert.Equal(0, ms.ConstraintClauses.Count); 3403Assert.Equal(1, file.Members.Count); 3409Assert.Equal(0, cs.AttributeLists.Count); 3416Assert.Equal(0, cs.ConstraintClauses.Count); 3420Assert.Equal(1, cs.Members.Count); 3424Assert.Equal(0, ms.AttributeLists.Count); 3438Assert.Equal(1, ms.ConstraintClauses.Count); 3468Assert.Equal(1, file.Members.Count); 3484Assert.Equal(1, file.Members.Count); 3490Assert.Equal(0, cs.AttributeLists.Count); 3497Assert.Equal(0, cs.ConstraintClauses.Count); 3502Assert.Equal(1, cs.Members.Count); 3506Assert.Equal(0, cn.AttributeLists.Count); 3519Assert.Equal(1, file.Members.Count); 3525Assert.Equal(0, cs.AttributeLists.Count); 3532Assert.Equal(0, cs.ConstraintClauses.Count); 3537Assert.Equal(1, cs.Members.Count); 3541Assert.Equal(0, cn.AttributeLists.Count); 3566Assert.Equal(1, file.Members.Count); 3572Assert.Equal(0, cs.AttributeLists.Count); 3579Assert.Equal(0, cs.ConstraintClauses.Count); 3584Assert.Equal(1, cs.Members.Count); 3589Assert.Equal(0, cn.AttributeLists.Count); 3603Assert.Equal(1, file.Members.Count); 3609Assert.Equal(0, cs.AttributeLists.Count); 3616Assert.Equal(0, cs.ConstraintClauses.Count); 3620Assert.Equal(1, cs.Members.Count); 3624Assert.Equal(0, fs.AttributeLists.Count); 3663Assert.Equal(1, file.Members.Count); 3669Assert.Equal(0, cs.AttributeLists.Count); 3676Assert.Equal(0, cs.ConstraintClauses.Count); 3680Assert.Equal(1, cs.Members.Count); 3684Assert.Equal(0, fs.AttributeLists.Count); 3703Assert.Equal(1, file.Members.Count); 3709Assert.Equal(0, cs.AttributeLists.Count); 3716Assert.Equal(0, cs.ConstraintClauses.Count); 3720Assert.Equal(1, cs.Members.Count); 3724Assert.Equal(0, fs.AttributeLists.Count); 3757Assert.Equal(1, file.Members.Count); 3763Assert.Equal(0, cs.AttributeLists.Count); 3770Assert.Equal(0, cs.ConstraintClauses.Count); 3774Assert.Equal(1, cs.Members.Count); 3778Assert.Equal(0, fs.AttributeLists.Count); 3813Assert.Equal(1, file.Members.Count); 3819Assert.Equal(0, cs.AttributeLists.Count); 3826Assert.Equal(0, cs.ConstraintClauses.Count); 3830Assert.Equal(1, cs.Members.Count); 3834Assert.Equal(0, fs.AttributeLists.Count); 3858Assert.Equal(1, file.Members.Count); 3864Assert.Equal(0, cs.AttributeLists.Count); 3871Assert.Equal(0, cs.ConstraintClauses.Count); 3875Assert.Equal(1, cs.Members.Count); 3879Assert.Equal(0, fs.AttributeLists.Count); 3902Assert.Equal(1, file.Members.Count); 3908Assert.Equal(0, cs.AttributeLists.Count); 3915Assert.Equal(0, cs.ConstraintClauses.Count); 3919Assert.Equal(1, cs.Members.Count); 3923Assert.Equal(0, fs.AttributeLists.Count); 3947Assert.Equal(1, file.Members.Count); 3953Assert.Equal(0, cs.AttributeLists.Count); 3960Assert.Equal(0, cs.ConstraintClauses.Count); 3964Assert.Equal(1, cs.Members.Count); 3968Assert.Equal(0, fs.AttributeLists.Count); 4001Assert.Equal(1, file.Members.Count); 4007Assert.Equal(0, cs.AttributeLists.Count); 4014Assert.Equal(0, cs.ConstraintClauses.Count); 4018Assert.Equal(1, cs.Members.Count); 4022Assert.Equal(0, fs.AttributeLists.Count); 4064Assert.Equal(1, file.Members.Count); 4070Assert.Equal(0, cs.AttributeLists.Count); 4077Assert.Equal(0, cs.ConstraintClauses.Count); 4081Assert.Equal(1, cs.Members.Count); 4085Assert.Equal(0, fs.AttributeLists.Count); 4110Assert.Equal(1, file.Members.Count); 4116Assert.Equal(0, cs.AttributeLists.Count); 4123Assert.Equal(0, cs.ConstraintClauses.Count); 4127Assert.Equal(1, cs.Members.Count); 4131Assert.Equal(0, ps.AttributeLists.Count); 4140Assert.Equal(2, ps.AccessorList.Accessors.Count); 4142Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4149Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4164Assert.Equal(1, file.Members.Count); 4170Assert.Equal(0, cs.AttributeLists.Count); 4177Assert.Equal(0, cs.ConstraintClauses.Count); 4181Assert.Equal(1, cs.Members.Count); 4185Assert.Equal(0, ps.AttributeLists.Count); 4194Assert.Equal(2, ps.AccessorList.Accessors.Count); 4196Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4203Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4219Assert.Equal(1, file.Members.Count); 4225Assert.Equal(0, cs.AttributeLists.Count); 4232Assert.Equal(0, cs.ConstraintClauses.Count); 4236Assert.Equal(1, cs.Members.Count); 4240Assert.Equal(0, ps.AttributeLists.Count); 4249Assert.Equal(2, ps.AccessorList.Accessors.Count); 4251Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4258Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4292Assert.Equal(1, file.Members.Count); 4298Assert.Equal(0, cs.AttributeLists.Count); 4305Assert.Equal(0, cs.ConstraintClauses.Count); 4309Assert.Equal(1, cs.Members.Count); 4313Assert.Equal(0, ps.AttributeLists.Count); 4322Assert.Equal(2, ps.AccessorList.Accessors.Count); 4324Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4331Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4346Assert.Equal(1, file.Members.Count); 4352Assert.Equal(0, cs.AttributeLists.Count); 4359Assert.Equal(0, cs.ConstraintClauses.Count); 4363Assert.Equal(1, cs.Members.Count); 4367Assert.Equal(0, ps.AttributeLists.Count); 4376Assert.Equal(2, ps.AccessorList.Accessors.Count); 4378Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4385Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4400Assert.Equal(1, file.Members.Count); 4406Assert.Equal(0, cs.AttributeLists.Count); 4413Assert.Equal(0, cs.ConstraintClauses.Count); 4417Assert.Equal(1, cs.Members.Count); 4421Assert.Equal(0, ps.AttributeLists.Count); 4430Assert.Equal(2, ps.AccessorList.Accessors.Count); 4432Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4438Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4458Assert.Equal(1, file.Members.Count); 4462Assert.Equal(1, cs.Members.Count); 4484Assert.Equal(1, file.Members.Count); 4490Assert.Equal(0, cs.AttributeLists.Count); 4497Assert.Equal(0, cs.ConstraintClauses.Count); 4501Assert.Equal(1, cs.Members.Count); 4505Assert.Equal(0, ps.AttributeLists.Count); 4514Assert.Equal(1, ps.AccessorList.Accessors.Count); 4516Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4524Assert.Equal(1, body.Statements.Count); 4540Assert.Equal(1, file.Members.Count); 4546Assert.Equal(0, cs.AttributeLists.Count); 4553Assert.Equal(0, cs.ConstraintClauses.Count); 4557Assert.Equal(1, cs.Members.Count); 4561Assert.Equal(0, es.AttributeLists.Count); 4570Assert.Equal(1, es.AccessorList.Accessors.Count); 4572Assert.Equal(0, es.AccessorList.Accessors[0].AttributeLists.Count); 4580Assert.Equal(1, body.Statements.Count); 4596Assert.Equal(1, file.Members.Count); 4602Assert.Equal(0, cs.AttributeLists.Count); 4609Assert.Equal(0, cs.ConstraintClauses.Count); 4613Assert.Equal(1, cs.Members.Count); 4617Assert.Equal(0, ps.AttributeLists.Count); 4627Assert.Equal(2, ps.AccessorList.Accessors.Count); 4629Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4636Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4680Assert.Equal(1, file.Members.Count); 4686Assert.Equal(0, cs.AttributeLists.Count); 4693Assert.Equal(0, cs.ConstraintClauses.Count); 4697Assert.Equal(1, cs.Members.Count); 4701Assert.Equal(0, ps.AttributeLists.Count); 4712Assert.Equal(2, ps.AccessorList.Accessors.Count); 4714Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4721Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4736Assert.Equal(1, file.Members.Count); 4742Assert.Equal(0, cs.AttributeLists.Count); 4749Assert.Equal(0, cs.ConstraintClauses.Count); 4753Assert.Equal(1, cs.Members.Count); 4757Assert.Equal(0, es.AttributeLists.Count); 4767Assert.Equal(2, es.AccessorList.Accessors.Count); 4769Assert.Equal(0, es.AccessorList.Accessors[0].AttributeLists.Count); 4776Assert.Equal(0, es.AccessorList.Accessors[1].AttributeLists.Count); 4790Assert.Equal(1, file.Members.Count); 4796Assert.Equal(0, cs.AttributeLists.Count); 4803Assert.Equal(0, cs.ConstraintClauses.Count); 4807Assert.Equal(1, cs.Members.Count); 4811Assert.Equal(0, es.AttributeLists.Count); 4822Assert.Equal(2, es.AccessorList.Accessors.Count); 4824Assert.Equal(0, es.AccessorList.Accessors[0].AttributeLists.Count); 4831Assert.Equal(0, es.AccessorList.Accessors[1].AttributeLists.Count); 4873Assert.Equal(1, file.Members.Count); 4879Assert.Equal(0, cs.AttributeLists.Count); 4886Assert.Equal(0, cs.ConstraintClauses.Count); 4890Assert.Equal(1, cs.Members.Count); 4894Assert.Equal(0, es.AttributeLists.Count); 4906Assert.Equal(2, es.AccessorList.Accessors.Count); 4908Assert.Equal(0, es.AccessorList.Accessors[0].AttributeLists.Count); 4915Assert.Equal(0, es.AccessorList.Accessors[1].AttributeLists.Count); 4930Assert.Equal(1, file.Members.Count); 4936Assert.Equal(0, cs.AttributeLists.Count); 4943Assert.Equal(0, cs.ConstraintClauses.Count); 4947Assert.Equal(1, cs.Members.Count); 4951Assert.Equal(0, ps.AttributeLists.Count); 4964Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 4973Assert.Equal(2, ps.AccessorList.Accessors.Count); 4975Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 4982Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 4997Assert.Equal(1, file.Members.Count); 5003Assert.Equal(0, cs.AttributeLists.Count); 5010Assert.Equal(0, cs.ConstraintClauses.Count); 5014Assert.Equal(1, cs.Members.Count); 5018Assert.Equal(0, ps.AttributeLists.Count); 5031Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5040Assert.Equal(2, ps.AccessorList.Accessors.Count); 5042Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 5049Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 5065Assert.Equal(1, file.Members.Count); 5071Assert.Equal(0, cs.AttributeLists.Count); 5078Assert.Equal(0, cs.ConstraintClauses.Count); 5082Assert.Equal(1, cs.Members.Count); 5086Assert.Equal(0, ps.AttributeLists.Count); 5099Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5108Assert.Equal(2, ps.AccessorList.Accessors.Count); 5110Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 5117Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 5132Assert.Equal(1, file.Members.Count); 5138Assert.Equal(0, cs.AttributeLists.Count); 5145Assert.Equal(0, cs.ConstraintClauses.Count); 5149Assert.Equal(1, cs.Members.Count); 5153Assert.Equal(0, ps.AttributeLists.Count); 5168Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5175Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5184Assert.Equal(2, ps.AccessorList.Accessors.Count); 5186Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 5193Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 5208Assert.Equal(1, file.Members.Count); 5214Assert.Equal(0, cs.AttributeLists.Count); 5221Assert.Equal(0, cs.ConstraintClauses.Count); 5225Assert.Equal(1, cs.Members.Count); 5229Assert.Equal(0, ps.AttributeLists.Count); 5244Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5253Assert.Equal(2, ps.AccessorList.Accessors.Count); 5255Assert.Equal(0, ps.AccessorList.Accessors[0].AttributeLists.Count); 5262Assert.Equal(0, ps.AccessorList.Accessors[1].AttributeLists.Count); 5276Assert.Equal(1, file.Members.Count); 5282Assert.Equal(0, cs.AttributeLists.Count); 5289Assert.Equal(0, cs.ConstraintClauses.Count); 5293Assert.Equal(1, cs.Members.Count); 5297Assert.Equal(0, ps.AttributeLists.Count); 5311Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5318Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5356Assert.Equal(1, file.Members.Count); 5362Assert.Equal(0, cs.AttributeLists.Count); 5369Assert.Equal(0, cs.ConstraintClauses.Count); 5373Assert.Equal(1, cs.Members.Count); 5377Assert.Equal(0, ps.AttributeLists.Count); 5391Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5398Assert.Equal(0, ps.ParameterList.Parameters[1].AttributeLists.Count); 5470Assert.Equal(1, file.Members.Count); 5476Assert.Equal(0, cs.AttributeLists.Count); 5483Assert.Equal(0, cs.ConstraintClauses.Count); 5487Assert.Equal(1, cs.Members.Count); 5491Assert.Equal(0, ps.AttributeLists.Count); 5505Assert.Equal(0, ps.ParameterList.Parameters[0].AttributeLists.Count); 5533Assert.Equal(1, file.Members.Count); 5539Assert.Equal(0, cs.AttributeLists.Count); 5546Assert.Equal(0, cs.ConstraintClauses.Count); 5550Assert.Equal(1, cs.Members.Count); 5554Assert.Equal(0, ms.AttributeLists.Count); 5566Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 5581Assert.Equal(1, file.Members.Count); 5587Assert.Equal(0, cs.AttributeLists.Count); 5594Assert.Equal(0, cs.ConstraintClauses.Count); 5598Assert.Equal(1, cs.Members.Count); 5602Assert.Equal(0, ms.AttributeLists.Count); 5614Assert.Equal(0, ms.ParameterList.Parameters[0].AttributeLists.Count); 5629Assert.Equal(1, file.Members.Count); 5641Assert.Equal(1, file.Members.Count); 5653Assert.Equal(1, file.Members.Count); 5880Assert.Equal(1, file.Members.Count); 5888Assert.Equal(1, mainMethod.Body.Statements.Count);
Parsing\ExpressionParsingTests.cs (20)
1969Assert.Equal(0, am.Block.Statements.Count); 1999Assert.Equal(0, am.Block.Statements.Count); 2024Assert.Equal(0, am.Block.Statements.Count); 2301Assert.Equal(0, qs.Body.Clauses.Count); 2334Assert.Equal(0, qs.Body.Clauses.Count); 2367Assert.Equal(0, qs.Body.Clauses.Count); 2394Assert.Equal(0, qs.Body.Continuation.Body.Clauses.Count); 2418Assert.Equal(1, qs.Body.Clauses.Count); 2458Assert.Equal(1, qs.Body.Clauses.Count); 2501Assert.Equal(1, qs.Body.Clauses.Count); 2546Assert.Equal(1, qs.Body.Clauses.Count); 2591Assert.Equal(1, qs.Body.Clauses.Count); 2640Assert.Equal(1, qs.Body.Clauses.Count); 2688Assert.Equal(1, qs.Body.Clauses.Count); 2736Assert.Equal(0, qs.Body.Clauses.Count); 2775Assert.Equal(0, qs.Body.Clauses.Count); 2804Assert.Equal(0, qs.Body.Continuation.Body.Clauses.Count); 2828Assert.Equal(1, qs.Body.Clauses.Count); 2884Assert.Equal(1, qs.Body.Clauses.Count); 2939Assert.Equal(1, qs.Body.Clauses.Count);
Parsing\LocalFunctionParsingTests.cs (2)
1295Assert.Equal(2, c.Members.Count); 1347Assert.Equal(2, c.Members.Count);
Parsing\NameParsingTests.cs (3)
550Assert.Equal(1, array.RankSpecifiers.Count); 572Assert.Equal(1, array.RankSpecifiers.Count); 594Assert.Equal(3, array.RankSpecifiers.Count);
Parsing\ParsingErrorRecoveryTests.cs (593)
242Assert.Equal(1, file.AttributeLists.Count); 257Assert.Equal(1, file.AttributeLists.Count); 258Assert.Equal(0, file.Members.Count); 273Assert.Equal(1, file.AttributeLists.Count); 274Assert.Equal(0, file.Members.Count); 289Assert.Equal(1, file.AttributeLists.Count); 290Assert.Equal(1, file.Members.Count); 305Assert.Equal(1, file.AttributeLists.Count); 306Assert.Equal(1, file.Members.Count); 321Assert.Equal(2, file.AttributeLists.Count); 322Assert.Equal(0, file.Members.Count); 336Assert.Equal(1, file.AttributeLists.Count); 337Assert.Equal(0, file.Members.Count); 351Assert.Equal(1, file.AttributeLists.Count); 352Assert.Equal(0, file.Members.Count); 366Assert.Equal(1, file.AttributeLists.Count); 367Assert.Equal(0, file.Members.Count); 382Assert.Equal(1, file.AttributeLists.Count); 383Assert.Equal(0, file.Members.Count); 398Assert.Equal(1, file.AttributeLists.Count); 399Assert.Equal(0, file.Members.Count); 413Assert.Equal(1, file.AttributeLists.Count); 414Assert.Equal(0, file.Members.Count); 429Assert.Equal(1, file.AttributeLists.Count); 430Assert.Equal(0, file.Members.Count); 450Assert.Equal(1, file.AttributeLists.Count); 451Assert.Equal(0, file.Members.Count); 466Assert.Equal(1, file.AttributeLists.Count); 467Assert.Equal(0, file.Members.Count); 482Assert.Equal(1, file.AttributeLists.Count); 483Assert.Equal(1, file.Members.Count); 498Assert.Equal(1, file.AttributeLists.Count); 499Assert.Equal(1, file.Members.Count); 514Assert.Equal(1, file.Members.Count); 528Assert.Equal(1, file.Members.Count); 542Assert.Equal(1, file.Members.Count); 556Assert.Equal(1, file.Members.Count); 571Assert.Equal(1, file.Members.Count); 609Assert.Equal(1, file.Members.Count); 625Assert.Equal(1, file.Members.Count); 640Assert.Equal(1, file.Members.Count); 655Assert.Equal(1, file.Members.Count); 669Assert.Equal(1, file.Members.Count); 684Assert.Equal(1, file.Members.Count); 699Assert.Equal(1, file.Members.Count); 715Assert.Equal(1, file.Members.Count); 732Assert.Equal(1, file.Members.Count); 750Assert.Equal(1, file.Members.Count); 766Assert.Equal(1, file.Members.Count); 780Assert.Equal(1, file.Members.Count); 794Assert.Equal(1, file.Members.Count); 808Assert.Equal(1, file.Members.Count); 822Assert.Equal(1, file.Members.Count); 846Assert.Equal(1, file.Members.Count); 859Assert.Equal(2, file.Members.Count); 876Assert.Equal(2, file.Members.Count); 892Assert.Equal(2, file.Members.Count); 909Assert.Equal(2, file.Members.Count); 926Assert.Equal(1, file.Members.Count); 941Assert.Equal(1, file.Members.Count); 955Assert.Equal(1, file.Members.Count); 970Assert.Equal(1, file.Members.Count); 985Assert.Equal(1, file.Members.Count); 999Assert.Equal(1, file.Members.Count); 1012Assert.Equal(1, file.Members.Count); 1026Assert.Equal(1, file.Members.Count); 1039Assert.Equal(1, file.Members.Count); 1053Assert.Equal(1, file.Members.Count); 1067Assert.Equal(1, file.Members.Count); 1080Assert.Equal(1, file.Members.Count); 1094Assert.Equal(1, file.Members.Count); 1107Assert.Equal(1, file.Members.Count); 1121Assert.Equal(1, file.Members.Count); 1137Assert.Equal(1, file.Members.Count); 1152Assert.Equal(1, file.Members.Count); 1166Assert.Equal(1, file.Members.Count); 1180Assert.Equal(1, file.Members.Count); 1196Assert.Equal(1, file.Members.Count); 1211Assert.Equal(1, file.Members.Count); 1225Assert.Equal(1, file.Members.Count); 1239Assert.Equal(1, file.Members.Count); 1256Assert.Equal(1, file.Members.Count); 1272Assert.Equal(1, file.Members.Count); 1287Assert.Equal(1, file.Members.Count); 1301Assert.Equal(1, file.Members.Count); 1316Assert.Equal(1, file.Members.Count); 1331Assert.Equal(1, file.Members.Count); 1345Assert.Equal(1, file.Members.Count); 1360Assert.Equal(1, file.Members.Count); 1375Assert.Equal(1, file.Members.Count); 1389Assert.Equal(2, file.Members.Count); 1407Assert.Equal(2, file.Members.Count); 1424Assert.Equal(2, file.Members.Count); 1442Assert.Equal(1, file.Members.Count); 1457Assert.Equal(1, file.Members.Count); 1471Assert.Equal(1, file.Members.Count); 1486Assert.Equal(1, file.Members.Count); 1501Assert.Equal(1, file.Members.Count); 1515Assert.Equal(1, file.Members.Count); 1530Assert.Equal(1, file.Members.Count); 1533Assert.Equal(2, agg.Members.Count); 1548Assert.Equal(1, file.Members.Count); 1551Assert.Equal(2, agg.Members.Count); 1566Assert.Equal(1, file.Members.Count); 1569Assert.Equal(2, agg.Members.Count); 1585Assert.Equal(1, file.Members.Count); 1588Assert.Equal(2, agg.Members.Count); 1605Assert.Equal(1, file.Members.Count); 1608Assert.Equal(2, agg.Members.Count); 1624Assert.Equal(1, file.Members.Count); 1627Assert.Equal(2, agg.Members.Count); 1644Assert.Equal(1, file.Members.Count); 1647Assert.Equal(1, agg.Members.Count); 1661Assert.Equal(1, file.Members.Count); 1664Assert.Equal(1, agg.Members.Count); 1678Assert.Equal(1, file.Members.Count); 1681Assert.Equal(1, agg.Members.Count); 1696Assert.Equal(1, file.Members.Count); 1699Assert.Equal(1, agg.Members.Count); 1714Assert.Equal(1, file.Members.Count); 1717Assert.Equal(1, agg.Members.Count); 1733Assert.Equal(1, file.Members.Count); 1736Assert.Equal(1, agg.Members.Count); 1751Assert.Equal(1, file.Members.Count); 1754Assert.Equal(1, agg.Members.Count); 1771Assert.Equal(1, file.Members.Count); 1774Assert.Equal(1, agg.Members.Count); 1788Assert.Equal(1, file.Members.Count); 1791Assert.Equal(1, agg.Members.Count); 1805Assert.Equal(1, file.Members.Count); 1808Assert.Equal(1, agg.Members.Count); 1823Assert.Equal(1, file.Members.Count); 1826Assert.Equal(1, agg.Members.Count); 1840Assert.Equal(1, file.Members.Count); 1843Assert.Equal(1, agg.Members.Count); 1859Assert.Equal(1, file.Members.Count); 1862Assert.Equal(2, agg.Members.Count); 1878Assert.Equal(1, file.Members.Count); 1881Assert.Equal(2, agg.Members.Count); 1898Assert.Equal(1, file.Members.Count); 1901Assert.Equal(2, agg.Members.Count); 1917Assert.Equal(1, file.Members.Count); 1920Assert.Equal(2, agg.Members.Count); 1938Assert.Equal(1, file.Members.Count); 1941Assert.Equal(2, agg.Members.Count); 1956Assert.Equal(1, file.Members.Count); 1959Assert.Equal(1, agg.Members.Count); 1973Assert.Equal(1, file.Members.Count); 1976Assert.Equal(1, agg.Members.Count); 1990Assert.Equal(1, file.Members.Count); 1993Assert.Equal(1, agg.Members.Count); 2007Assert.Equal(1, file.Members.Count); 2022Assert.Equal(1, file.Members.Count); 2025Assert.Equal(1, agg.Members.Count); 2061Assert.Equal(1, file.Members.Count); 2064Assert.Equal(1, agg.Members.Count); 2081Assert.Equal(1, file.Members.Count); 2084Assert.Equal(1, agg.Members.Count); 2100Assert.Equal(1, file.Members.Count); 2103Assert.Equal(1, agg.Members.Count); 2121Assert.Equal(1, file.Members.Count); 2124Assert.Equal(1, agg.Members.Count); 2139Assert.Equal(1, file.Members.Count); 2142Assert.Equal(1, agg.Members.Count); 2170Assert.Equal(1, file.Members.Count); 2173Assert.Equal(1, agg.Members.Count); 2188Assert.Equal(1, file.Members.Count); 2191Assert.Equal(1, agg.Members.Count); 2205Assert.Equal(1, file.Members.Count); 2208Assert.Equal(1, agg.Members.Count); 2224Assert.Equal(1, file.Members.Count); 2227Assert.Equal(2, agg.Members.Count); 2264Assert.Equal(1, file.Members.Count); 2267Assert.Equal(2, agg.Members.Count); 2285Assert.Equal(1, file.Members.Count); 2288Assert.Equal(2, agg.Members.Count); 2305Assert.Equal(1, file.Members.Count); 2308Assert.Equal(2, agg.Members.Count); 2327Assert.Equal(1, file.Members.Count); 2330Assert.Equal(2, agg.Members.Count); 2346Assert.Equal(1, file.Members.Count); 2364Assert.Equal(1, file.Members.Count); 2381Assert.Equal(1, file.Members.Count); 2397Assert.Equal(1, file.Members.Count); 2412Assert.Equal(1, file.Members.Count); 2428Assert.Equal(1, file.Members.Count); 2443Assert.Equal(1, file.Members.Count); 2457Assert.Equal(1, file.Members.Count); 2474Assert.Equal(2, file.Members.Count); 2493Assert.Equal(2, file.Members.Count); 2511Assert.Equal(2, file.Members.Count); 2528Assert.Equal(2, file.Members.Count); 2544Assert.Equal(2, file.Members.Count); 2561Assert.Equal(2, file.Members.Count); 2577Assert.Equal(2, file.Members.Count); 2592Assert.Equal(2, file.Members.Count); 2610Assert.Equal(1, file.Members.Count); 2624Assert.Equal(1, file.Members.Count); 2639Assert.Equal(1, file.Members.Count); 2653Assert.Equal(1, file.Members.Count); 2669Assert.Equal(1, file.Members.Count); 2683Assert.Equal(1, file.Members.Count); 2697Assert.Equal(1, file.Members.Count); 2711Assert.Equal(1, file.Members.Count); 2725Assert.Equal(1, file.Members.Count); 2739Assert.Equal(1, file.Members.Count); 2753Assert.Equal(1, file.Members.Count); 2768Assert.Equal(1, file.Members.Count); 2783Assert.Equal(1, file.Members.Count); 2797Assert.Equal(1, file.Members.Count); 2811Assert.Equal(1, file.Members.Count); 2825Assert.Equal(2, file.Members.Count); 2840Assert.Equal(2, file.Members.Count); 2855Assert.Equal(2, file.Members.Count); 2870Assert.Equal(1, file.Members.Count); 2887Assert.Equal(1, file.Members.Count); 2903Assert.Equal(1, file.Members.Count); 2921Assert.Equal(1, file.Members.Count); 2937Assert.Equal(1, file.Members.Count); 2953Assert.Equal(1, file.Members.Count); 2969Assert.Equal(1, file.Members.Count); 2985Assert.Equal(1, file.Members.Count); 3001Assert.Equal(1, file.Members.Count); 3004Assert.Equal(2, agg.Members.Count); 3019Assert.Equal(1, file.Members.Count); 3022Assert.Equal(2, agg.Members.Count); 3037Assert.Equal(1, file.Members.Count); 3040Assert.Equal(1, agg.Members.Count); 3044Assert.Equal(2, ms.Body.Statements.Count); 3060Assert.Equal(1, file.Members.Count); 3063Assert.Equal(1, agg.Members.Count); 3067Assert.Equal(2, ms.Body.Statements.Count); 3084Assert.Equal(1, file.Members.Count); 3087Assert.Equal(1, agg.Members.Count); 3091Assert.Equal(2, ms.Body.Statements.Count); 3108Assert.Equal(1, file.Members.Count); 3111Assert.Equal(1, agg.Members.Count); 3115Assert.Equal(2, ms.Body.Statements.Count); 3130Assert.Equal(1, file.Members.Count); 3133Assert.Equal(1, agg.Members.Count); 3137Assert.Equal(2, ms.Body.Statements.Count); 3153Assert.Equal(1, file.Members.Count); 3156Assert.Equal(1, agg.Members.Count); 3160Assert.Equal(2, ms.Body.Statements.Count); 3176Assert.Equal(1, file.Members.Count); 3179Assert.Equal(1, agg.Members.Count); 3183Assert.Equal(2, ms.Body.Statements.Count); 3199Assert.Equal(1, file.Members.Count); 3202Assert.Equal(1, agg.Members.Count); 3206Assert.Equal(2, ms.Body.Statements.Count); 3222Assert.Equal(1, file.Members.Count); 3225Assert.Equal(1, agg.Members.Count); 3229Assert.Equal(2, ms.Body.Statements.Count); 3245Assert.Equal(1, file.Members.Count); 3248Assert.Equal(1, agg.Members.Count); 3252Assert.Equal(1, ms.Body.Statements.Count); 3266Assert.Equal(1, file.Members.Count); 3269Assert.Equal(1, agg.Members.Count); 3273Assert.Equal(1, ms.Body.Statements.Count); 3287Assert.Equal(1, file.Members.Count); 3290Assert.Equal(1, agg.Members.Count); 3294Assert.Equal(1, ms.Body.Statements.Count); 3308Assert.Equal(1, file.Members.Count); 3311Assert.Equal(1, agg.Members.Count); 3315Assert.Equal(1, ms.Body.Statements.Count); 3329Assert.Equal(1, file.Members.Count); 3332Assert.Equal(1, agg.Members.Count); 3336Assert.Equal(1, ms.Body.Statements.Count); 3350Assert.Equal(1, file.Members.Count); 3353Assert.Equal(1, agg.Members.Count); 3357Assert.Equal(1, ms.Body.Statements.Count); 3371Assert.Equal(1, file.Members.Count); 3374Assert.Equal(1, agg.Members.Count); 3378Assert.Equal(1, ms.Body.Statements.Count); 3393Assert.Equal(1, file.Members.Count); 3396Assert.Equal(1, agg.Members.Count); 3400Assert.Equal(1, ms.Body.Statements.Count); 3416Assert.Equal(1, file.Members.Count); 3419Assert.Equal(1, agg.Members.Count); 3423Assert.Equal(1, ms.Body.Statements.Count); 3439Assert.Equal(1, file.Members.Count); 3442Assert.Equal(1, agg.Members.Count); 3446Assert.Equal(1, ms.Body.Statements.Count); 3462Assert.Equal(1, file.Members.Count); 3465Assert.Equal(1, agg.Members.Count); 3469Assert.Equal(1, ms.Body.Statements.Count); 3486Assert.Equal(1, file.Members.Count); 3489Assert.Equal(1, agg.Members.Count); 3493Assert.Equal(1, ms.Body.Statements.Count); 3509Assert.Equal(1, file.Members.Count); 3512Assert.Equal(1, agg.Members.Count); 3516Assert.Equal(1, ms.Body.Statements.Count); 3532Assert.Equal(1, file.Members.Count); 3535Assert.Equal(1, agg.Members.Count); 3539Assert.Equal(1, ms.Body.Statements.Count); 3575Assert.Equal(1, file.Members.Count); 3578Assert.Equal(1, agg.Members.Count); 3582Assert.Equal(2, ms.Body.Statements.Count); 3600Assert.Equal(1, file.Members.Count); 3603Assert.Equal(1, agg.Members.Count); 3607Assert.Equal(2, ms.Body.Statements.Count); 3625Assert.Equal(1, file.Members.Count); 3628Assert.Equal(1, agg.Members.Count); 3632Assert.Equal(2, ms.Body.Statements.Count); 3651Assert.Equal(1, file.Members.Count); 3654Assert.Equal(1, agg.Members.Count); 3658Assert.Equal(1, ms.Body.Statements.Count); 3675Assert.Equal(1, file.Members.Count); 3678Assert.Equal(1, agg.Members.Count); 3682Assert.Equal(1, ms.Body.Statements.Count); 3699Assert.Equal(1, file.Members.Count); 3702Assert.Equal(1, agg.Members.Count); 3706Assert.Equal(1, ms.Body.Statements.Count); 3724Assert.Equal(1, file.Members.Count); 3727Assert.Equal(1, agg.Members.Count); 3731Assert.Equal(1, ms.Body.Statements.Count); 3748Assert.Equal(1, file.Members.Count); 3751Assert.Equal(1, agg.Members.Count); 3755Assert.Equal(1, ms.Body.Statements.Count); 3772Assert.Equal(1, file.Members.Count); 3775Assert.Equal(1, agg.Members.Count); 3779Assert.Equal(1, ms.Body.Statements.Count); 3796Assert.Equal(1, file.Members.Count); 3799Assert.Equal(1, agg.Members.Count); 3803Assert.Equal(1, ms.Body.Statements.Count); 3821Assert.Equal(1, file.Members.Count); 3824Assert.Equal(1, agg.Members.Count); 3828Assert.Equal(1, ms.Body.Statements.Count); 3845Assert.Equal(1, file.Members.Count); 3848Assert.Equal(1, agg.Members.Count); 3852Assert.Equal(1, ms.Body.Statements.Count); 3869Assert.Equal(1, file.Members.Count); 3872Assert.Equal(1, agg.Members.Count); 3876Assert.Equal(1, ms.Body.Statements.Count); 3894Assert.Equal(1, file.Members.Count); 3897Assert.Equal(1, agg.Members.Count); 3901Assert.Equal(2, ms.Body.Statements.Count); 3920Assert.Equal(1, file.Members.Count); 3923Assert.Equal(1, agg.Members.Count); 3927Assert.Equal(2, ms.Body.Statements.Count); 3946Assert.Equal(1, file.Members.Count); 3949Assert.Equal(1, agg.Members.Count); 3953Assert.Equal(2, ms.Body.Statements.Count); 3973Assert.Equal(1, file.Members.Count); 3976Assert.Equal(1, agg.Members.Count); 3980Assert.Equal(1, ms.Body.Statements.Count); 3998Assert.Equal(1, file.Members.Count); 4001Assert.Equal(1, agg.Members.Count); 4005Assert.Equal(1, ms.Body.Statements.Count); 4023Assert.Equal(1, file.Members.Count); 4026Assert.Equal(1, agg.Members.Count); 4030Assert.Equal(1, ms.Body.Statements.Count); 4049Assert.Equal(1, file.Members.Count); 4052Assert.Equal(1, agg.Members.Count); 4056Assert.Equal(1, ms.Body.Statements.Count); 4070Assert.Equal(1, file.Members.Count); 4073Assert.Equal(1, agg.Members.Count); 4077Assert.Equal(1, ms.Body.Statements.Count); 4115Assert.Equal(1, file.Members.Count); 4118Assert.Equal(1, agg.Members.Count); 4122Assert.Equal(1, ms.Body.Statements.Count); 4136Assert.Equal(1, file.Members.Count); 4139Assert.Equal(1, agg.Members.Count); 4143Assert.Equal(1, ms.Body.Statements.Count); 4157Assert.Equal(1, file.Members.Count); 4160Assert.Equal(1, agg.Members.Count); 4164Assert.Equal(1, ms.Body.Statements.Count); 4178Assert.Equal(1, file.Members.Count); 4181Assert.Equal(1, agg.Members.Count); 4185Assert.Equal(1, ms.Body.Statements.Count); 4200Assert.Equal(1, file.Members.Count); 4203Assert.Equal(1, agg.Members.Count); 4207Assert.Equal(1, ms.Body.Statements.Count); 4222Assert.Equal(1, file.Members.Count); 4225Assert.Equal(1, agg.Members.Count); 4229Assert.Equal(1, ms.Body.Statements.Count); 4245Assert.Equal(1, file.Members.Count); 4248Assert.Equal(1, agg.Members.Count); 4252Assert.Equal(1, ms.Body.Statements.Count); 4268Assert.Equal(1, file.Members.Count); 4271Assert.Equal(1, agg.Members.Count); 4275Assert.Equal(1, ms.Body.Statements.Count); 4289Assert.Equal(1, file.Members.Count); 4292Assert.Equal(1, agg.Members.Count); 4296Assert.Equal(1, ms.Body.Statements.Count); 4312Assert.Equal(1, file.Members.Count); 4315Assert.Equal(1, agg.Members.Count); 4319Assert.Equal(1, ms.Body.Statements.Count); 4335Assert.Equal(1, file.Members.Count); 4338Assert.Equal(1, agg.Members.Count); 4342Assert.Equal(1, ms.Body.Statements.Count); 4361Assert.Equal(1, file.Members.Count); 4364Assert.Equal(1, agg.Members.Count); 4368Assert.Equal(1, ms.Body.Statements.Count); 4383Assert.Equal(1, file.Members.Count); 4386Assert.Equal(1, agg.Members.Count); 4390Assert.Equal(1, ms.Body.Statements.Count); 4409Assert.Equal(1, file.Members.Count); 4412Assert.Equal(1, agg.Members.Count); 4416Assert.Equal(1, ms.Body.Statements.Count); 4436Assert.Equal(1, file.Members.Count); 4439Assert.Equal(1, agg.Members.Count); 4443Assert.Equal(1, ms.Body.Statements.Count); 4457Assert.Equal(1, file.Members.Count); 4460Assert.Equal(1, agg.Members.Count); 4464Assert.Equal(1, ms.Body.Statements.Count); 4480Assert.Equal(1, file.Members.Count); 4483Assert.Equal(1, agg.Members.Count); 4487Assert.Equal(1, ms.Body.Statements.Count); 4505Assert.Equal(1, file.Members.Count); 4508Assert.Equal(1, agg.Members.Count); 4512Assert.Equal(1, ms.Body.Statements.Count); 4530Assert.Equal(1, file.Members.Count); 4533Assert.Equal(1, agg.Members.Count); 4537Assert.Equal(1, ms.Body.Statements.Count); 4552Assert.Equal(1, file.Members.Count); 4555Assert.Equal(1, agg.Members.Count); 4559Assert.Equal(1, ms.Body.Statements.Count); 4577Assert.Equal(1, file.Members.Count); 4580Assert.Equal(1, agg.Members.Count); 4584Assert.Equal(1, ms.Body.Statements.Count); 4603Assert.Equal(1, file.Members.Count); 4606Assert.Equal(1, agg.Members.Count); 4610Assert.Equal(1, ms.Body.Statements.Count); 4630Assert.Equal(1, file.Members.Count); 4633Assert.Equal(1, agg.Members.Count); 4637Assert.Equal(1, ms.Body.Statements.Count); 4657Assert.Equal(1, file.Members.Count); 4660Assert.Equal(1, agg.Members.Count); 4664Assert.Equal(1, ms.Body.Statements.Count); 4685Assert.Equal(1, file.Members.Count); 4688Assert.Equal(1, agg.Members.Count); 4692Assert.Equal(1, ms.Body.Statements.Count); 4712Assert.Equal(1, file.Members.Count); 4715Assert.Equal(1, agg.Members.Count); 4719Assert.Equal(1, ms.Body.Statements.Count); 4739Assert.Equal(1, file.Members.Count); 4742Assert.Equal(1, agg.Members.Count); 4746Assert.Equal(2, ms.Body.Statements.Count); 4768Assert.Equal(1, file.Members.Count); 4771Assert.Equal(1, agg.Members.Count); 4775Assert.Equal(2, ms.Body.Statements.Count); 4797Assert.Equal(1, file.Members.Count); 4800Assert.Equal(1, agg.Members.Count); 4804Assert.Equal(2, ms.Body.Statements.Count); 4827Assert.Equal(1, file.Members.Count); 4830Assert.Equal(1, agg.Members.Count); 4834Assert.Equal(2, ms.Body.Statements.Count); 4856Assert.Equal(1, file.Members.Count); 4859Assert.Equal(1, agg.Members.Count); 4863Assert.Equal(2, ms.Body.Statements.Count); 4885Assert.Equal(1, file.Members.Count); 4888Assert.Equal(1, agg.Members.Count); 4892Assert.Equal(1, ms.Body.Statements.Count); 4912Assert.Equal(1, file.Members.Count); 4915Assert.Equal(1, agg.Members.Count); 4919Assert.Equal(1, ms.Body.Statements.Count); 4939Assert.Equal(1, file.Members.Count); 4942Assert.Equal(1, agg.Members.Count); 4946Assert.Equal(1, ms.Body.Statements.Count); 4966Assert.Equal(1, file.Members.Count); 4969Assert.Equal(1, agg.Members.Count); 4973Assert.Equal(1, ms.Body.Statements.Count); 4994Assert.Equal(1, file.Members.Count); 4997Assert.Equal(1, agg.Members.Count); 5001Assert.Equal(1, ms.Body.Statements.Count); 5021Assert.Equal(1, file.Members.Count); 5024Assert.Equal(1, agg.Members.Count); 5028Assert.Equal(1, ms.Body.Statements.Count); 5049Assert.Equal(1, file.Members.Count); 5052Assert.Equal(1, agg.Members.Count); 5056Assert.Equal(1, ms.Body.Statements.Count); 5075Assert.Equal(1, file.Members.Count); 5078Assert.Equal(1, agg.Members.Count); 5082Assert.Equal(1, ms.Body.Statements.Count); 5105Assert.Equal(1, file.Members.Count); 5108Assert.Equal(1, agg.Members.Count); 5112Assert.Equal(1, ms.Body.Statements.Count); 5134Assert.Equal(1, file.Members.Count); 5137Assert.Equal(1, agg.Members.Count); 5141Assert.Equal(1, ms.Body.Statements.Count); 5164Assert.Equal(1, file.Members.Count); 5167Assert.Equal(1, agg.Members.Count); 5171Assert.Equal(1, ms.Body.Statements.Count); 5817Assert.Equal(1, file.Members.Count); 5820Assert.Equal(1, agg.Members.Count); 5824Assert.Equal(1, ms.Body.Statements.Count); 5856Assert.Equal(1, file.Members.Count); 5859Assert.Equal(1, agg.Members.Count); 5863Assert.Equal(2, ms.Body.Statements.Count); 5885Assert.Equal(1, file.Members.Count); 5888Assert.Equal(1, agg.Members.Count); 5892Assert.Equal(2, ms.Body.Statements.Count); 5914Assert.Equal(1, file.Members.Count); 5917Assert.Equal(1, agg.Members.Count); 5921Assert.Equal(2, ms.Body.Statements.Count); 5944Assert.Equal(1, file.Members.Count); 5947Assert.Equal(1, agg.Members.Count); 5951Assert.Equal(2, ms.Body.Statements.Count); 5973Assert.Equal(1, file.Members.Count); 5976Assert.Equal(1, agg.Members.Count); 5980Assert.Equal(2, ms.Body.Statements.Count); 6007Assert.Equal(1, file.Members.Count); 6010Assert.Equal(1, agg.Members.Count); 6014Assert.Equal(1, ms.Body.Statements.Count); 6034Assert.Equal(1, file.Members.Count); 6037Assert.Equal(1, agg.Members.Count); 6041Assert.Equal(1, ms.Body.Statements.Count); 6061Assert.Equal(1, file.Members.Count); 6064Assert.Equal(1, agg.Members.Count); 6068Assert.Equal(1, ms.Body.Statements.Count); 6088Assert.Equal(1, file.Members.Count); 6091Assert.Equal(1, agg.Members.Count); 6095Assert.Equal(1, ms.Body.Statements.Count); 6116Assert.Equal(1, file.Members.Count); 6119Assert.Equal(1, agg.Members.Count); 6123Assert.Equal(1, ms.Body.Statements.Count); 6143Assert.Equal(1, file.Members.Count); 6146Assert.Equal(1, agg.Members.Count); 6150Assert.Equal(1, ms.Body.Statements.Count); 6173Assert.Equal(1, file.Members.Count); 6176Assert.Equal(1, agg.Members.Count); 6180Assert.Equal(1, ms.Body.Statements.Count); 6204Assert.Equal(1, file.Members.Count); 6207Assert.Equal(1, agg.Members.Count); 6211Assert.Equal(1, ms.Body.Statements.Count); 6232Assert.Equal(1, file.Members.Count); 6235Assert.Equal(1, agg.Members.Count); 6239Assert.Equal(1, ms.Body.Statements.Count); 6279Assert.Equal(1, file.Members.Count); 6282Assert.Equal(1, agg.Members.Count); 6286Assert.Equal(2, ms.Body.Statements.Count); 6313Assert.Equal(1, file.Members.Count); 6316Assert.Equal(1, agg.Members.Count); 6320Assert.Equal(2, ms.Body.Statements.Count); 6343Assert.Equal(1, file.Members.Count); 6346Assert.Equal(1, agg.Members.Count); 6350Assert.Equal(2, ms.Body.Statements.Count); 6401Assert.Equal(1, file.Members.Count); 6404Assert.Equal(1, agg.Members.Count); 6412Assert.Equal(0, pd.AccessorList.Accessors.Count); 6425Assert.Equal(1, file.Members.Count); 6428Assert.Equal(2, agg.Members.Count); 6437Assert.Equal(0, pd.AccessorList.Accessors.Count); 6450Assert.Equal(1, file.Members.Count); 6453Assert.Equal(2, agg.Members.Count); 6462Assert.Equal(1, pd.AccessorList.Accessors.Count); 6485Assert.Equal(1, file.Members.Count); 6488Assert.Equal(2, agg.Members.Count); 6497Assert.Equal(1, pd.AccessorList.Accessors.Count); 6506Assert.Equal(0, acc.Body.Statements.Count); 6524Assert.Equal(1, file.Members.Count); 6527Assert.Equal(2, agg.Members.Count); 6536Assert.Equal(1, pd.AccessorList.Accessors.Count); 6545Assert.Equal(0, acc.Body.Statements.Count); 6563Assert.Equal(1, file.Members.Count); 6569Assert.Equal(1, accessorDecls.Count); 6579Assert.Equal(1, getBodyStmts.Count); 6595Assert.Equal(1, file.Members.Count); 6601Assert.Equal(2, accessorDecls.Count); 6626Assert.Equal(1, file.Members.Count); 6629Assert.Equal(1, agg.Members.Count); 6638Assert.Equal(1, md.Body.Statements.Count); 6646Assert.Equal(1, qx.Body.Clauses.Count); 6671Assert.Equal(1, file.Members.Count); 6674Assert.Equal(1, agg.Members.Count); 6683Assert.Equal(1, md.Body.Statements.Count); 6691Assert.Equal(1, qx.Body.Clauses.Count); 6715Assert.Equal(1, file.Members.Count); 6718Assert.Equal(1, agg.Members.Count); 6727Assert.Equal(1, md.Body.Statements.Count); 6735Assert.Equal(1, qx.Body.Clauses.Count); 6764Assert.Equal(1, file.Members.Count); 6767Assert.Equal(2, agg.Members.Count); 6777Assert.Equal(1, md.Body.Statements.Count); 6785Assert.Equal(1, qx.Body.Clauses.Count); 6812Assert.Equal(1, file.Members.Count); 6815Assert.Equal(2, agg.Members.Count); 6825Assert.Equal(1, md.Body.Statements.Count); 6833Assert.Equal(1, qx.Body.Clauses.Count); 6859Assert.Equal(1, file.Members.Count); 6862Assert.Equal(2, agg.Members.Count); 6872Assert.Equal(1, md.Body.Statements.Count); 6880Assert.Equal(1, qx.Body.Clauses.Count); 6911Assert.Equal(1, file.Members.Count); 6917Assert.Equal(2, item1.Members.Count); 6925Assert.Equal(1, subitem1.Body.Statements.Count); 7073Assert.Equal(1, usings.Count); 7088Assert.Equal(1, usings.Count); 7105Assert.Equal(1, usings.Count); 7109Assert.Equal(1, members.Count); 7129Assert.Equal(1, usings.Count); 7133Assert.Equal(1, members.Count);
Parsing\RoundTrippingTests.cs (1)
47Assert.Equal(memberCount, tree.GetCompilationUnitRoot().Members.Count);
Parsing\StatementParsingTests.cs (24)
1238Assert.Equal(1, ts.Catches.Count); 1268Assert.Equal(1, ts.Catches.Count); 1297Assert.Equal(1, ts.Catches.Count); 1321Assert.Equal(3, ts.Catches.Count); 1364Assert.Equal(0, ts.Catches.Count); 1387Assert.Equal(3, ts.Catches.Count); 2136Assert.Equal(0, ss.Sections.Count); 2160Assert.Equal(1, ss.Sections.Count); 2161Assert.Equal(1, ss.Sections[0].Labels.Count); 2169Assert.Equal(1, ss.Sections[0].Statements.Count); 2195Assert.Equal(2, ss.Sections.Count); 2197Assert.Equal(1, ss.Sections[0].Labels.Count); 2205Assert.Equal(1, ss.Sections[0].Statements.Count); 2208Assert.Equal(1, ss.Sections[1].Labels.Count); 2216Assert.Equal(1, ss.Sections[1].Statements.Count); 2242Assert.Equal(1, ss.Sections.Count); 2244Assert.Equal(1, ss.Sections[0].Labels.Count); 2249Assert.Equal(1, ss.Sections[0].Statements.Count); 2275Assert.Equal(1, ss.Sections.Count); 2277Assert.Equal(2, ss.Sections[0].Labels.Count); 2291Assert.Equal(1, ss.Sections[0].Statements.Count); 2317Assert.Equal(1, ss.Sections.Count); 2319Assert.Equal(1, ss.Sections[0].Labels.Count); 2326Assert.Equal(2, ss.Sections[0].Statements.Count);
Syntax\SyntaxFactoryTests.cs (6)
64Assert.Equal(0, n.Externs.Count); 65Assert.Equal(0, n.Usings.Count); 71Assert.Equal(0, n.Members.Count); 83Assert.Equal(0, c.AttributeLists.Count); 87Assert.Equal(0, c.ConstraintClauses.Count); 91Assert.Equal(0, c.Members.Count);
Syntax\SyntaxListTests.cs (9)
194Assert.Equal(0, list.Count); 200Assert.Equal(1, newList.Count); 204Assert.Equal(2, newList.Count); 208Assert.Equal(1, newList.Count); 212Assert.Equal(2, newList.Count); 216Assert.Equal(0, newList.Count); 245Assert.True(declaration.AttributeLists.Count == 0); 256Assert.True(declaration.AttributeLists.Count == 1); 261Assert.True(declaration.AttributeLists.Count == 1);
Microsoft.CodeAnalysis.CSharp.Workspaces (53)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
616if (method.ConstraintClauses.Count > 0) 1803if (method.ConstraintClauses.Count == 0)
Formatting\TypingFormattingRule.cs (1)
74if (node is BlockSyntax { Statements: { Count: >= 1 } statements })
OrganizeImports\CSharpOrganizeImportsService.Rewriter.cs (1)
80if (list.Count > 0)
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
119if (node.Statements.Count != 1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
225root.Members.Count > 0 ? root.Members[0] : 226root.AttributeLists.Count > 0 ? root.AttributeLists[0] : (SyntaxNode)null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
492if (attributes.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
82if (section.Labels.Count == 0 && 83section.Statements.Count == 0) 112if (section.Statements.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (6)
162for (var i = 0; i < attributes.Count; ++i) 186if (switchSection.Labels.Count < 2) 194for (var i = 0; i < switchSection.Labels.Count - 1; ++i) 203if (switchSection.Labels[switchSection.Labels.Count - 1] != null) 205AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[switchSection.Labels.Count - 1].GetFirstToken(includeZeroWidth: true), switchSection.GetLastToken(includeZeroWidth: true)); 223if (parameterNode.AttributeLists.Count != 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (5)
31if (organizedExternAliasList.Count > 0 && organizedUsingList.Count > 0) 42for (var i = 1; i < organizedUsingList.Count; i++) 103if (externAliasList.Count > 0 || usingList.Count > 0)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
31return members.Count == 1
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
163accessorList?.Accessors.Count == 1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
130if (root.Externs.Count == 0) 158var endOfList = root.Usings.Count - 1; 161for (var i = 0; i < root.Usings.Count; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
431(compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) 1988(compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (3)
26if (members.Count == 0) 39for (var i = 0; i < members.Count - 1; i++) 150return (TypeDeclarationSyntax)EnsureHasBraces(typeDeclaration, typeDeclaration.Members.Count > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
175if (node is not SwitchSectionSyntax section || section.Statements.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
411for (var i = clauses.Count - 1; i >= 0; i--)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
97=> list.Count > 0 ? list[0].SpanStart : container.Span.End;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (15)
54for (var i = 0; i < usings.Count; i++) 70if (i < usings.Count - 1) 133Debug.Assert(oldUsings.Count == newUsings.Count); 136for (var i = 0; i < oldUsings.Count; i++) 161if (compilationUnit.Usings.Count > 0 && finalUsings.Count == 0) 181if (finalUsings.Count == 0 && 182resultCompilationUnit.Externs.Count == 0 && 183resultCompilationUnit.Members.Count >= 1) 213if (namespaceDeclaration.Usings.Count > 0 && finalUsings.Count == 0) 233if (finalUsings.Count == 0 && 234resultNamespace.Externs.Count == 0 && 235resultNamespace.Members.Count >= 1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
842for (var i = 0; i < arrayType.RankSpecifiers.Count; i++)
Microsoft.CodeAnalysis.Features (5)
ChangeSignature\AbstractChangeSignatureService.cs (1)
995for (var i = 0; i < structuredContent.Count; i++)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
389if (bodyStatements.Count >= 1)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (3)
126var tryStatement = declarationStatementIndex + 1 < surroundingStatements.Count 170.Concat(surroundingStatements.Skip(declarationStatementIndex + 1 + statementsToSurround.Count))]); 201if (finallyStatements.Count != 1)
Microsoft.CodeAnalysis.VisualBasic (25)
Binding\Binder_Statements.vb (2)
2080Dim boundStatements(stmtList.Count - 1) As BoundStatement 4766Dim n As Integer = catchClauses.Count
Binding\Binder_Utils.vb (2)
333For i As Integer = arrayModifierSyntax.Count - 1 To 0 Step -1 387Debug.Assert(arrayModifierSyntax.Count > 0 OrElse
Binding\Binder_XmlLiterals.vb (1)
201If content.Count > 0 Then
Declarations\DeclarationTreeBuilder.vb (3)
420If members.Count > 0 Then 455If members.Count > 0 Then 583If members.Count = 0 Then
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
548If attributes.Count > 0 Then
OptionsValidator.vb (1)
35For i = 0 To importList.Count - 1
Symbols\Source\QuickAttributeChecker.vb (1)
86If attributeLists.Count > 0 Then
Symbols\Source\SourceNamedTypeSymbol.vb (4)
1060If baseDeclList.Count > 0 Then 1076If inheritsSyntax.Count = 0 Then Return Nothing 1155If baseSyntax.Count = 0 Then Return 1212If baseSyntax.Count = 0 Then Return
Symbols\Symbol_Attributes.vb (1)
401If attributeBlockSyntaxList.Count > 0 Then
Syntax\SyntaxFacts.vb (2)
301If body.Count > 0 Then 302Dim lastStatement = body(body.Count - 1)
Syntax\SyntaxNormalizer.vb (5)
687Dim lastElementIndex = list.Count - 1 765If node.Members.Count > 0 Then 830Dim hasImplements As Boolean = node.Implements.Count > 0 831Dim hasInherits As Boolean = node.Inherits.Count > 0 834If Not hasInherits AndAlso Not hasImplements AndAlso node.Members.Count > 0 Then
Syntax\SyntaxReplacer.vb (1)
325If index >= 0 AndAlso index < list.Count Then
Syntax\VisualBasicSyntaxRewriter.vb (1)
77Dim i = 0, n = list.Count
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (24)
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedParametersAndValues\VisualBasicRemoveUnusedParametersAndValuesDiagnosticAnalyzer.vb (1)
61If methodSyntax.Statements.Count = 1 Then
src\Analyzers\VisualBasic\Analyzers\UseAutoProperty\VisualBasicUseAutoPropertyAnalyzer.vb (2)
107If statements?.Count = 1 Then 130If statements?.Count = 1 Then
src\Analyzers\VisualBasic\Analyzers\UseCoalesceExpression\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (2)
59If ifBlock.Statements.Count <> 1 Then 68Return ifBlock.ElseBlock IsNot Nothing Or ifBlock.ElseIfBlocks.Count > 0
src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (2)
55If ifStatement.ElseIfBlocks.Count > 0 Then 59If ifStatement.Statements.Count <> 1 Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (3)
614If statements.Count = 1 Then 655Return executableBlock.GetExecutableBlockStatements().Count = 1 956For i = 0 To root.Imports.Count - 1
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
306Return compilationUnit Is Nothing OrElse compilationUnit.Imports.Count = 0
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsRewriter.vb (4)
147If newCompilationUnit.Imports.Count = 0 AndAlso newCompilationUnit.Options.Count = 0 Then 148If newCompilationUnit.Attributes.Count > 0 OrElse newCompilationUnit.Members.Count > 0 Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (4)
852Return method.Statements.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan(method.Statements), span) 857Return [event].Accessors.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan([event].Accessors), span) 862Return [property].Accessors.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan([property].Accessors), span) 892Debug.Assert(list.Count > 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (2)
20For i = 1 To [imports].Count - 1 75If [imports].Count > 1 Then
src\Workspaces\VisualBasic\Portable\Formatting\Rules\NodeBasedFormattingRule.vb (3)
155If caseBlock.Statements.Count = 0 Then 404If ifBlock.Statements.Count > 0 Then 431If [try].Statements.Count > 0 Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (14)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (2)
71If destinationOpt.Members.Count = 0 Then 78If destinationOpt.Members.Count = value AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (2)
70If members.Count >= 1 Then 77For i = 0 To members.Count - 2
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\CompilationUnitSyntaxExtensions.vb (1)
105Dim importsLength = root.Imports.Count
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (8)
18If members.Count = 0 Then 30For i = 0 To members.Count - 2 55allElements.Take(allElements.Count - 1).Concat(ReplaceTrailingColonToEndOfLineTrivia(allElements.Last()))) 63If allElements.Count > 0 AndAlso 64destinationType.Implements.Count = 0 Then 73If allElements.Count > 0 Then 81If destinationType.Inherits.Count = 0 AndAlso 82destinationType.Implements.Count = 0 AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
420While i < arrayType.RankSpecifiers.Count
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (6)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (4)
60If statements = Nothing OrElse statements.Count = 0 Then 66Dim newList As New List(Of StatementSyntax)(capacity:=statements.Count) 70Dim lastStatementToProcess = statements.Count - 1 73lastStatementToProcess = statements.Count - 2
GoToBase\VisualBasicGoToBaseService.vb (1)
33If constructorBlock.Statements.Count = 0 OrElse
Utilities\NavigationPointHelpers.vb (1)
35If eventBlock.EventStatement.AttributeLists.Count > 0 Then
Microsoft.CodeAnalysis.VisualBasic.Features (26)
CodeRefactorings\InlineMethod\VisualBasicInlineMethodRefactoringProvider.vb (1)
28If statements.Count = 1 Then
Completion\KeywordRecommenders\Declarations\ImplementsKeywordRecommender.vb (1)
45DirectCast(typeStatement.Parent, TypeBlockSyntax).Implements.Count > 0 Then
Completion\KeywordRecommenders\Declarations\ImportsKeywordRecommender.vb (1)
32If compilationUnit.Options.Count > 0 Then
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (2)
38If foreachBlock.Statements.Count = 0 Then 42Return (foreachBlock.Statements(0), foreachBlock.Statements(foreachBlock.Statements.Count - 1))
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (3)
145If documentationComment Is Nothing OrElse documentationComment.Content.Count = 0 Then 150If documentationComment.Content.Count > 2 Then 171If documentationComment.Content.Count = 2 Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
666If ctor.Statements.Count = 0 Then 2133If tryBlock.CatchBlocks.Count = 0 Then
IntroduceUsingStatement\VisualBasicIntroduceUsingStatementCodeRefactoringProvider.vb (1)
26Return tryStatement.CatchBlocks.Count > 0
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
183While i < oldMembers.Count
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.MultiLine.vb (1)
52If falseStatementOpt.Count > 0 Then
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.SingleLine.vb (2)
51If isSingleLine AndAlso falseStatements.Count > 0 Then 73If falseStatements.Count <> 0 Then
LineSeparators\VisualBasicLineSeparatorService.vb (3)
106If children.Count = 0 Then 111For i As Integer = 0 To children.Count - 2 134Dim nextToLast = children(children.Count - 2)
SplitOrMergeIfStatements\VisualBasicMergeConsecutiveIfStatementsCodeRefactoringProvider.vb (1)
40If ifBlock.Statements.Count > 0 AndAlso span.IsAround(ifBlock, ifBlock.Statements.Last()) Then
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedParametersAndValues\VisualBasicRemoveUnusedParametersAndValuesDiagnosticAnalyzer.vb (1)
61If methodSyntax.Statements.Count = 1 Then
src\Analyzers\VisualBasic\Analyzers\UseAutoProperty\VisualBasicUseAutoPropertyAnalyzer.vb (2)
107If statements?.Count = 1 Then 130If statements?.Count = 1 Then
src\Analyzers\VisualBasic\Analyzers\UseCoalesceExpression\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (2)
59If ifBlock.Statements.Count <> 1 Then 68Return ifBlock.ElseBlock IsNot Nothing Or ifBlock.ElseIfBlocks.Count > 0
src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (2)
55If ifStatement.ElseIfBlocks.Count > 0 Then 59If ifStatement.Statements.Count <> 1 Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (49)
Parser\ParseExpression.vb (2)
1033Assert.Equal(1, el.Content.Count) 1043Assert.Equal(1, el.Content.Count)
Parser\ParseStatements.vb (7)
2185Assert.Equal(1, ifBlock.ElseIfBlocks.Count) 2187Assert.Equal(1, statements.Count) 2191Assert.Equal(1, ifBlock.Statements.Count) 2224Assert.Equal(1, ifBlock.ElseIfBlocks.Count) 2226Assert.Equal(1, statements.Count) 2230Assert.Equal(1, ifBlock.Statements.Count) 2260Assert.Equal(2, statements.Count)
Syntax\SyntaxListTests.vb (35)
18Assert.Equal(3, list.Count) 36Assert.Equal(4, newList.Count) 40Assert.Equal(5, newList.Count) 44Assert.Equal(4, newList.Count) 48Assert.Equal(4, newList.Count) 52Assert.Equal(4, newList.Count) 56Assert.Equal(4, newList.Count) 60Assert.Equal(5, newList.Count) 64Assert.Equal(5, newList.Count) 68Assert.Equal(5, newList.Count) 72Assert.Equal(5, newList.Count) 76Assert.Equal(2, newList.Count) 79newList = list.RemoveAt(list.Count - 1) 80Assert.Equal(2, newList.Count) 84Assert.Equal(2, newList.Count) 88Assert.Equal(2, newList.Count) 92Assert.Equal(2, newList.Count) 96Assert.Equal(3, newList.Count) 100Assert.Equal(3, newList.Count) 104Assert.Equal(3, newList.Count) 108Assert.Equal(4, newList.Count) 112Assert.Equal(4, newList.Count) 116Assert.Equal(4, newList.Count) 120Assert.Equal(2, newList.Count) 124Assert.Equal(2, newList.Count) 128Assert.Equal(2, newList.Count) 133Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Insert(list.Count + 1, nodeD)) 135Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(list.Count + 1, {nodeD})) 137Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.RemoveAt(list.Count)) 154Assert.Equal(0, list.Count) 160Assert.Equal(1, newList.Count) 164Assert.Equal(2, newList.Count) 168Assert.Equal(1, newList.Count) 172Assert.Equal(2, newList.Count) 176Assert.Equal(0, newList.Count)
TestSyntaxNodes.vb (5)
220If list.Count > 0 Then 223Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End) 225For i = 0 To list.Count - 1 230If i < list.Count - 1 Then 2933Assert.Equal(4, x.Count)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (38)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
240modifiedIdentifier.ArrayRankSpecifiers.Count > 0 OrElse
CodeGeneration\VisualBasicSyntaxGenerator.vb (5)
884Return If(propertyBlock.Accessors.Count = 0, 1560If compilationUnit.Attributes.Count = 1 Then 3310If inh.Count = 1 AndAlso last IsNot Nothing Then 3320If imp.Count = 1 AndAlso last IsNot Nothing Then 3627If attrStmt IsNot Nothing AndAlso attrStmt.AttributeLists.Count = 1 Then
Formatting\Rules\NodeBasedFormattingRule.vb (3)
155If caseBlock.Statements.Count = 0 Then 404If ifBlock.Statements.Count > 0 Then 431If [try].Statements.Count > 0 Then
OrganizeImports\VisualBasicOrganizeImportsService.Rewriter.vb (1)
61If list.Count > 0 Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (3)
614If statements.Count = 1 Then 655Return executableBlock.GetExecutableBlockStatements().Count = 1 956For i = 0 To root.Imports.Count - 1
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
306Return compilationUnit Is Nothing OrElse compilationUnit.Imports.Count = 0
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsRewriter.vb (4)
147If newCompilationUnit.Imports.Count = 0 AndAlso newCompilationUnit.Options.Count = 0 Then 148If newCompilationUnit.Attributes.Count > 0 OrElse newCompilationUnit.Members.Count > 0 Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (4)
852Return method.Statements.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan(method.Statements), span) 857Return [event].Accessors.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan([event].Accessors), span) 862Return [property].Accessors.Count > 0 AndAlso ContainsExclusively(GetSyntaxListSpan([property].Accessors), span) 892Debug.Assert(list.Count > 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\ImportsOrganizer.vb (2)
20For i = 1 To [imports].Count - 1 75If [imports].Count > 1 Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (2)
71If destinationOpt.Members.Count = 0 Then 78If destinationOpt.Members.Count = value AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (2)
70If members.Count >= 1 Then 77For i = 0 To members.Count - 2
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\CompilationUnitSyntaxExtensions.vb (1)
105Dim importsLength = root.Imports.Count
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeBlockSyntaxExtensions.vb (8)
18If members.Count = 0 Then 30For i = 0 To members.Count - 2 55allElements.Take(allElements.Count - 1).Concat(ReplaceTrailingColonToEndOfLineTrivia(allElements.Last()))) 63If allElements.Count > 0 AndAlso 64destinationType.Implements.Count = 0 Then 73If allElements.Count > 0 Then 81If destinationType.Inherits.Count = 0 AndAlso 82destinationType.Implements.Count = 0 AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
420While i < arrayType.RankSpecifiers.Count
Microsoft.CodeAnalysis.Workspaces (11)
Editing\SyntaxGenerator.cs (1)
1554for (; count > 0 && offset < list.Count; count--)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
253if (attributeLists.Count == 0)
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (2)
99if (currentAccessors.Count != previousAccessors.Count)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
89for (var i = fieldIndex; i < members.Count; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (5)
199Contract.ThrowIfTrue(availableIndices != null && availableIndices.Count != declarationList.Count + 1); 286var index = GetPreferredIndex(declarationList.Count, availableIndices, forward: false); 293return declarationList.Count; 342Debug.Assert(desiredGroupIndex <= declarationList.Count); 345while (desiredGroupIndex < declarationList.Count)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
24if (existingImports.Count == 0)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
MSBuildWorkspaceTestBase.cs (2)
94if (classBlock.Implements.Count > 0) 98else if (classBlock.Inherits.Count > 0)
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (1)
617if (parameter.AttributeLists.Count > 0)
LoggerMessageGenerator.Roslyn3.11.cs (1)
65node is MethodDeclarationSyntax m && m.AttributeLists.Count > 0;
Microsoft.Interop.ComInterfaceGenerator (1)
UnmanagedToManagedStubGenerator.cs (1)
91else if (catchClauses.Count > 0)
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
27if (block.Statements.Count == 0)
Microsoft.VisualStudio.LanguageServices.CSharp (21)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
799return oldArrayType.RankSpecifiers.Count == newArrayType.RankSpecifiers.Count
CodeModel\CSharpCodeModelService.cs (3)
2305if (method.Body != null && method.Body.Statements.Count == 0) 2320accessor.Body.Statements.Count > 1 || 2321(accessor.Body.Statements.Count == 1 && !accessor.Body.Statements[0].IsKind(SyntaxKind.ReturnStatement)))
CodeModel\CSharpCodeModelService.NodeLocator.cs (14)
323if (node.AttributeLists.Count == 0) 371if (node.AttributeLists.Count == 0) 457if (node.AttributeLists.Count == 0) 620if (node.AttributeLists.Count == 0) 694if (field.AttributeLists.Count == 0) 734if (node.AttributeLists.Count == 0) 774if (node.AttributeLists.Count == 0) 895if (node.AttributeLists.Count == 0) 936if (node.AttributeLists.Count == 0) 1010if (node.AttributeLists.Count == 0) 1109if (node.AttributeLists.Count == 0) 1232if (node.AttributeLists.Count == 0) 1274if (field.AttributeLists.Count == 0) 1315if (node.AttributeLists.Count == 0)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
79for (var i = 0; i < specifiers.Count; i++)
CodeModel\SyntaxNodeExtensions.cs (1)
63if (node.TryGetAttributeLists(out var attributeLists) && attributeLists.Count > 0)
Microsoft.VisualStudio.LanguageServices.VisualBasic (17)
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (2)
1033Return oldArrayType.RankSpecifiers.Count = newArrayType.RankSpecifiers.Count AndAlso
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (7)
224If attributes.Count = 0 Then 256If attributes.Count = 0 Then 534If declareStatement.AttributeLists.Count > 0 Then 599If methodStatement.AttributeLists.Count > 0 Then 716If propertyStatement.AttributeLists.Count > 0 Then 844If eventStatement.AttributeLists.Count > 0 Then 925If delegateStatement.AttributeLists.Count > 0 Then
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
60For i = 0 To specifiers.Count - 1
CodeModel\VisualBasicCodeModelService.vb (6)
3086For i = 0 To eventBlock.Accessors.Count - 1 3352For i = 0 To propertyBlock.Accessors.Count - 1 4261Dim baseCount = typeBlock.Inherits.Count 4287If typeBlock.Inherits.Count = 0 Then 4327Dim baseCount = typeBlock.Implements.Count 4359If typeBlock.Implements.Count = 0 Then
Venus\VisualBasicContainedLanguage.vb (1)
196If method Is Nothing OrElse method.Statements.Count <> 2 Then
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn3.11.cs (1)
111private static bool IsSyntaxTargetForGeneration(SyntaxNode node) => node is ClassDeclarationSyntax { AttributeLists.Count: > 0, BaseList.Types.Count: > 0 };