81 references to Any
Microsoft.CodeAnalysis (4)
Syntax\SyntaxList`1.cs (4)
367if (this.Any()) 390if (this.Any()) 442if (this.Any()) 452if (this.Any())
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
87if (attributeList.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
453if (attributeList.Any())
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (3)
50private bool HasExterns(SyntaxNode node) => GetExterns(node).Any(); 51private bool HasAnyImports(SyntaxNode node) => GetUsingsAndAliases(node).Any() || GetExterns(node).Any();
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\UnboundLambda.cs (4)
688if (_unboundLambda.ParameterAttributes(i).Any()) 696if (_unboundLambda.ParameterAttributes(i).Any()) 702else if (scope == ScopedKind.ScopedValue && _unboundLambda.ParameterAttributes(i).Any()) 767_unboundLambda.ParameterAttributes(i).Any())
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
442if (!externAliasDirectives.Any()) 574if (!usingDirectives.Any())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
403var forcePreservation = compilationUnit.AttributeLists.Any()
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
142if (!statements.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
49if (rootUsings.Any()) 58var end = root.Members.Any()
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyTestBase.cs (2)
140if (body != null && body.Statements.Any()) 310if (body != null && body.Statements.Any())
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
110var isFirst = !compilationRoot.AttributeLists.Any();
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
194if (falseBlock.Statements.Any())
LineSeparators\CSharpLineSeparatorService.cs (1)
247if (usings.Any())
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
403var forcePreservation = compilationUnit.AttributeLists.Any()
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
142if (!statements.Any())
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
320if (t.AttributeLists.Any())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\UsedAssembliesTests.cs (1)
138if (!unit.Usings.Any())
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (13)
192hasAttributes: localFunction.AttributeLists.Any(), 215typeDeclaration.Members.Any() && 234typeDeclaration.AttributeLists.Any(), 264enumDeclaration.AttributeLists.Any(), 292ctorDecl.AttributeLists.Any(), 308delegateDecl.AttributeLists.Any(), 322enumMember.AttributeLists.Any(), 336eventDecl.AttributeLists.Any(), 350indexerDecl.AttributeLists.Any(), 365method.AttributeLists.Any(), 381property.AttributeLists.Any(), 404fieldDeclaration.AttributeLists.Any(), 454parameter.AttributeLists.Any(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
49if (rootUsings.Any()) 58var end = root.Members.Any()
Microsoft.CodeAnalysis.Features (1)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
250if (statementsToSurround.Any())
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
133If list.Any() Then
Symbols\Symbol_Attributes.vb (1)
322If attributeDeclarationSyntaxList.Any() Then
Syntax\SyntaxNormalizer.vb (5)
713If list.Any Then 732Dim hasImports = node.Imports.Any 733Dim hasMembers = node.Members.Any 734Dim hasAttributes = node.Attributes.Any 865If node.Statements.Any() Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
994If aggregateClause.AdditionalQueryOperators.Any() Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
47Dim position = If(ifBlock.Statements.Any(), ifBlock.Statements(0).SpanStart, ifBlock.IfStatement.Span.End + _state.NewLineCharacter.Length)
LineCommit\ContainingStatementInfo.vb (1)
172If Not attributes.Any Then
Utilities\LineAdjustmentFormattingRule.vb (1)
33Not DirectCast(current.Parent.Parent, MethodBlockSyntax).Statements.Any() Then
Microsoft.CodeAnalysis.VisualBasic.Features (7)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (5)
102If root.Imports.Any() Then 104ElseIf root.Options.Any() Then 140If root.Attributes.Any() Then 142ElseIf root.Imports.Any() Then 144ElseIf root.Options.Any() Then
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
126Dim isFirst = Not compilationRoot.Attributes.Any()
LineSeparators\VisualBasicLineSeparatorService.vb (1)
146If importsList.Any() Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (10)
152typeDeclaration.Members.Any() AndAlso 165blockStatement.AttributeLists.Any(), 191enumStatement.AttributeLists.Any(), 228constructor.AttributeLists.Any(), 246delegateDecl.AttributeLists.Any(), 260enumMember.AttributeLists.Any(), 274eventDecl.AttributeLists.Any(), 290funcDecl.AttributeLists.Any(), 308propertyDecl.AttributeLists.Any(), 324fieldDecl.AttributeLists.Any(),
Simplification\VisualBasicSimplificationService.vb (1)
96Contract.ThrowIfFalse(originalMethod.Statements.Any(), "How did empty method body get reduced?")
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
994If aggregateClause.AdditionalQueryOperators.Any() Then
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
87if (attributeList.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
453if (attributeList.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AbstractAddImportsService.cs (3)
50private bool HasExterns(SyntaxNode node) => GetExterns(node).Any(); 51private bool HasAnyImports(SyntaxNode node) => GetUsingsAndAliases(node).Any() || GetExterns(node).Any();
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Refactoring\AbstractSyntaxFacts.cs (1)
79if (attributeList.Any())
src\RoslynAnalyzers\Utilities\Refactoring\Extensions\ISyntaxFactsExtensions.cs (1)
26if (attributeList.Any())