38 references to IsEmpty
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
409if (dictionary.IsEmpty)
Microsoft.CodeAnalysis (1)
CommandLine\ReportAnalyzerUtil.cs (1)
68if (analyzerDriver.AnalyzerExecutionTimes.IsEmpty)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (1)
20if (self.IsEmpty)
Microsoft.CodeAnalysis.CSharp (7)
Binder\ImportChain.cs (1)
96if (!aliasSymbols.IsEmpty)
Binder\Imports.cs (3)
71if (!previousSubmissionImports.UsingAliases.IsEmpty) 149public bool IsEmpty => UsingAliases.IsEmpty && Usings.IsEmpty && ExternAliases.IsEmpty; 160if (usingAliases.IsEmpty && usings.IsEmpty && externs.IsEmpty)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (3)
193Debug.Assert(GetAliasesAndUsingsForAsserts(declarationSyntax).GetUsingAliasesMap(this, declarationSyntax, basesBeingResolved).IsEmpty); 285if (!aliases.IsEmpty) 581Debug.Assert(calculated.UsingAliasesMap?.IsEmpty ?? true);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxTreeTests.cs (5)
164Assert.True(tree.DiagnosticOptions.IsEmpty); 180Assert.True(tree.DiagnosticOptions.IsEmpty); 203Assert.True(tree.DiagnosticOptions.IsEmpty); 212Assert.True(newTree.DiagnosticOptions.IsEmpty); 222Assert.True(newTree.DiagnosticOptions.IsEmpty);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
CompleteStatement\AbstractCompleteStatementTests.cs (3)
41Contract.ThrowIfTrue(positions.IsEmpty && spans.IsEmpty, "Expected at least one test position"); 42Contract.ThrowIfTrue(!positions.IsEmpty && !spans.IsEmpty, "Cannot test positions and spans at the same time"); 51if (!spans.IsEmpty)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\DebuggingSession.cs (1)
590if (newNonRemappableRegions.IsEmpty)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
168if (existing.IsEmpty)
Microsoft.CodeAnalysis.Scripting (3)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (3)
110if (!TrustedPlatformAssemblies.IsEmpty) 156if (!TrustedPlatformAssemblies.IsEmpty && reference.IndexOfAny(s_directorySeparators) < 0) 185if (!TrustedPlatformAssemblies.IsEmpty && AssemblyIdentity.TryParseDisplayName(reference, out var identity, out var identityParts))
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
214c.Options.SpecificDiagnosticOptions.IsEmpty)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SyntaxTreeTests.vb (5)
47Assert.True(tree.DiagnosticOptions.IsEmpty) 58Assert.True(tree.DiagnosticOptions.IsEmpty) 75Assert.True(tree.DiagnosticOptions.IsEmpty) 83Assert.True(newTree.DiagnosticOptions.IsEmpty) 92Assert.True(newTree.DiagnosticOptions.IsEmpty)
Microsoft.CodeAnalysis.Workspaces (4)
CodeFixes\FixAllOccurrences\FixAllState.FixMultipleDiagnosticProvider.cs (1)
40if (!DocumentDiagnosticsMap.IsEmpty)
Diagnostics\DiagnosticAnalysisResultMap.cs (1)
39Debug.Assert(telemetryInfo.IsEmpty || telemetryInfo.Count == analysisResult.Count);
SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
69if (map.IsEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CompilerUtilities\ImmutableDictionaryExtensions.cs (1)
20if (self.IsEmpty)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
145Contract.ThrowIfFalse(options.SpecificDiagnosticOptions.IsEmpty);
RunTests (1)
AssemblyScheduler.cs (1)
78if (testHistory.IsEmpty)
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableDictionary_2.cs (3)
125return this.IsEmpty ? this : EmptyWithComparers(_comparers); 801return this.IsEmpty ? 1055if (this.IsEmpty && !avoidToHashMap)