8 references to TryGetEditorConfigOption
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (1)
32if (EditorConfigOptions.TryGetEditorConfigOption<TValue>(option, out var editorConfigValue) && editorConfigValue is not null)
Microsoft.CodeAnalysis.Features (2)
AbstractFileHeaderCodeFixProvider.cs (1)
65!document.Project.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree).TryGetEditorConfigOption(CodeStyleOptions2.FileHeaderTemplate, out fileHeaderTemplate))
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
336if (configOptions.TryGetEditorConfigOption<CodeStyleOption2<AccessibilityModifiersRequired>>(CodeStyleOptions2.AccessibilityModifiersRequired, out var value))
Microsoft.CodeAnalysis.Workspaces (5)
AnalyzerConfigOptionsExtensions.cs (2)
19=> TryGetEditorConfigOption<T>(analyzerConfigOptions, option, out var value) ? value! : defaultValue; 22=> TryGetEditorConfigOption<CodeStyleOption2<T>>(analyzerConfigOptions, option, out var style) ? style!.Value : defaultValue;
IOptionReader.cs (1)
29=> Options.TryGetEditorConfigOption(optionKey.Option, out value);
NamingStyleOptions.cs (1)
49if (configOptions.TryGetEditorConfigOption<NamingStylePreferences>(NamingStyleOptions.NamingPreferences, out var value))
StructuredAnalyzerConfigOptions.cs (1)
73=> this.TryGetEditorConfigOption(optionKey.Option, out value);