2100 references to IsEmpty
AnalyzerRunner (1)
Aspire.Hosting (1)
ConfigurationSchemaGenerator (1)
GenerateDocumentationAndConfigFiles (44)
illink (2)
ILLink.RoslynAnalyzer (7)
Metrics (45)
Metrics.Legacy (45)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.App.Analyzers (9)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.CodeAnalysis (195)
Generated\Operations.Generated.cs (66)
4061if (!Operations.IsEmpty) return (true, 0, 0);
4077if (!Operations.IsEmpty) return (true, 0, Operations.Length - 1);
4116if (!Declarations.IsEmpty) return (true, 0, 0);
4132if (!Declarations.IsEmpty) return (true, 0, Declarations.Length - 1);
4183if (!Cases.IsEmpty) return (true, 1, 0);
4199if (!Cases.IsEmpty) return (true, 1, Cases.Length - 1);
4283if (!NextVariables.IsEmpty) return (true, 3, 0);
4299if (!NextVariables.IsEmpty) return (true, 3, NextVariables.Length - 1);
4362if (!Before.IsEmpty) return (true, 0, 0);
4373if (!AtLoopBottom.IsEmpty) return (true, 3, 0);
4389if (!AtLoopBottom.IsEmpty) return (true, 3, AtLoopBottom.Length - 1);
4400if (!Before.IsEmpty) return (true, 0, Before.Length - 1);
4481if (!NextVariables.IsEmpty) return (true, 5, 0);
4497if (!NextVariables.IsEmpty) return (true, 5, NextVariables.Length - 1);
4793if (!Catches.IsEmpty) return (true, 1, 0);
4815if (!Catches.IsEmpty) return (true, 1, Catches.Length - 1);
5076if (!Arguments.IsEmpty) return (true, 1, 0);
5092if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5227if (!Arguments.IsEmpty) return (true, 1, 0);
5243if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5294if (!Indices.IsEmpty) return (true, 1, 0);
5310if (!Indices.IsEmpty) return (true, 1, Indices.Length - 1);
5525if (!Arguments.IsEmpty) return (true, 1, 0);
5541if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5984if (!Arguments.IsEmpty) return (true, 0, 0);
6006if (!Arguments.IsEmpty) return (true, 0, Arguments.Length - 1);
6103if (!DimensionSizes.IsEmpty) return (true, 0, 0);
6125if (!DimensionSizes.IsEmpty) return (true, 0, DimensionSizes.Length - 1);
6639if (!Parts.IsEmpty) return (true, 0, 0);
6655if (!Parts.IsEmpty) return (true, 0, Parts.Length - 1);
6695if (!Initializers.IsEmpty) return (true, 0, 0);
6711if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6751if (!Initializers.IsEmpty) return (true, 0, 0);
6767if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6925if (!Elements.IsEmpty) return (true, 0, 0);
6941if (!Elements.IsEmpty) return (true, 0, Elements.Length - 1);
7768if (!ElementValues.IsEmpty) return (true, 0, 0);
7784if (!ElementValues.IsEmpty) return (true, 0, ElementValues.Length - 1);
7830if (!IgnoredArguments.IsEmpty) return (true, 0, 0);
7852if (!IgnoredArguments.IsEmpty) return (true, 0, IgnoredArguments.Length - 1);
7901if (!IgnoredDimensions.IsEmpty) return (true, 0, 0);
7906if (!Declarators.IsEmpty) return (true, 1, 0);
7928if (!Declarators.IsEmpty) return (true, 1, Declarators.Length - 1);
7933if (!IgnoredDimensions.IsEmpty) return (true, 0, IgnoredDimensions.Length - 1);
8119if (!Clauses.IsEmpty) return (true, 0, 0);
8124if (!Body.IsEmpty) return (true, 1, 0);
8140if (!Body.IsEmpty) return (true, 1, Body.Length - 1);
8145if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9164if (!Clauses.IsEmpty) return (true, 0, 0);
9180if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9227if (!DimensionSizes.IsEmpty) return (true, 1, 0);
9243if (!DimensionSizes.IsEmpty) return (true, 1, DimensionSizes.Length - 1);
9296if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, 0);
9301if (!PropertySubpatterns.IsEmpty) return (true, 1, 0);
9317if (!PropertySubpatterns.IsEmpty) return (true, 1, PropertySubpatterns.Length - 1);
9322if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, DeconstructionSubpatterns.Length - 1);
9386if (!Arms.IsEmpty) return (true, 1, 0);
9402if (!Arms.IsEmpty) return (true, 1, Arms.Length - 1);
10357if (!Arguments.IsEmpty) return (true, 1, 0);
10373if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
10421if (!Patterns.IsEmpty) return (true, 0, 0);
10437if (!Patterns.IsEmpty) return (true, 0, Patterns.Length - 1);
10737if (!ConstructArguments.IsEmpty) return (true, 0, 0);
10742if (!Elements.IsEmpty) return (true, 1, 0);
10758if (!Elements.IsEmpty) return (true, 1, Elements.Length - 1);
10763if (!ConstructArguments.IsEmpty) return (true, 0, ConstructArguments.Length - 1);
Operations\OperationNodes.cs (10)
43if (!Children.IsEmpty) return (true, 0, 0);
58int.MaxValue when !Children.IsEmpty => (true, 0, Children.Length - 1),
114if (!Children.IsEmpty) return (true, 0, 0);
129int.MaxValue when !Children.IsEmpty => (true, 0, Children.Length - 1),
279if (!Arguments.IsEmpty) return (true, 0, 0);
307if (!Arguments.IsEmpty) return (true, 0, Arguments.Length - 1);
361if (!Arguments.IsEmpty) return (true, 1, 0);
381if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
447if (!Arguments.IsEmpty) return (true, 1, 0);
467if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
Microsoft.CodeAnalysis.Analyzers (57)
Microsoft.CodeAnalysis.AnalyzerUtilities (77)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\StringTransferSources.cs (1)
36!arguments.IsEmpty &&
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
285if (operation.Parts.IsEmpty)
Microsoft.CodeAnalysis.BannedApiAnalyzers (48)
Microsoft.CodeAnalysis.CodeStyle (37)
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.CSharp (319)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (11)
120Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetExternAliases(this, declarationSyntax).IsEmpty);
130Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetExternAliases(this, declarationSyntax).IsEmpty);
151Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetUsingAliases(this, declarationSyntax, basesBeingResolved).IsEmpty);
161Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetUsingAliases(this, declarationSyntax, basesBeingResolved).IsEmpty);
225Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetUsingNamespacesOrTypes(this, declarationSyntax, basesBeingResolved).IsEmpty);
321if (!namespacesOrTypes.IsEmpty)
447Debug.Assert(result.IsEmpty);
580Debug.Assert(calculated.UsingAliases.IsEmpty);
582Debug.Assert(calculated.UsingNamespacesOrTypes.IsEmpty);
779diagnostics.Add(!globalUsingNamespacesOrTypes.IsEmpty && getOrCreateUniqueGlobalUsingsNotInTree(ref uniqueGlobalUsings, globalUsingNamespacesOrTypes, declarationSyntax.SyntaxTree).Contains(imported) ?
805diagnostics.Add(!globalUsingNamespacesOrTypes.IsEmpty && getOrCreateUniqueGlobalUsingsNotInTree(ref uniqueGlobalUsings, globalUsingNamespacesOrTypes, declarationSyntax.SyntaxTree).Contains(imported) ?
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
145if (matches.IsEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (113)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (50)
Microsoft.CodeAnalysis.CSharp.Features (43)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
145if (matches.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (24)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (16)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (138)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
76if (fixes.IsEmpty)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
339if (!captures.IsEmpty)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (6)
Microsoft.CodeAnalysis.LanguageServer (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (49)
Microsoft.CodeAnalysis.PublicApiAnalyzers (45)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (44)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
Microsoft.CodeAnalysis.Test.Utilities (23)
Microsoft.CodeAnalysis.Threading.Package (4)
Microsoft.CodeAnalysis.UnitTests (19)
Microsoft.CodeAnalysis.VisualBasic (180)
Microsoft.CodeAnalysis.Workspaces (62)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Validation.ValidationsGenerator (4)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions (3)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.JavaScript.JSImportGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (17)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices (14)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Roslyn.Diagnostics.Analyzers (50)
Roslyn.Diagnostics.CSharp.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
Roslyn.Test.PdbUtilities (1)
SemanticSearch.BuildTask (1)
System.Collections.Immutable (14)
System.Text.Json.SourceGeneration (1)
Test.Utilities (40)
Text.Analyzers (48)