1243 references to IsEmpty
AnalyzerRunner (1)
ConfigurationSchemaGenerator (1)
illink (2)
ILLink.RoslynAnalyzer (5)
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.Build (1)
Microsoft.CodeAnalysis (192)
Generated\Operations.Generated.cs (64)
4023if (!Operations.IsEmpty) return (true, 0, 0);
4039if (!Operations.IsEmpty) return (true, 0, Operations.Length - 1);
4078if (!Declarations.IsEmpty) return (true, 0, 0);
4094if (!Declarations.IsEmpty) return (true, 0, Declarations.Length - 1);
4145if (!Cases.IsEmpty) return (true, 1, 0);
4161if (!Cases.IsEmpty) return (true, 1, Cases.Length - 1);
4245if (!NextVariables.IsEmpty) return (true, 3, 0);
4261if (!NextVariables.IsEmpty) return (true, 3, NextVariables.Length - 1);
4324if (!Before.IsEmpty) return (true, 0, 0);
4335if (!AtLoopBottom.IsEmpty) return (true, 3, 0);
4351if (!AtLoopBottom.IsEmpty) return (true, 3, AtLoopBottom.Length - 1);
4362if (!Before.IsEmpty) return (true, 0, Before.Length - 1);
4443if (!NextVariables.IsEmpty) return (true, 5, 0);
4459if (!NextVariables.IsEmpty) return (true, 5, NextVariables.Length - 1);
4755if (!Catches.IsEmpty) return (true, 1, 0);
4777if (!Catches.IsEmpty) return (true, 1, Catches.Length - 1);
5038if (!Arguments.IsEmpty) return (true, 1, 0);
5054if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5189if (!Arguments.IsEmpty) return (true, 1, 0);
5205if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5256if (!Indices.IsEmpty) return (true, 1, 0);
5272if (!Indices.IsEmpty) return (true, 1, Indices.Length - 1);
5487if (!Arguments.IsEmpty) return (true, 1, 0);
5503if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5946if (!Arguments.IsEmpty) return (true, 0, 0);
5968if (!Arguments.IsEmpty) return (true, 0, Arguments.Length - 1);
6065if (!DimensionSizes.IsEmpty) return (true, 0, 0);
6087if (!DimensionSizes.IsEmpty) return (true, 0, DimensionSizes.Length - 1);
6601if (!Parts.IsEmpty) return (true, 0, 0);
6617if (!Parts.IsEmpty) return (true, 0, Parts.Length - 1);
6657if (!Initializers.IsEmpty) return (true, 0, 0);
6673if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6713if (!Initializers.IsEmpty) return (true, 0, 0);
6729if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6887if (!Elements.IsEmpty) return (true, 0, 0);
6903if (!Elements.IsEmpty) return (true, 0, Elements.Length - 1);
7730if (!ElementValues.IsEmpty) return (true, 0, 0);
7746if (!ElementValues.IsEmpty) return (true, 0, ElementValues.Length - 1);
7792if (!IgnoredArguments.IsEmpty) return (true, 0, 0);
7814if (!IgnoredArguments.IsEmpty) return (true, 0, IgnoredArguments.Length - 1);
7863if (!IgnoredDimensions.IsEmpty) return (true, 0, 0);
7868if (!Declarators.IsEmpty) return (true, 1, 0);
7890if (!Declarators.IsEmpty) return (true, 1, Declarators.Length - 1);
7895if (!IgnoredDimensions.IsEmpty) return (true, 0, IgnoredDimensions.Length - 1);
8081if (!Clauses.IsEmpty) return (true, 0, 0);
8086if (!Body.IsEmpty) return (true, 1, 0);
8102if (!Body.IsEmpty) return (true, 1, Body.Length - 1);
8107if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9126if (!Clauses.IsEmpty) return (true, 0, 0);
9142if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9189if (!DimensionSizes.IsEmpty) return (true, 1, 0);
9205if (!DimensionSizes.IsEmpty) return (true, 1, DimensionSizes.Length - 1);
9258if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, 0);
9263if (!PropertySubpatterns.IsEmpty) return (true, 1, 0);
9279if (!PropertySubpatterns.IsEmpty) return (true, 1, PropertySubpatterns.Length - 1);
9284if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, DeconstructionSubpatterns.Length - 1);
9348if (!Arms.IsEmpty) return (true, 1, 0);
9364if (!Arms.IsEmpty) return (true, 1, Arms.Length - 1);
10319if (!Arguments.IsEmpty) return (true, 1, 0);
10335if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
10383if (!Patterns.IsEmpty) return (true, 0, 0);
10399if (!Patterns.IsEmpty) return (true, 0, Patterns.Length - 1);
10694if (!Elements.IsEmpty) return (true, 0, 0);
10710if (!Elements.IsEmpty) return (true, 0, Elements.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.CodeStyle (30)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp (272)
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 (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
146if (matches.IsEmpty)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.Features (28)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
146if (matches.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (7)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (80)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
95if (fixes.IsEmpty)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
82if (parts.IsEmpty)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
255if (!captures.IsEmpty)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
Microsoft.CodeAnalysis.Test.Utilities (21)
Microsoft.CodeAnalysis.UnitTests (16)
Microsoft.CodeAnalysis.VisualBasic (179)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (68)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (55)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions (3)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (8)
Microsoft.Interop.JavaScript.JSImportGenerator (22)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (13)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices (10)
SemanticSearch.BuildTask (1)
System.Collections.Immutable (14)
System.Text.Json.SourceGeneration (1)