1451 references to IsEmpty
Aspire.Hosting (1)
ConfigurationSchemaGenerator (1)
dotnet (1)
dotnet-format (5)
GenerateDocumentationAndConfigFiles (44)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
ILAssembler (1)
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.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.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)
4063if (!Operations.IsEmpty) return (true, 0, 0);
4079if (!Operations.IsEmpty) return (true, 0, Operations.Length - 1);
4118if (!Declarations.IsEmpty) return (true, 0, 0);
4134if (!Declarations.IsEmpty) return (true, 0, Declarations.Length - 1);
4185if (!Cases.IsEmpty) return (true, 1, 0);
4201if (!Cases.IsEmpty) return (true, 1, Cases.Length - 1);
4285if (!NextVariables.IsEmpty) return (true, 3, 0);
4301if (!NextVariables.IsEmpty) return (true, 3, NextVariables.Length - 1);
4364if (!Before.IsEmpty) return (true, 0, 0);
4375if (!AtLoopBottom.IsEmpty) return (true, 3, 0);
4391if (!AtLoopBottom.IsEmpty) return (true, 3, AtLoopBottom.Length - 1);
4402if (!Before.IsEmpty) return (true, 0, Before.Length - 1);
4483if (!NextVariables.IsEmpty) return (true, 5, 0);
4499if (!NextVariables.IsEmpty) return (true, 5, NextVariables.Length - 1);
4795if (!Catches.IsEmpty) return (true, 1, 0);
4817if (!Catches.IsEmpty) return (true, 1, Catches.Length - 1);
5078if (!Arguments.IsEmpty) return (true, 1, 0);
5094if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5229if (!Arguments.IsEmpty) return (true, 1, 0);
5245if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5296if (!Indices.IsEmpty) return (true, 1, 0);
5312if (!Indices.IsEmpty) return (true, 1, Indices.Length - 1);
5527if (!Arguments.IsEmpty) return (true, 1, 0);
5543if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5986if (!Arguments.IsEmpty) return (true, 0, 0);
6008if (!Arguments.IsEmpty) return (true, 0, Arguments.Length - 1);
6105if (!DimensionSizes.IsEmpty) return (true, 0, 0);
6127if (!DimensionSizes.IsEmpty) return (true, 0, DimensionSizes.Length - 1);
6641if (!Parts.IsEmpty) return (true, 0, 0);
6657if (!Parts.IsEmpty) return (true, 0, Parts.Length - 1);
6697if (!Initializers.IsEmpty) return (true, 0, 0);
6713if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6753if (!Initializers.IsEmpty) return (true, 0, 0);
6769if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6927if (!Elements.IsEmpty) return (true, 0, 0);
6943if (!Elements.IsEmpty) return (true, 0, Elements.Length - 1);
7770if (!ElementValues.IsEmpty) return (true, 0, 0);
7786if (!ElementValues.IsEmpty) return (true, 0, ElementValues.Length - 1);
7832if (!IgnoredArguments.IsEmpty) return (true, 0, 0);
7854if (!IgnoredArguments.IsEmpty) return (true, 0, IgnoredArguments.Length - 1);
7903if (!IgnoredDimensions.IsEmpty) return (true, 0, 0);
7908if (!Declarators.IsEmpty) return (true, 1, 0);
7930if (!Declarators.IsEmpty) return (true, 1, Declarators.Length - 1);
7935if (!IgnoredDimensions.IsEmpty) return (true, 0, IgnoredDimensions.Length - 1);
8121if (!Clauses.IsEmpty) return (true, 0, 0);
8126if (!Body.IsEmpty) return (true, 1, 0);
8142if (!Body.IsEmpty) return (true, 1, Body.Length - 1);
8147if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9166if (!Clauses.IsEmpty) return (true, 0, 0);
9182if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9229if (!DimensionSizes.IsEmpty) return (true, 1, 0);
9245if (!DimensionSizes.IsEmpty) return (true, 1, DimensionSizes.Length - 1);
9298if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, 0);
9303if (!PropertySubpatterns.IsEmpty) return (true, 1, 0);
9319if (!PropertySubpatterns.IsEmpty) return (true, 1, PropertySubpatterns.Length - 1);
9324if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, DeconstructionSubpatterns.Length - 1);
9388if (!Arms.IsEmpty) return (true, 1, 0);
9404if (!Arms.IsEmpty) return (true, 1, Arms.Length - 1);
10359if (!Arguments.IsEmpty) return (true, 1, 0);
10375if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
10423if (!Patterns.IsEmpty) return (true, 0, 0);
10439if (!Patterns.IsEmpty) return (true, 0, Patterns.Length - 1);
10739if (!ConstructArguments.IsEmpty) return (true, 0, 0);
10744if (!Elements.IsEmpty) return (true, 1, 0);
10760if (!Elements.IsEmpty) return (true, 1, Elements.Length - 1);
10765if (!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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
Microsoft.CodeAnalysis.AnalyzerUtilities (77)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
950if (!visitedArguments.IsEmpty &&
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\StringTransferSources.cs (1)
36!arguments.IsEmpty &&
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
285if (operation.Parts.IsEmpty)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
161if (!entity.Indices.IsEmpty &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
Microsoft.CodeAnalysis.CodeStyle (37)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
Microsoft.CodeAnalysis.CSharp (326)
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);
792diagnostics.Add(!globalUsingNamespacesOrTypes.IsEmpty && getOrCreateUniqueGlobalUsingsNotInTree(ref uniqueGlobalUsings, globalUsingNamespacesOrTypes, declarationSyntax.SyntaxTree).Contains(imported) ?
818diagnostics.Add(!globalUsingNamespacesOrTypes.IsEmpty && getOrCreateUniqueGlobalUsingsNotInTree(ref uniqueGlobalUsings, globalUsingNamespacesOrTypes, declarationSyntax.SyntaxTree).Contains(imported) ?
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 (43)
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.Razor.Compiler (5)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (44)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.VisualBasic (180)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (62)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.DotNet.ApiSymbolExtensions (3)
Microsoft.DotNet.HotReload.Watch (3)
Microsoft.Extensions.Options.SourceGeneration (2)
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 (9)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (17)
Microsoft.ML.InternalCodeAnalyzer (1)
Roslyn.Diagnostics.Analyzers (50)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
170!branch.FinallyRegions.IsEmpty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
368if (!basicBlock.Predecessors.IsEmpty ||
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 (1)
System.Text.RegularExpressions.Generator (1)