21 references to IsEmpty
Microsoft.CodeAnalysis.CSharp.Features (6)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (5)
297
if (typeList.
IsEmpty
())
391
if (typeDeclaration.Members.
IsEmpty
())
534
if (newInitializer.Expressions.
IsEmpty
())
597
if (!p.AttributeLists.
IsEmpty
())
601
leadingPropTrivia = leadingPropTrivia.Concat(p.Modifiers.
IsEmpty
()
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
140
if (property.AccessorList == null || property.AccessorList.Accessors.
IsEmpty
())
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
168
while (!queue.
IsEmpty
())
Microsoft.CodeAnalysis.Features (8)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
211
if (endOfFileToken.LeadingTrivia.
IsEmpty
() &&
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
1358
Debug.Assert(!enclosingBodyMap.Forward.
IsEmpty
());
1400
else if (enclosingBodyMap.Forward.
IsEmpty
())
1813
if (lambdaInfos.TryGetValue(oldParentLambdaBody, out var lambdaInfo) && !lambdaInfo.BodyMap.Forward.
IsEmpty
())
EditAndContinue\ActiveStatementsMap.cs (1)
164
=> InstructionMap.
IsEmpty
();
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
41
if (documents.
IsEmpty
())
Shared\Utilities\ExtractTypeHelpers.cs (1)
144
while (!unanalyzedTypeParameters.
IsEmpty
())
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
132
if (completionList.ItemsList.
IsEmpty
())
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\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})"/>.
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
189
if (collection.
IsEmpty
())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
236
if (declarationList.
IsEmpty
())
Workspace\Solution\ProjectDependencyGraph.cs (1)
154
var referencedProjectIds = projectReferences.
IsEmpty
() ? [] :
Workspace\Solution\SolutionCompilationState.cs (1)
658
if (!oldDocumentStates.Ids.
IsEmpty
())