80 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)
92if (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)
51private bool HasExterns(SyntaxNode node) => GetExterns(node).Any(); 52private bool HasAnyImports(SyntaxNode node) => GetUsingsAndAliases(node).Any() || GetExterns(node).Any();
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\UnboundLambda.cs (4)
667if (_unboundLambda.ParameterAttributes(i).Any()) 675if (_unboundLambda.ParameterAttributes(i).Any()) 681else if (scope == ScopedKind.ScopedValue && _unboundLambda.ParameterAttributes(i).Any()) 746_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)
389var forcePreservation = compilationUnit.AttributeLists.Any()
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
144if (!statements.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
62if (rootUsings.Any()) 71var 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 (7)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
110var isFirst = !compilationRoot.AttributeLists.Any();
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
226if (propertyDeclaration.AccessorList != null && propertyDeclaration.AccessorList.Accessors.Any())
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
194if (falseBlock.Statements.Any())
LineSeparators\CSharpLineSeparatorService.cs (1)
248if (usings.Any())
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
389var forcePreservation = compilationUnit.AttributeLists.Any()
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
144if (!statements.Any())
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
319if (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() && 228typeDeclaration.AttributeLists.Any(), 258enumDeclaration.AttributeLists.Any(), 286ctorDecl.AttributeLists.Any(), 302delegateDecl.AttributeLists.Any(), 316enumMember.AttributeLists.Any(), 330eventDecl.AttributeLists.Any(), 344indexerDecl.AttributeLists.Any(), 359method.AttributeLists.Any(), 375property.AttributeLists.Any(), 398fieldDeclaration.AttributeLists.Any(), 448parameter.AttributeLists.Any(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (2)
62if (rootUsings.Any()) 71var end = root.Members.Any()
Microsoft.CodeAnalysis.Features (1)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
163if (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)
48Dim 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)
92if (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)
51private bool HasExterns(SyntaxNode node) => GetExterns(node).Any(); 52private bool HasAnyImports(SyntaxNode node) => GetUsingsAndAliases(node).Any() || GetExterns(node).Any();