21 references to IsEmpty
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2762if (operationActionsByKind.IsEmpty || !analysisScope.Contains(analyzer))
Emit\EditAndContinue\SynthesizedTypeMaps.cs (3)
18=> AnonymousTypes.IsEmpty && AnonymousDelegates.IsEmpty && AnonymousDelegatesWithIndexedNames.IsEmpty;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (3)
162if (self.IsEmpty && TryCastToImmutableSegmentedDictionary(pairs, out var other) && self.KeyComparer == other.KeyComparer) 175if (self.IsEmpty) 277else if (self.IsEmpty)
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\NullableWalker.cs (1)
962if (baseRequiredMembers.IsEmpty)
Symbols\NamedTypeSymbol.cs (1)
560internal bool HasAnyRequiredMembers => HasDeclaredRequiredMembers || !AllRequiredMembers.IsEmpty;
Microsoft.CodeAnalysis.UnitTests (12)
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
284Assert.True(builder.ToImmutableSegmentedDictionary().IsEmpty); 285Assert.False(dictionary.IsEmpty);
Collections\SegmentedCollectionsMarshalTests.cs (10)
684Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<int, int>(0)).IsEmpty); 685Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<int, int?>(0)).IsEmpty); 686Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<Guid, Guid>(0)).IsEmpty); 687Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<Guid, Guid?>(0)).IsEmpty); 688Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<string, string>(0)).IsEmpty); 689Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<CustomClass, CustomClass>(0)).IsEmpty); 690Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct>(0)).IsEmpty); 691Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct?>(0)).IsEmpty); 692Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct>(0)).IsEmpty); 693Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedDictionary(new SegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct?>(0)).IsEmpty);