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