41 references to IsEmpty
Microsoft.CodeAnalysis (8)
CodeGen\SwitchIntegralJumpTableEmitter.cs (2)
197
while (!switchBucketsStack.
IsEmpty
())
220
Debug.Assert(!switchBucketsStack.
IsEmpty
());
InternalUtilities\EnumerableExtensions.cs (2)
270
/// This method is necessary to avoid an ambiguity between <see cref="
IsEmpty
{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>.
278
/// This method is necessary to avoid an ambiguity between <see cref="
IsEmpty
{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>.
Operations\ControlFlowGraphBuilder.cs (4)
1617
Debug.Assert(rewrittenThrow.ChildOperations.
IsEmpty
());
1635
Debug.Assert(rewrittenThrow.ChildOperations.
IsEmpty
());
2913
Debug.Assert(rewrittenThrow.ChildOperations.
IsEmpty
());
3055
Debug.Assert(rewrittenThrow.ChildOperations.
IsEmpty
());
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
342
if (state.clauses.
IsEmpty
())
357
Debug.Assert(state.clauses.
IsEmpty
());
Binder\Binder_Query.cs (6)
109
Debug.Assert(state.clauses.
IsEmpty
());
175
if (!state.clauses.
IsEmpty
()) return false;
189
if (state.clauses.
IsEmpty
())
219
Debug.Assert(state.clauses.
IsEmpty
());
412
if (state.clauses.
IsEmpty
() && state.selectOrGroup.Kind() == SyntaxKind.SelectClause)
599
if (state.clauses.
IsEmpty
() && state.selectOrGroup.IsKind(SyntaxKind.SelectClause))
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
488
if (arguments.Names.
IsEmpty
())
Compiler\MethodCompiler.cs (3)
282
Debug.Assert(lambdaDebugInfoBuilder.
IsEmpty
());
283
Debug.Assert(closureDebugInfoBuilder.
IsEmpty
());
284
Debug.Assert(stateMachineStateDebugInfoBuilder.
IsEmpty
());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
114
Debug.Assert(_lazyPreviousContextVariables?.
IsEmpty
() != false);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
52
Debug.Assert(stateMachineStateDebugInfoBuilder.
IsEmpty
());
Symbols\Attributes\AttributeData.cs (1)
499
if (argList == null || argList.Arguments.
IsEmpty
())
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_Nullable.cs (1)
182
Assert.True(interfaceHandles.
IsEmpty
());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\PrimaryConstructorTests.cs (1)
10782
Assert.Equal(isStatic, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().
IsEmpty
());
Microsoft.CodeAnalysis.Test.Utilities (2)
MarkedSource\MarkupTestFile.cs (2)
100
if ((matches[0].name == SpanStartString && matches[1].name == SpanEndString && !spanStartStack.
IsEmpty
()) ||
101
(matches[0].name == SpanStartString && matches[1].name == NamedSpanEndString && !namedSpanStartStack.
IsEmpty
()))
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\Binder_Initializers.vb (1)
297
If Not (name.ArrayRankSpecifiers.
IsEmpty
AndAlso name.ArrayBounds Is Nothing) Then
Binding\Binder_Invocation.vb (1)
676
If newMethods.
IsEmpty
Then
Binding\Binder_ObjectInitializer.vb (2)
895
If initializers.
IsEmpty
Then
907
If result.IsGood() AndAlso Not arguments.
IsEmpty
Then
Binding\Binder_SelectCase.vb (1)
109
If Not caseBlocks.
IsEmpty
() Then
Binding\Binder_Statements.vb (1)
3027
If controlVariableList.
IsEmpty
Then
CommandLine\VisualBasicCommandLineParser.vb (1)
1388
Not flattenedArgs.
IsEmpty
() Then
Compilation\MethodCompiler.vb (3)
1391
Debug.Assert(lambdaDebugInfoBuilder.
IsEmpty
())
1392
Debug.Assert(closureDebugInfoBuilder.
IsEmpty
())
1393
Debug.Assert(stateMachineStateDebugInfoBuilder.
IsEmpty
())
Symbols\Source\SourceEventSymbol.vb (1)
339
Debug.Assert(syntax.Modifiers.
IsEmpty
, "event accessors cannot have modifiers")
Symbols\Source\SourceMemberFieldSymbol.vb (1)
547
modifiedIdentifier.ArrayBounds Is Nothing AndAlso modifiedIdentifier.ArrayRankSpecifiers.
IsEmpty
Then
VisualBasicDeclarationComputer.vb (2)
132
If Not t.Attributes.
IsEmpty
Then
237
Return If(asClause IsNot Nothing AndAlso Not asClause.Attributes.
IsEmpty
,