27 references to GetValueOrDefault
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpTypeInferenceService.TypeInferrer.cs (1)
654.Select(tp => bestMap.GetValueOrDefault(tp) ?? tp).ToArray();
Microsoft.CodeAnalysis.EditorFeatures (4)
ContentTypeLanguageMetadata.cs (1)
20this.DefaultContentType = (string)data.GetValueOrDefault("DefaultContentType");
Extensibility\Composition\ContentTypeMetadata.cs (1)
17=> this.ContentTypes = (IEnumerable<string>)data.GetValueOrDefault("ContentTypes");
Extensibility\Composition\OrderableContentTypeMetadata.cs (1)
19this.ContentTypes = (IEnumerable<string>)data.GetValueOrDefault("ContentTypes");
Extensibility\Composition\OrderableLanguageAndRoleMetadata.cs (1)
21this.Roles = (IEnumerable<string>)data.GetValueOrDefault("TextViewRoles");
Microsoft.CodeAnalysis.Features (8)
Completion\CompletionProviderMetadata.cs (2)
18Roles = (string[]?)data.GetValueOrDefault("Roles") 19?? (string[]?)data.GetValueOrDefault("TextViewRoles");
Diagnostics\DiagnosticProviderMetadata.cs (2)
20Name = (string)data.GetValueOrDefault("Name"); 21Language = (string)data.GetValueOrDefault("Language");
EmbeddedLanguages\EmbeddedLanguageMetadata.cs (1)
33this.SupportsUnannotatedAPIs = data.GetValueOrDefault(nameof(SupportsUnannotatedAPIs)) is bool b ? b : false;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIncrementalAnalyzerProviderMetadata.cs (1)
26this.Name = (string)data.GetValueOrDefault("Name");
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
281var fieldSymbol = propertyToBackingField.GetValueOrDefault(property); 374definitionToBackingField.GetValueOrDefault(property),
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (1)
Utilities\TestLsifOutput.vb (1)
124Return GetRangesAsync(Function(testDocument) testDocument.AnnotatedSpans.GetValueOrDefault(annotation))
Microsoft.CodeAnalysis.Workspaces (12)
LanguageMetadata.cs (1)
20=> this.Language = (string)data.GetValueOrDefault("Language");
LanguageServiceMetadata.cs (2)
25this.ServiceType = (string)data.GetValueOrDefault("ServiceType"); 26this.Layer = (string)data.GetValueOrDefault("Layer");
OrderableLanguageMetadata.cs (1)
19this.Language = (string)data.GetValueOrDefault("Language");
OrderableMetadata.cs (1)
29this.Name = (string?)data.GetValueOrDefault("Name");
Remote\RemoteServiceCallbackDispatchers.cs (1)
23var serviceInterface = data.GetValueOrDefault(nameof(ExportRemoteServiceCallbackDispatcherAttribute.ServiceInterface));
SolutionCrawler\IncrementalAnalyzerProviderMetadata.cs (2)
21this.HighPriorityForActiveFile = (bool)data.GetValueOrDefault("HighPriorityForActiveFile"); 22this.Name = (string)data.GetValueOrDefault("Name");
Workspace\Host\EventListener\EventListenerMetadata.cs (1)
24this.Service = (string)data.GetValueOrDefault("Service");
WorkspaceKindMetadata.cs (1)
19=> this.WorkspaceKinds = (string[]?)data.GetValueOrDefault(nameof(WorkspaceKinds));
WorkspaceServiceMetadata.cs (2)
28this.ServiceType = (string)data.GetValueOrDefault("ServiceType"); 29this.Layer = (string)data.GetValueOrDefault("Layer");
Microsoft.VisualStudio.LanguageServices (1)
FindReferences\NameMetadata.cs (1)
15=> this.Name = (string?)data.GetValueOrDefault(nameof(Name));