2098 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)
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)
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);
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\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 (5)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator (1)
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)