1 write to Properties
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
297Properties = properties;
47 references to Properties
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.cs (4)
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)) 289/// Used to compare keys in <see cref="Properties"/>. The editorconfig spec defines property
CommandLine\AnalyzerConfigSet.cs (3)
411foreach (var (key, value) in section.Properties) 508var unescapedSection = new Section(UnescapeSectionName(section.Name), section.Properties); 584foreach ((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 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); 1561Assert.Empty(globalConfig.GlobalSection.Properties); 1581Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1603Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1604Assert.Equal("value2", globalConfig.GlobalSection.Properties["option2"]); 1637Assert.Equal("value1", globalConfig.GlobalSection.Properties["option1"]); 1638Assert.Equal("value2", globalConfig.GlobalSection.Properties["option2"]); 1645Assert.Equal(2, file1Section.Properties.Count); 1646Assert.Equal("value1", file1Section.Properties["option1"]); 1647Assert.Equal("value2", file1Section.Properties["option2"]); 1650Assert.Equal(1, file2Section.Properties.Count); 1651Assert.Equal("value1", file2Section.Properties["option1"]); 1654Assert.Equal(1, file3Section.Properties.Count); 1655Assert.Equal("value1", file3Section.Properties["option1"]); 2341Assert.Single(globalConfig.GlobalSection.Properties.Keys, "option1"); 2344Assert.Single(globalConfig.GlobalSection.Properties.Values, expectedValue); 2374Assert.Single(globalConfig.NamedSections[0].Properties.Keys, "option1"); 2375Assert.Single(globalConfig.NamedSections[0].Properties.Values, "value2"); 2411Assert.Single(globalConfig.GlobalSection.Properties.Keys, "option1"); 2412Assert.Single(globalConfig.GlobalSection.Properties.Values, expectedValue);