18 references to IsEmpty
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (4)
1623Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 1641Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 2930Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 3072Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty());
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>.
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
350if (state.clauses.IsEmpty()) 365Debug.Assert(state.clauses.IsEmpty());
Binder\Binder_Query.cs (6)
109Debug.Assert(state.clauses.IsEmpty()); 175if (!state.clauses.IsEmpty()) return false; 189if (state.clauses.IsEmpty()) 219Debug.Assert(state.clauses.IsEmpty()); 412if (state.clauses.IsEmpty() && state.selectOrGroup.Kind() == SyntaxKind.SelectClause) 599if (state.clauses.IsEmpty() && state.selectOrGroup.IsKind(SyntaxKind.SelectClause))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (1)
182Assert.True(interfaceHandles.IsEmpty());
Semantics\PrimaryConstructorTests.cs (1)
11796Assert.Equal(isStatic, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().IsEmpty());
Microsoft.CodeAnalysis.Test.Utilities (2)
MarkedSource\MarkupTestFile.cs (2)
102if ((matches[0].name == SpanStartString && matches[1].name == SpanEndString && !spanStartStack.IsEmpty()) || 103(matches[0].name == SpanStartString && matches[1].name == NamedSpanEndString && !namedSpanStartStack.IsEmpty()))