1 write to Name
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
296
Name
= name;
21 references to Name
Microsoft.CodeAnalysis (12)
CommandLine\AnalyzerConfig.cs (2)
277
/// Used to compare <see cref="
Name
"/>s of sections. Specified by editorconfig to
283
/// Used to compare <see cref="
Name
"/>s of sections. Specified by editorconfig to
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
62
/// Takes a <see cref="Section.
Name
"/> and creates a matcher that
CommandLine\AnalyzerConfigSet.cs (9)
149
SectionNameMatcher? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.
Name
);
205
if (normalizedPath.Equals(section.
Name
, Section.NameComparer))
505
if (IsAbsoluteEditorConfigPath(section.
Name
))
508
var unescapedSection = new Section(UnescapeSectionName(section.
Name
), section.Properties);
517
section.
Name
,
577
if (!_values.TryGetValue(section.
Name
, out var sectionDict))
580
_values.Add(section.
Name
, sectionDict);
583
_duplicates.TryGetValue(section.
Name
, out var duplicateDict);
620
_duplicates.Add(section.
Name
, duplicateDict);
Microsoft.CodeAnalysis.UnitTests (9)
Analyzers\AnalyzerConfigTests.cs (9)
42
Assert.Equal("", config.GlobalSection.
Name
);
50
Assert.Equal("*.cs", namedSections[0].
Name
);
77
Assert.Equal("c:/\\{f\\*i\\?le1\\}.cs", namedSections[0].
Name
);
83
Assert.Equal("c:/f\\,ile\\#2.cs", namedSections[1].
Name
);
89
Assert.Equal("c:/f\\;i\\!le\\[3\\].cs", namedSections[2].
Name
);
1644
Assert.Equal(@"/path/to/file1.cs", file1Section.
Name
);
1649
Assert.Equal(@"/path/to/file2.cs", file2Section.
Name
);
1653
Assert.Equal(@"/path/to/file3.cs", file3Section.
Name
);
2373
Assert.Equal("/path", globalConfig.NamedSections[0].
Name
);