1 write to GlobalSection
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
144GlobalSection = globalSection;
22 references to GlobalSection
Microsoft.CodeAnalysis (4)
CommandLine\AnalyzerConfig.cs (3)
94internal bool IsRoot => GlobalSection.Properties.TryGetValue("root", out string? val) && val == "true"; 99internal bool IsGlobal => _hasGlobalFileName || GlobalSection.Properties.ContainsKey(GlobalKey); 122if (GlobalSection.Properties.TryGetValue(GlobalLevelKey, out string? val) && int.TryParse(val, out int level))
CommandLine\AnalyzerConfigSet.cs (1)
502MergeSection(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; 134var properties = config.GlobalSection.Properties; 149var properties = config.GlobalSection.Properties; 159var properties = config.GlobalSection.Properties; 173config.GlobalSection.Properties); 183var properties = config.GlobalSection.Properties; 194var properties = config.GlobalSection.Properties; 205var properties = config.GlobalSection.Properties; 218var properties = config.GlobalSection.Properties; 232var properties = config.GlobalSection.Properties; 244var properties = config.GlobalSection.Properties; 257var properties = config.GlobalSection.Properties; 268var properties = config.GlobalSection.Properties; 282var properties = config.GlobalSection.Properties; 299var properties = config.GlobalSection.Properties; 322config.GlobalSection.Properties); 332config.GlobalSection.Properties);