43 references to IsEmpty
AnalyzerRunner (3)
CodeRefactoringRunner.cs (2)
166if (!options.UseAll && options.AnalyzerNames.IsEmpty) 172if (options.RefactoringNodes.IsEmpty)
DiagnosticAnalyzerRunner.cs (1)
245if (!options.UseAll && options.AnalyzerNames.IsEmpty)
Microsoft.CodeAnalysis (10)
Binding\UseSiteInfo.cs (7)
60Debug.Assert(diagnosticInfo?.Severity != DiagnosticSeverity.Error || (primaryDependency is null && secondaryDependencies?.IsEmpty != false)); 62Debug.Assert(secondaryDependencies?.IsEmpty != false || !secondaryDependencies.Any(dependency => dependency == dependency.CorLibrary)); 69public bool IsEmpty => DiagnosticInfo is null && PrimaryDependency is null && SecondaryDependencies?.IsEmpty != false; 345if (info.SecondaryDependencies?.IsEmpty == false && (_assemblyBeingBuilt is null || info.SecondaryDependencies.AsSingleton() != _assemblyBeingBuilt)) 486Debug.Assert(primaryDependency is object || (useSiteInfo.PrimaryDependency is null && secondaryDependencies.IsEmpty)); 517if (dependencies.IsEmpty) 603Debug.Assert(!dependencies.IsEmpty);
CommandLine\SarifV2ErrorLogger.cs (1)
387Debug.Assert(!severities.IsEmpty);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
84/// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/>
Symbols\Attributes\UnmanagedCallersOnlyAttributeData.cs (1)
22null or { IsEmpty: true } => PlatformDefault,
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
101if (!options.IsEmpty)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
84/// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
164if (collection.IsEmpty)
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
84/// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/>
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\OverloadResolution\CallingConventionInfo.cs (1)
17Debug.Assert(unmanagedCallingConventionTypes.IsEmpty || callKind == Cci.CallingConvention.Unmanaged);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
674Debug.Assert(expectedConvention.UnmanagedCallingConventionTypes.IsEmpty || expectedConvention.CallKind == Cci.CallingConvention.Unmanaged);
Compilation\CSharpCompilation.cs (1)
3089if (recordUsageOfUsingsInAllTrees && UsageOfUsingsRecordedInTrees?.IsEmpty == true)
FlowAnalysis\NullableWalker.cs (3)
1293if (inputParamNames.IsEmpty || outputState.IsNotNull()) 6847bool parameterHasNotNullIfNotNull = !IsAnalyzingAttribute && !parametersOpt.IsDefault && parametersOpt.Any(static p => !p.NotNullIfParameterNotNull.IsEmpty); 7584if (!notNullIfParameterNotNull.IsEmpty)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1326if (!notNullIfParameterNotNull.IsEmpty)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
46public bool IsEmpty => _included && _membersIncludedOrExcluded.IsEmpty;
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (2)
98if (analyzers.IsEmpty) 103if (SpecificAnalyzers.IsEmpty)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
101if (!options.IsEmpty)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (2)
57if (referenceIdsToRedirectAsProjectAnalyzers.IsEmpty) 137if (excludedAnalyzers.IsEmpty)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
296if (highPriorityTasksToAwait.IsEmpty)
Microsoft.CodeAnalysis.Workspaces (7)
Diagnostics\DiagnosticAnalysisResult.cs (1)
92IsEmpty = DocumentIds.IsEmpty && _others.IsEmpty;
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
112if (fullySkippedHostAnalyzers.IsEmpty && filteredDiagnosticIdsForAnalyzers.IsEmpty)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
84/// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
164if (collection.IsEmpty)
Workspace\Solution\ProjectDependencyGraph.cs (3)
119if (!value.IsEmpty) 476Debug.Assert(!referencedProjects.IsEmpty, "Unexpected empty value in the forward references map."); 507Debug.Assert(!referencingProjects.IsEmpty, "Unexpected empty value in the reverse references map.");
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
208if (projectFilter.IsEmpty ||
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
84/// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/>
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableHashSet_1.cs (3)
86return this.IsEmpty ? this : ImmutableHashSet<T>.Empty.WithComparer(_equalityComparer); 569return this.IsEmpty ? 1028if (this.IsEmpty && !avoidWithComparer)