1634 references to IsEmpty
Aspire.Hosting (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.Native.Core (8)
Aspire.Hosting.Native.Server (4)
ConfigurationSchemaGenerator (1)
dotnet-format (5)
GenerateDocumentationAndConfigFiles (46)
ILCompiler.Compiler (2)
illink (2)
ILLink.RoslynAnalyzer (7)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.App.Analyzers (9)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (1)
387if (items.IsEmpty)
Microsoft.Build (5)
Microsoft.CodeAnalysis (215)
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 (59)
Microsoft.CodeAnalysis.AnalyzerUtilities (79)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\StringTransferSources.cs (1)
36!arguments.IsEmpty &&
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
161if (!entity.Indices.IsEmpty &&
Microsoft.CodeAnalysis.CodeStyle (39)
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
Microsoft.CodeAnalysis.CSharp (322)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
438if (fileHeader.IsEmpty)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
145if (matches.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Features (41)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
438if (fileHeader.IsEmpty)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
145if (matches.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (138)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
76if (fixes.IsEmpty)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
345if (!captures.IsEmpty)
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Microsoft.CodeAnalysis.NetAnalyzers (140)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
80if (symbolNames.IsEmpty)
Microsoft.CodeAnalysis.Razor.Compiler (6)
Microsoft.CodeAnalysis.Razor.DotNetFormat (1)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (46)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.VisualBasic (189)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.Workspaces (65)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Microsoft.DotNet.ApiSymbolExtensions (3)
Microsoft.DotNet.HotReload.Watch (3)
Microsoft.DotNet.ILAssembler (10)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Validation.ValidationsGenerator (8)
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 (8)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (6)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.NET.ProjectData (4)
MSBuild.Coordinator (2)
Roslyn.Diagnostics.Analyzers (52)
Roslyn.Diagnostics.CSharp.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1340if (!variableTypes.IsEmpty)
rzc (2)
System.Collections.Immutable (14)
System.Text.Json.SourceGeneration (2)
System.Text.RegularExpressions.Generator (1)
System.Windows.Forms.Analyzers (2)