1 write to Properties
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
322Properties = properties;
47 references to Properties
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.cs (4)
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)) 314/// Used to compare keys in <see cref="Properties"/>. The editorconfig spec defines property
CommandLine\AnalyzerConfigSet.cs (3)
400foreach (var (key, value) in section.Properties) 497var unescapedSection = new Section(UnescapeSectionName(section.Name), section.Properties); 573foreach ((var key, var value) in section.Properties)
Microsoft.CodeAnalysis.UnitTests (40)
Analyzers\AnalyzerConfigTests.cs (40)
43var properties = config.GlobalSection.Properties; 53namedSections[0].Properties); 80namedSections[0].Properties 86namedSections[1].Properties 92namedSections[2].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); 1644Assert.Empty(globalConfig.GlobalSection.Properties); 1664Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1686Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1687Assert.Equal("value2", globalConfig.GlobalSection.Properties["option2"]); 1720Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1721Assert.Equal("value2", globalConfig.GlobalSection.Properties["option2"]); 1728Assert.Equal(2, file1Section.Properties.Count); 1729Assert.Equal("value1", file1Section.Properties["option1"]); 1730Assert.Equal("value2", file1Section.Properties["option2"]); 1733Assert.Equal(1, file2Section.Properties.Count); 1734Assert.Equal("value1", file2Section.Properties["option1"]); 1737Assert.Equal(1, file3Section.Properties.Count); 1738Assert.Equal("value1", file3Section.Properties["option1"]); 2424Assert.Single(globalConfig.GlobalSection.Properties.Keys, "option1"); 2427Assert.Single(globalConfig.GlobalSection.Properties.Values, expectedValue); 2457Assert.Single(globalConfig.NamedSections[0].Properties.Keys, "option1"); 2458Assert.Single(globalConfig.NamedSections[0].Properties.Values, "value2"); 2494Assert.Single(globalConfig.GlobalSection.Properties.Keys, "option1"); 2495Assert.Single(globalConfig.GlobalSection.Properties.Values, expectedValue);