1238 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 (191)
Generated\Operations.Generated.cs (64)
4020if (!Operations.IsEmpty) return (true, 0, 0);
4036if (!Operations.IsEmpty) return (true, 0, Operations.Length - 1);
4075if (!Declarations.IsEmpty) return (true, 0, 0);
4091if (!Declarations.IsEmpty) return (true, 0, Declarations.Length - 1);
4142if (!Cases.IsEmpty) return (true, 1, 0);
4158if (!Cases.IsEmpty) return (true, 1, Cases.Length - 1);
4242if (!NextVariables.IsEmpty) return (true, 3, 0);
4258if (!NextVariables.IsEmpty) return (true, 3, NextVariables.Length - 1);
4321if (!Before.IsEmpty) return (true, 0, 0);
4332if (!AtLoopBottom.IsEmpty) return (true, 3, 0);
4348if (!AtLoopBottom.IsEmpty) return (true, 3, AtLoopBottom.Length - 1);
4359if (!Before.IsEmpty) return (true, 0, Before.Length - 1);
4440if (!NextVariables.IsEmpty) return (true, 5, 0);
4456if (!NextVariables.IsEmpty) return (true, 5, NextVariables.Length - 1);
4752if (!Catches.IsEmpty) return (true, 1, 0);
4774if (!Catches.IsEmpty) return (true, 1, Catches.Length - 1);
5035if (!Arguments.IsEmpty) return (true, 1, 0);
5051if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5186if (!Arguments.IsEmpty) return (true, 1, 0);
5202if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5253if (!Indices.IsEmpty) return (true, 1, 0);
5269if (!Indices.IsEmpty) return (true, 1, Indices.Length - 1);
5484if (!Arguments.IsEmpty) return (true, 1, 0);
5500if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
5943if (!Arguments.IsEmpty) return (true, 0, 0);
5965if (!Arguments.IsEmpty) return (true, 0, Arguments.Length - 1);
6062if (!DimensionSizes.IsEmpty) return (true, 0, 0);
6084if (!DimensionSizes.IsEmpty) return (true, 0, DimensionSizes.Length - 1);
6598if (!Parts.IsEmpty) return (true, 0, 0);
6614if (!Parts.IsEmpty) return (true, 0, Parts.Length - 1);
6654if (!Initializers.IsEmpty) return (true, 0, 0);
6670if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6710if (!Initializers.IsEmpty) return (true, 0, 0);
6726if (!Initializers.IsEmpty) return (true, 0, Initializers.Length - 1);
6884if (!Elements.IsEmpty) return (true, 0, 0);
6900if (!Elements.IsEmpty) return (true, 0, Elements.Length - 1);
7727if (!ElementValues.IsEmpty) return (true, 0, 0);
7743if (!ElementValues.IsEmpty) return (true, 0, ElementValues.Length - 1);
7789if (!IgnoredArguments.IsEmpty) return (true, 0, 0);
7811if (!IgnoredArguments.IsEmpty) return (true, 0, IgnoredArguments.Length - 1);
7860if (!IgnoredDimensions.IsEmpty) return (true, 0, 0);
7865if (!Declarators.IsEmpty) return (true, 1, 0);
7887if (!Declarators.IsEmpty) return (true, 1, Declarators.Length - 1);
7892if (!IgnoredDimensions.IsEmpty) return (true, 0, IgnoredDimensions.Length - 1);
8078if (!Clauses.IsEmpty) return (true, 0, 0);
8083if (!Body.IsEmpty) return (true, 1, 0);
8099if (!Body.IsEmpty) return (true, 1, Body.Length - 1);
8104if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9123if (!Clauses.IsEmpty) return (true, 0, 0);
9139if (!Clauses.IsEmpty) return (true, 0, Clauses.Length - 1);
9186if (!DimensionSizes.IsEmpty) return (true, 1, 0);
9202if (!DimensionSizes.IsEmpty) return (true, 1, DimensionSizes.Length - 1);
9255if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, 0);
9260if (!PropertySubpatterns.IsEmpty) return (true, 1, 0);
9276if (!PropertySubpatterns.IsEmpty) return (true, 1, PropertySubpatterns.Length - 1);
9281if (!DeconstructionSubpatterns.IsEmpty) return (true, 0, DeconstructionSubpatterns.Length - 1);
9345if (!Arms.IsEmpty) return (true, 1, 0);
9361if (!Arms.IsEmpty) return (true, 1, Arms.Length - 1);
10316if (!Arguments.IsEmpty) return (true, 1, 0);
10332if (!Arguments.IsEmpty) return (true, 1, Arguments.Length - 1);
10380if (!Patterns.IsEmpty) return (true, 0, 0);
10396if (!Patterns.IsEmpty) return (true, 0, Patterns.Length - 1);
10691if (!Elements.IsEmpty) return (true, 0, 0);
10707if (!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 (6)
Microsoft.CodeAnalysis.CSharp (274)
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 (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 (27)
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 (4)
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 (81)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
95if (fixes.IsEmpty)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
82if (parts.IsEmpty)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
251if (!captures.IsEmpty)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
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 (178)
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 (52)
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 (3)