1 write to Properties
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
322
Properties
= properties;
47 references to Properties
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.cs (4)
114
internal bool IsRoot => GlobalSection.
Properties
.TryGetValue("root", out string? val) && val == "true";
119
internal bool IsGlobal => _hasGlobalFileName || GlobalSection.
Properties
.ContainsKey(GlobalKey);
142
if (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)
400
foreach (var (key, value) in section.
Properties
)
497
var unescapedSection = new Section(UnescapeSectionName(section.Name), section.
Properties
);
573
foreach ((var key, var value) in section.
Properties
)
Microsoft.CodeAnalysis.UnitTests (40)
Analyzers\AnalyzerConfigTests.cs (40)
43
var properties = config.GlobalSection.
Properties
;
53
namedSections[0].
Properties
);
80
namedSections[0].
Properties
86
namedSections[1].
Properties
92
namedSections[2].
Properties
168
var properties = config.GlobalSection.
Properties
;
183
var properties = config.GlobalSection.
Properties
;
193
var properties = config.GlobalSection.
Properties
;
207
config.GlobalSection.
Properties
);
217
var properties = config.GlobalSection.
Properties
;
228
var properties = config.GlobalSection.
Properties
;
239
var properties = config.GlobalSection.
Properties
;
252
var properties = config.GlobalSection.
Properties
;
266
var properties = config.GlobalSection.
Properties
;
278
var properties = config.GlobalSection.
Properties
;
291
var properties = config.GlobalSection.
Properties
;
302
var properties = config.GlobalSection.
Properties
;
316
var properties = config.GlobalSection.
Properties
;
333
var properties = config.GlobalSection.
Properties
;
356
config.GlobalSection.
Properties
);
366
config.GlobalSection.
Properties
);
1644
Assert.Empty(globalConfig.GlobalSection.
Properties
);
1664
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1686
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1687
Assert.Equal("value2", globalConfig.GlobalSection.
Properties
["option2"]);
1720
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1721
Assert.Equal("value2", globalConfig.GlobalSection.
Properties
["option2"]);
1728
Assert.Equal(2, file1Section.
Properties
.Count);
1729
Assert.Equal("value1", file1Section.
Properties
["option1"]);
1730
Assert.Equal("value2", file1Section.
Properties
["option2"]);
1733
Assert.Equal(1, file2Section.
Properties
.Count);
1734
Assert.Equal("value1", file2Section.
Properties
["option1"]);
1737
Assert.Equal(1, file3Section.
Properties
.Count);
1738
Assert.Equal("value1", file3Section.
Properties
["option1"]);
2424
Assert.Single(globalConfig.GlobalSection.
Properties
.Keys, "option1");
2427
Assert.Single(globalConfig.GlobalSection.
Properties
.Values, expectedValue);
2457
Assert.Single(globalConfig.NamedSections[0].
Properties
.Keys, "option1");
2458
Assert.Single(globalConfig.NamedSections[0].
Properties
.Values, "value2");
2494
Assert.Single(globalConfig.GlobalSection.
Properties
.Keys, "option1");
2495
Assert.Single(globalConfig.GlobalSection.
Properties
.Values, expectedValue);