1 write to Properties
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
297
Properties
= properties;
47 references to Properties
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.cs (4)
94
internal bool IsRoot => GlobalSection.
Properties
.TryGetValue("root", out string? val) && val == "true";
99
internal bool IsGlobal => _hasGlobalFileName || GlobalSection.
Properties
.ContainsKey(GlobalKey);
122
if (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)
411
foreach (var (key, value) in section.
Properties
)
508
var unescapedSection = new Section(UnescapeSectionName(section.Name), section.
Properties
);
584
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
134
var properties = config.GlobalSection.
Properties
;
149
var properties = config.GlobalSection.
Properties
;
159
var properties = config.GlobalSection.
Properties
;
173
config.GlobalSection.
Properties
);
183
var properties = config.GlobalSection.
Properties
;
194
var properties = config.GlobalSection.
Properties
;
205
var properties = config.GlobalSection.
Properties
;
218
var properties = config.GlobalSection.
Properties
;
232
var properties = config.GlobalSection.
Properties
;
244
var properties = config.GlobalSection.
Properties
;
257
var properties = config.GlobalSection.
Properties
;
268
var properties = config.GlobalSection.
Properties
;
282
var properties = config.GlobalSection.
Properties
;
299
var properties = config.GlobalSection.
Properties
;
322
config.GlobalSection.
Properties
);
332
config.GlobalSection.
Properties
);
1561
Assert.Empty(globalConfig.GlobalSection.
Properties
);
1581
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1603
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1604
Assert.Equal("value2", globalConfig.GlobalSection.
Properties
["option2"]);
1637
Assert.Equal("value1", globalConfig.GlobalSection.
Properties
["option1"]);
1638
Assert.Equal("value2", globalConfig.GlobalSection.
Properties
["option2"]);
1645
Assert.Equal(2, file1Section.
Properties
.Count);
1646
Assert.Equal("value1", file1Section.
Properties
["option1"]);
1647
Assert.Equal("value2", file1Section.
Properties
["option2"]);
1650
Assert.Equal(1, file2Section.
Properties
.Count);
1651
Assert.Equal("value1", file2Section.
Properties
["option1"]);
1654
Assert.Equal(1, file3Section.
Properties
.Count);
1655
Assert.Equal("value1", file3Section.
Properties
["option1"]);
2341
Assert.Single(globalConfig.GlobalSection.
Properties
.Keys, "option1");
2344
Assert.Single(globalConfig.GlobalSection.
Properties
.Values, expectedValue);
2374
Assert.Single(globalConfig.NamedSections[0].
Properties
.Keys, "option1");
2375
Assert.Single(globalConfig.NamedSections[0].
Properties
.Values, "value2");
2411
Assert.Single(globalConfig.GlobalSection.
Properties
.Keys, "option1");
2412
Assert.Single(globalConfig.GlobalSection.
Properties
.Values, expectedValue);