3 references to GetValueOrDefault
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
163
accessor.SetOutputProvider(project => _mockCompilationOutputs.
GetValueOrDefault
(project.Id, null) ?? new MockCompilationOutputs(Guid.Empty));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
293
fieldOffsets[fieldPart] = fieldOffsets.
GetValueOrDefault
(fieldPart, []).Add(fieldSpan);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.cs (1)
100
var locationsForName = locations.
GetValueOrDefault
(name, []);