256 references to Any
AnalyzerRunner (5)
CodeRefactoringRunner.cs (2)
43public bool HasRefactorings => _refactorings.Any(pair => pair.Value.Any()); 162if (options.IncrementalAnalyzerNames.Any())
DiagnosticAnalyzerRunner.cs (2)
38public bool HasAnalyzers => _analyzers.Any(pair => pair.Value.Any()); 241if (options.IncrementalAnalyzerNames.Any())
IncrementalAnalyzerRunner.cs (1)
30public bool HasAnalyzers => _options.IncrementalAnalyzerNames.Any();
Microsoft.CodeAnalysis (9)
CommandLine\CommonCompiler.cs (1)
846if (!disableCache && driver.GetRunResult().GeneratedTrees.Any())
CommandLine\SarifV1ErrorLogger.cs (1)
191if (descriptor.ImmutableCustomTags.Any())
CommandLine\SarifV2ErrorLogger.cs (2)
279if (!string.IsNullOrEmpty(descriptor.Category) || isEverSuppressed || reportAnalyzerExecutionTime || descriptor.ImmutableCustomTags.Any()) 316if (descriptor.ImmutableCustomTags.Any())
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1531var syntaxTreeActionsTask = analysisScope.SyntaxTrees.Any() 1536var additionalFileActionsTask = analysisScope.AdditionalFiles.Any()
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (1)
95var analyzerActionsByKind = operationActions.Any() ?
PEWriter\CustomDebugInfoWriter.cs (1)
90if (context.Module.GetAssemblyReferenceAliases(context).Any())
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
196if (!ctor.Parameters.Any() && type.Name == "FlagsAttribute")
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
91if (unnecessaryImports.Any())
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
115return linqMethods.Any();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
197return addMethods.Any(static m => m is IMethodSymbol methodSymbol && methodSymbol.Parameters.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
619=> symbol.Locations.Any() && symbol.Locations.All(location => location.IsInSource); 666var getAwaiters = potentialGetAwaiters.OfType<IMethodSymbol>().Where(x => !x.Parameters.Any()); 701return methods.Any(m => m.Name == WellKnownMemberNames.GetResult && !m.Parameters.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
411.Any(m => m.Parameters.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
74symbol.ExplicitInterfaceImplementations().Any() ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
58if (existingMembers.Any())
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
94if (methodSymbol.ExplicitInterfaceImplementations.Any())
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
199if (propertySymbol.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
47if (!ctor.Parameters.Any() && type.Name == "FlagsAttribute")
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
113if (nodesAndTokensToReduce.Any()) 163Contract.ThrowIfFalse(nodesAndTokensToReduce.Any());
Microsoft.CodeAnalysis.CSharp (73)
Binder\Binder_Attributes.cs (5)
35Debug.Assert(binders.Any()); 36Debug.Assert(attributesToBind.Any()); 81Debug.Assert(binders.Any()); 82Debug.Assert(attributesToBind.Any()); 83Debug.Assert(boundAttributeTypes.Any());
Binder\Binder_Crefs.cs (2)
132if (!result.Any()) 305if (!sortedSymbols.Any())
Binder\Binder_Expressions.cs (1)
7118if (candidateConstructors.Any())
Binder\Binder_Query.cs (1)
771if (locals.Any())
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
1280if (parameters.Any()) 1293if (parameters.Any()) 1346if (typeParameters.Any())
CodeGen\EmitStatement.cs (1)
1239Debug.Assert(dispatch.Cases.Any());
Compilation\CSharpCompilation.cs (1)
4787if (preprocessorSymbols.Any())
Compilation\CSharpSemanticModel.cs (3)
4044if ((object)constructorOpt == null ? !candidateConstructors.Any() : !candidateConstructors.Contains(constructorOpt)) 4569if (node.Methods.Any()) 4575Debug.Assert(nonHiddenMethods.Any()); // Something must be hiding, so can't all be hidden.
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (2)
111if (symbol.Parameters.Any() || symbol.IsVararg) 131if (symbol.Parameters.Any())
Emitter\Model\GenericTypeInstanceReference.cs (1)
30Debug.Assert(!underlyingNamedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Any(static a => a.CustomModifiers.Any()));
Emitter\Model\PEModuleBuilder.cs (1)
1368bool mustBeTranslated = @params.Any() && MustBeWrapped(@params.First());
Emitter\Model\SpecializedGenericNestedTypeInstanceReference.cs (1)
29Debug.Assert(!underlyingNamedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Any(static a => a.CustomModifiers.Any()));
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
148Debug.Assert(initializer.Arguments.Any());
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
222if (this.Format.MemberOptions.IncludesOption(SymbolDisplayMemberOptions.IncludeParameters) && symbol.Parameters.Any())
Symbols\Attributes\AttributeData.cs (3)
141if (!this.CommonConstructorArguments.Any() & !this.CommonNamedArguments.Any()) 346if (!ctorArgs.Any())
Symbols\Attributes\SourceAttributeData.cs (1)
47constructorArgumentsSourceIndices.Any() && constructorArgumentsSourceIndices.Length == constructorArguments.Length);
Symbols\EventSymbol.cs (1)
219return ExplicitInterfaceImplementations.Any();
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
272if (!typeArguments.Any())
Symbols\MethodSymbol.cs (2)
348get { return ExplicitInterfaceImplementations.Any(); } 567if (this.GetAppliedConditionalSymbols().Any())
Symbols\NamedTypeSymbol.cs (1)
1516if (this.GetAppliedConditionalSymbols().Any())
Symbols\OverriddenOrHiddenMembersHelpers.cs (8)
268if (hiddenOrOverriddenByProperty.OverriddenMembers.Any()) 360if (hiddenOrOverriddenByEvent.OverriddenMembers.Any()) 669Debug.Assert(!(param.TypeWithAnnotations.CustomModifiers.Any() || param.RefCustomModifiers.Any())); 894return methodReturnType.CustomModifiers.Any() || method.RefCustomModifiers.Any() || 899return propertyType.CustomModifiers.Any() || property.RefCustomModifiers.Any() ||
Symbols\PropertySymbol.cs (1)
314get { return ExplicitInterfaceImplementations.Any(); }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
1200if (!constructorArguments.IsDefault && constructorArguments.Any()) 1269if (namedArguments.Any())
Symbols\Source\CustomModifierUtils.cs (4)
131if (sourceParameter.TypeWithAnnotations.CustomModifiers.Any() || sourceParameter.RefCustomModifiers.Any() || 133destinationParameter.TypeWithAnnotations.CustomModifiers.Any() || destinationParameter.RefCustomModifiers.Any() ||
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
328Debug.Assert(boundAttributes.Any());
Symbols\Source\SourceAssemblySymbol.cs (7)
1317Debug.Assert(attributesFromNetModules.Any()); 1318Debug.Assert(netModuleNames.Any()); 1377if (attributesFromNetModules.Any()) 1433if (wellKnownData != null || attributesFromNetModules.Any()) 1474if (attributesFromNetModules.Any()) 1486Debug.Assert(attributesFromNetModules.Any()); 1487Debug.Assert(netModuleNames.Any());
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1480if (!attributes.Any())
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
767if (hiddenMembers.Any()) 1561Debug.Assert(!overriddenOrHiddenMembers.OverriddenMembers.Any()); //since hidingMethod.IsOverride is false
Symbols\Source\SourceNamedTypeSymbol.cs (5)
1576Debug.Assert(boundAttributes.Any()); 1626Debug.Assert(boundAttributes.Any()); 1634if (data != null && data.HasDefaultMemberAttribute && this.Indexers.Any()) 1636Debug.Assert(boundAttributes.Any()); 1709if (this.Indexers.Any())
Symbols\Symbol_Attributes.cs (8)
773Debug.Assert(boundAttributeTypes.Any()); 774Debug.Assert(attributesToBind.Any()); 775Debug.Assert(binders.Any()); 816Debug.Assert(attributeSyntaxList.Any()); 817Debug.Assert(attributeTypes.Any()); 844Debug.Assert(binders.Any()); 845Debug.Assert(attributeSyntaxList.Any()); 846Debug.Assert(boundAttributes.Any());
Utilities\TypeSymbolExtensions.cs (1)
158=> typeWithAnnotations.CustomModifiers.Any() || typeWithAnnotations.Type.HasCustomModifiers(flagNonDefaultArraySizesOrLowerBounds);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
532!member.GetAttributes().Any() &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (1)
64if (methodSymbol != null && !methodSymbol.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
217if (@event.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
238return !method.ExplicitInterfaceImplementations.Any() && !method.IsOverride 245Debug.Assert(method.ExplicitInterfaceImplementations.Any() || method.IsOverride); 328if (method.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
366if (property.ExplicitInterfaceImplementations.Any())
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (20)
CommandLineTests.cs (20)
1482Assert.True(parsedArgs.SourceFiles.Any()); 1487Assert.True(parsedArgs.SourceFiles.Any()); 1492Assert.False(parsedArgs.SourceFiles.Any()); 1497Assert.False(parsedArgs.SourceFiles.Any()); 1502Assert.False(parsedArgs.SourceFiles.Any()); 1513Assert.True(parsedArgs.SourceFiles.Any()); 1518Assert.False(parsedArgs.SourceFiles.Any()); 1523Assert.False(parsedArgs.SourceFiles.Any()); 1528Assert.True(parsedArgs.SourceFiles.Any()); 1541Assert.True(parsedArgs.SourceFiles.Any()); 1549Assert.False(parsedArgs.SourceFiles.Any()); 1554Assert.True(parsedArgs.SourceFiles.Any()); 1559Assert.True(parsedArgs.SourceFiles.Any()); 1564Assert.True(parsedArgs.SourceFiles.Any()); 1571Assert.True(parsedArgs.SourceFiles.Any()); 1576Assert.True(parsedArgs.SourceFiles.Any()); 1581Assert.True(parsedArgs.SourceFiles.Any()); 1903Assert.False(parsedArgs.Errors.Any()); 1908Assert.False(parsedArgs.Errors.Any()); 1915Assert.False(parsedArgs.Errors.Any());
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\RecommenderTests.cs (1)
86Assert.True(keywords == null || !keywords.Any(), "Keywords must be null or empty.");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
2702Assert.False(libComp.GetDiagnostics().Any()); 2759Assert.False(exeComp.GetDiagnostics().Any());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\OutVarTests.cs (3)
1156Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any()); 22704Assert.False(model.LookupSymbols(decl.SpanStart, name: identifierText).Any()); 22719Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
Semantics\PatternMatchingTestBase.cs (3)
218Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any()); 377Assert.False(model.LookupSymbols(designation.SpanStart, name: identifierText).Any()); 420Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
Microsoft.CodeAnalysis.CSharp.Features (8)
AddImport\CSharpAddImportFeatureService.cs (1)
578if (!aliases.Any())
ChangeSignature\CSharpChangeSignatureService.cs (1)
863!semanticModel.GetMemberGroup(node, cancellationToken).Any())
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
43return NameGenerator.GenerateUniqueName(fieldName, n => !(property.ContainingType.Name == n || property.ContainingType.GetMembers(n).Any()));
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
74if (propertySymbol != null && !propertySymbol.ExplicitInterfaceImplementations.Any())
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
189if (indexers.Any() && expression is MemberAccessExpressionSyntax memberAccessExpression)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
532!member.GetAttributes().Any() &&
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (1)
64if (methodSymbol != null && !methodSymbol.ExplicitInterfaceImplementations.Any())
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
31if (externsAndUsings.Any())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
16723Assert.False(comp.GetDiagnostics().Any());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
326Assert.False(compilation.GetDiagnostics().Any()); 359Assert.False(compilation.GetDiagnostics().Any());
Symbols\InterfaceImplementationTests.cs (4)
909Assert.False(comp.GetDiagnostics().Any(), string.Join("\n", comp.GetDiagnostics())); 970Assert.False(comp1.GetDiagnostics().Any(), string.Join("\n", comp1.GetDiagnostics())); 976Assert.False(comp2.GetDiagnostics().Any(), string.Join("\n", comp2.GetDiagnostics())); 1057Assert.False(comp.GetDiagnostics().Any());
Symbols\Metadata\MetadataMemberTests.cs (1)
395Assert.False(compilation.GetDiagnostics().Any());
Symbols\OverriddenOrHiddenMembersTests.cs (1)
900Assert.False(comp.GetDiagnostics().Any());
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (3)
120Assert.False(comp2.GetDiagnostics().Any()); 350Assert.False(comp1.GetDiagnostics().Any()); 384Assert.False(comp2.GetDiagnostics().Any());
Symbols\Source\AccessTests.cs (1)
124Assert.False(comp.GetDeclarationDiagnostics().Any());
Symbols\Source\CustomModifierCopyTests.cs (1)
484Assert.False(customModifiers.Any());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Rename\CSharpRenameRewriterLanguageService.cs (3)
1058if (!method.ReturnsVoid && !method.Parameters.Any() && method.ReturnType.SpecialType == SpecialType.System_Boolean) 1068!method.Parameters.Any()) 1078if (!property.Parameters.Any() && !property.IsWriteOnly)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
217if (@event.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
238return !method.ExplicitInterfaceImplementations.Any() && !method.IsOverride 245Debug.Assert(method.ExplicitInterfaceImplementations.Any() || method.IsOverride); 328if (method.ExplicitInterfaceImplementations.Any())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
366if (property.ExplicitInterfaceImplementations.Any())
Microsoft.CodeAnalysis.EditorFeatures (3)
CommentSelection\AbstractToggleBlockCommentBase.cs (2)
344=> !UncommentedSpansInSelection.Any() && HasIntersectingBlockComments(); 350=> IntersectingBlockComments.Any();
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
444if (!relevantReplacements.Any())
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
BraceMatching\AbstractBraceMatcherTests.cs (1)
34if (expectedSpans.Any())
Classification\AbstractClassifierTests.cs (1)
53if (spans.Any())
Completion\AbstractArgumentProviderTests`1.cs (1)
105var index = arguments.Any()
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
87if (textSpans.Any())
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
SignatureHelp\Controller_TypeChar.cs (2)
87if (textuallyTriggeredProviders.Any()) 113if (textuallyTriggeredProviders.Any())
Microsoft.CodeAnalysis.Features (20)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
211Contract.ThrowIfFalse(batchOfFixes.Any());
Completion\CommonCompletionProvider.cs (1)
90if (parts.Any())
Completion\CommonCompletionUtilities.cs (1)
178if (documentation.Any())
ExtractMethod\SelectionValidator.cs (1)
44if (controlFlowAnalysisData.EntryPoints.Any())
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
385if (overridingSymbols.Any() || overriddenSymbols.Any() || implementedSymbols.Any())
InlineHints\InlineHintHelpers.cs (1)
41if (documentation.Any())
PullMemberUp\MembersPuller.cs (1)
502return destination.GetMembers(fieldSymbol.Name).Any();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
210if (symbols.Any())
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
64n => !methodSymbol.ContainingType.GetMembers(n).Any())
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
170n => !property.ContainingType.GetMembers(n).Any());
RQName\RQNodeBuilder.cs (3)
105if (symbol.ExplicitInterfaceImplementations.Any()) 180if (symbol.ExplicitInterfaceImplementations.Any()) 225if (symbol.ExplicitInterfaceImplementations.Any())
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
91if (unnecessaryImports.Any())
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
115return linqMethods.Any();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
197return addMethods.Any(static m => m is IMethodSymbol methodSymbol && methodSymbol.Parameters.Any());
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
58if (existingMembers.Any())
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
94if (methodSymbol.ExplicitInterfaceImplementations.Any())
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
199if (propertySymbol.ExplicitInterfaceImplementations.Any())
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
132: expectedResults.Any(r => r.Diagnostics.Any()) ? AllRuntimeCapabilities : EditAndContinueCapabilities.Baseline;
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
76if (watchedDirectories.Any())
HostWorkspace\LanguageServerProjectSystem.cs (1)
129if (!projectFilePaths.Any())
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
57if (!telemetryInfo.MetadataReferences.Any())
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Extensions\Extensions.cs (1)
168return !projects.Any()
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
66if (enabledDiagnostics.Diagnostics.Any())
Features\CodeFixes\CodeFixService.cs (1)
300if (!diagnostics.Any())
Handler\CodeActions\CodeActionHelpers.cs (1)
118if (nestedCodeActions.Any())
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
42if (!documentIds.Any())
Workspaces\LspWorkspaceManager.cs (1)
563if (documents.Any())
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (5)
348projectAnalyzers.Any() ? compilationWithAnalyzers.ProjectCompilation!.WithAnalyzers(projectAnalyzers, compilationWithAnalyzers.ProjectCompilationWithAnalyzers!.AnalysisOptions) : null, 359hostAnalyzers.Any() ? compilationWithAnalyzers.HostCompilation!.WithAnalyzers(hostAnalyzers, compilationWithAnalyzers.HostCompilationWithAnalyzers!.AnalysisOptions) : null); 511if (hostAnalyzerIds.Any()) 652projectAnalyzers.Any() ? compilation.WithAnalyzers(projectAnalyzers, projectAnalyzerOptions) : null, 653hostAnalyzers.Any() ? compilation.WithAnalyzers(hostAnalyzers, hostAnalyzerOptions) : null);
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
86return new(generators.Any());
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
FlowAnalysis\IterationJumpYieldStatementTests.vb (4)
959Assert.False(dataFlowAnalysisResults.AlwaysAssigned.Any) 1055Assert.False(controlFlowAnalysisResults.EntryPoints.Any) 1143Assert.False(controlFlowAnalysisResults.EntryPoints.Any) 1171Assert.False(controlFlowAnalysisResults.EntryPoints.Any)
Microsoft.CodeAnalysis.Workspaces (28)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
24if (!spans.Any())
CodeCleanup\AbstractCodeCleanerService.cs (2)
34if (!spans.Any()) 78if (!spans.Any())
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (1)
98if (diagnostics.Any())
Diagnostics\CompilationWithAnalyzersPair.cs (8)
51public bool HasAnalyzers => ProjectAnalyzers.Any() || HostAnalyzers.Any(); 84var projectAnalysisResult = projectAnalyzers.Any() 87var hostAnalysisResult = hostAnalyzers.Any() 96var projectAnalysisResult = projectAnalyzers.Any() 99var hostAnalysisResult = hostAnalyzers.Any() 108var projectAnalysisResult = projectAnalyzers.Any() 111var hostAnalysisResult = hostAnalyzers.Any()
Rename\RenameUtilities.cs (2)
128if (symbol.ExplicitInterfaceImplementations().Any()) 168if (symbolInfo.CandidateReason == CandidateReason.MemberGroup && symbolInfo.CandidateSymbols.Any())
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
107where aliasLocations.Any()
Shared\Extensions\ISymbolExtensions.cs (2)
282if (symbol.ExplicitOrImplicitInterfaceImplementations().Any()) 464if (memberSymbol.ExplicitInterfaceImplementations().Any())
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
76else if (overriddenProperty.GetParameters().Any())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
619=> symbol.Locations.Any() && symbol.Locations.All(location => location.IsInSource); 666var getAwaiters = potentialGetAwaiters.OfType<IMethodSymbol>().Where(x => !x.Parameters.Any()); 701return methods.Any(m => m.Name == WellKnownMemberNames.GetResult && !m.Parameters.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
411.Any(m => m.Parameters.Any());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
74symbol.ExplicitInterfaceImplementations().Any() ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
47if (!ctor.Parameters.Any() && type.Name == "FlagsAttribute")
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (3)
66if (!spanList.Any()) 113if (nodesAndTokensToReduce.Any()) 163Contract.ThrowIfFalse(nodesAndTokensToReduce.Any());
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
134return GetSourceGenerators(projectState).Any();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
693OnProjectReferenceAdded(fromProject.Id, new ProjectReference(toProject.Id, aliases.Any() ? aliases : default));
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
136if (attributeData.ConstructorArguments.Any()) 191if (attributeData.NamedArguments.Any())
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
373if (transValidatorType.Constructors.Where(c => !c.Parameters.Any()).Any())
Microsoft.ML.Benchmarks.Tests (1)
BenchmarksTest.cs (1)
59Assert.True(summary.Reports.Any(), "The \"Summary\" should contain at least one \"BenchmarkReport\" in the \"Reports\" collection");
Microsoft.VisualStudio.LanguageServices (5)
CodeDefinitionWindow\VisualStudioCodeDefinitionWindowService.cs (1)
48if (!locations.Any())
Progression\GraphNodeIdCreation.cs (1)
187var hasGenericArguments = (!Equals(namedType.ConstructedFrom, namedType) || isInGenericArguments) && namedType.TypeArguments != null && namedType.TypeArguments.Any();
PullMemberUp\MainDialog\PullMemberUpDialogViewModel.cs (1)
90OkButtonEnabled = SelectedDestination != DestinationTreeNodeViewModel && selectedMembers.Any();
Snippets\SnippetExpansionClient.cs (2)
869if (_state._method is null || !_state._method.Parameters.Any()) 876if (method.Parameters.Any())
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.cs (1)
154if (exceptions[generation].Any())
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
85if (enumsToValidate.Any())