1 write to Name
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
321
Name
= name;
21 references to Name
Microsoft.CodeAnalysis (12)
CommandLine\AnalyzerConfig.cs (2)
302
/// Used to compare <see cref="
Name
"/>s of sections. Specified by editorconfig to
308
/// Used to compare <see cref="
Name
"/>s of sections. Specified by editorconfig to
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
66
/// Takes a <see cref="Section.
Name
"/> and creates a matcher that
CommandLine\AnalyzerConfigSet.cs (9)
150
SectionNameMatcher? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.
Name
);
194
if (normalizedPath.Equals(section.
Name
, Section.NameComparer))
494
if (IsAbsoluteEditorConfigPath(section.
Name
))
497
var unescapedSection = new Section(UnescapeSectionName(section.
Name
), section.Properties);
506
section.
Name
,
566
if (!_values.TryGetValue(section.
Name
, out var sectionDict))
569
_values.Add(section.
Name
, sectionDict);
572
_duplicates.TryGetValue(section.
Name
, out var duplicateDict);
609
_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
);
1727
Assert.Equal(@"/path/to/file1.cs", file1Section.
Name
);
1732
Assert.Equal(@"/path/to/file2.cs", file2Section.
Name
);
1736
Assert.Equal(@"/path/to/file3.cs", file3Section.
Name
);
2456
Assert.Equal("/path", globalConfig.NamedSections[0].
Name
);