41 references to IsEmpty
Microsoft.CodeAnalysis (8)
CodeGen\SwitchIntegralJumpTableEmitter.cs (2)
197while (!switchBucketsStack.IsEmpty()) 220Debug.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)
1617Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 1635Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 2913Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty()); 3055Debug.Assert(rewrittenThrow.ChildOperations.IsEmpty());
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
342if (state.clauses.IsEmpty()) 357Debug.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))
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
488if (arguments.Names.IsEmpty())
Compiler\MethodCompiler.cs (3)
282Debug.Assert(lambdaDebugInfoBuilder.IsEmpty()); 283Debug.Assert(closureDebugInfoBuilder.IsEmpty()); 284Debug.Assert(stateMachineStateDebugInfoBuilder.IsEmpty());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
114Debug.Assert(_lazyPreviousContextVariables?.IsEmpty() != false);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
52Debug.Assert(stateMachineStateDebugInfoBuilder.IsEmpty());
Symbols\Attributes\AttributeData.cs (1)
499if (argList == null || argList.Arguments.IsEmpty())
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_Nullable.cs (1)
182Assert.True(interfaceHandles.IsEmpty());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\PrimaryConstructorTests.cs (1)
10782Assert.Equal(isStatic, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters().IsEmpty());
Microsoft.CodeAnalysis.Test.Utilities (2)
MarkedSource\MarkupTestFile.cs (2)
100if ((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)
297If Not (name.ArrayRankSpecifiers.IsEmpty AndAlso name.ArrayBounds Is Nothing) Then
Binding\Binder_Invocation.vb (1)
676If newMethods.IsEmpty Then
Binding\Binder_ObjectInitializer.vb (2)
895If initializers.IsEmpty Then 907If result.IsGood() AndAlso Not arguments.IsEmpty Then
Binding\Binder_SelectCase.vb (1)
109If Not caseBlocks.IsEmpty() Then
Binding\Binder_Statements.vb (1)
3027If controlVariableList.IsEmpty Then
CommandLine\VisualBasicCommandLineParser.vb (1)
1388Not flattenedArgs.IsEmpty() Then
Compilation\MethodCompiler.vb (3)
1391Debug.Assert(lambdaDebugInfoBuilder.IsEmpty()) 1392Debug.Assert(closureDebugInfoBuilder.IsEmpty()) 1393Debug.Assert(stateMachineStateDebugInfoBuilder.IsEmpty())
Symbols\Source\SourceEventSymbol.vb (1)
339Debug.Assert(syntax.Modifiers.IsEmpty, "event accessors cannot have modifiers")
Symbols\Source\SourceMemberFieldSymbol.vb (1)
547modifiedIdentifier.ArrayBounds Is Nothing AndAlso modifiedIdentifier.ArrayRankSpecifiers.IsEmpty Then
VisualBasicDeclarationComputer.vb (2)
132If Not t.Attributes.IsEmpty Then 237Return If(asClause IsNot Nothing AndAlso Not asClause.Attributes.IsEmpty,