1 write to Name
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
321Name = 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)
150SectionNameMatcher? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.Name); 194if (normalizedPath.Equals(section.Name, Section.NameComparer)) 494if (IsAbsoluteEditorConfigPath(section.Name)) 497var unescapedSection = new Section(UnescapeSectionName(section.Name), section.Properties); 506section.Name, 566if (!_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)
42Assert.Equal("", config.GlobalSection.Name); 50Assert.Equal("*.cs", namedSections[0].Name); 77Assert.Equal("C:/\\{f\\*i\\?le1\\}.cs", namedSections[0].Name); 83Assert.Equal("C:/f\\,ile\\#2.cs", namedSections[1].Name); 89Assert.Equal("C:/f\\;i\\!le\\[3\\].cs", namedSections[2].Name); 1727Assert.Equal(@"/path/to/file1.cs", file1Section.Name); 1732Assert.Equal(@"/path/to/file2.cs", file2Section.Name); 1736Assert.Equal(@"/path/to/file3.cs", file3Section.Name); 2456Assert.Equal("/path", globalConfig.NamedSections[0].Name);