1 instantiation of SectionNameMatcher
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
121return new SectionNameMatcher(regex, numberRangePairs.ToImmutableAndFree());
25 references to SectionNameMatcher
Microsoft.CodeAnalysis (8)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
70internal static SectionNameMatcher? TryCreateSectionNameMatcher(string sectionName)
CommandLine\AnalyzerConfigSet.cs (7)
39/// <see cref="SectionNameMatcher"/>s for each section. The entries in the outer array correspond to entries in <see cref="_analyzerConfigs"/>, and each inner array 42private readonly ImmutableArray<ImmutableArray<SectionNameMatcher?>> _analyzerMatchers; 141var allMatchers = ArrayBuilder<ImmutableArray<SectionNameMatcher?>>.GetInstance(_analyzerConfigs.Length); 147var builder = ArrayBuilder<SectionNameMatcher?>.GetInstance(config.NamedSections.Length); 150SectionNameMatcher? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.Name); 227ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex]; 274ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex];
Microsoft.CodeAnalysis.UnitTests (17)
Analyzers\AnalyzerConfigTests.cs (17)
661var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 678var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 694var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 712var matcher = TryCreateSectionNameMatcher(matchString).Value; 736var matcher = TryCreateSectionNameMatcher("{0..}").Value; 758var matcher = TryCreateSectionNameMatcher("*.[cf]s").Value; 769var matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value; 782var matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value; 796var matcher = TryCreateSectionNameMatcher("[0-9]x").Value; 809var matcher = TryCreateSectionNameMatcher("[!0-9]x").Value; 822var matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value; 858var matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value; 874var matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value; 889var matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value; 904var matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value; 918var matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value; 933var matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;