1 write to GlobalSection
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
164GlobalSection = globalSection;
22 references to GlobalSection
Microsoft.CodeAnalysis (4)
CommandLine\AnalyzerConfig.cs (3)
114internal bool IsRoot => GlobalSection.Properties.TryGetValue("root", out string? val) && val == "true"; 119internal bool IsGlobal => _hasGlobalFileName || GlobalSection.Properties.ContainsKey(GlobalKey); 142if (GlobalSection.Properties.TryGetValue(GlobalLevelKey, out string? val) && int.TryParse(val, out int level))
CommandLine\AnalyzerConfigSet.cs (1)
491MergeSection(config.PathToFile, config.GlobalSection, config.GlobalLevel, isGlobalSection: true);
Microsoft.CodeAnalysis.UnitTests (18)
Analyzers\AnalyzerConfigTests.cs (18)
42Assert.Equal("", config.GlobalSection.Name); 43var properties = config.GlobalSection.Properties; 168var properties = config.GlobalSection.Properties; 183var properties = config.GlobalSection.Properties; 193var properties = config.GlobalSection.Properties; 207config.GlobalSection.Properties); 217var properties = config.GlobalSection.Properties; 228var properties = config.GlobalSection.Properties; 239var properties = config.GlobalSection.Properties; 252var properties = config.GlobalSection.Properties; 266var properties = config.GlobalSection.Properties; 278var properties = config.GlobalSection.Properties; 291var properties = config.GlobalSection.Properties; 302var properties = config.GlobalSection.Properties; 316var properties = config.GlobalSection.Properties; 333var properties = config.GlobalSection.Properties; 356config.GlobalSection.Properties); 366config.GlobalSection.Properties);