1 instantiation of SectionNameMatcher
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
121
return new
SectionNameMatcher
(regex, numberRangePairs.ToImmutableAndFree());
25 references to SectionNameMatcher
Microsoft.CodeAnalysis (8)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
70
internal 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
42
private readonly ImmutableArray<ImmutableArray<
SectionNameMatcher
?>> _analyzerMatchers;
141
var allMatchers = ArrayBuilder<ImmutableArray<
SectionNameMatcher
?>>.GetInstance(_analyzerConfigs.Length);
147
var builder = ArrayBuilder<
SectionNameMatcher
?>.GetInstance(config.NamedSections.Length);
150
SectionNameMatcher
? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.Name);
227
ImmutableArray<
SectionNameMatcher
?> matchers = _analyzerMatchers[analyzerConfigIndex];
274
ImmutableArray<
SectionNameMatcher
?> matchers = _analyzerMatchers[analyzerConfigIndex];
Microsoft.CodeAnalysis.UnitTests (17)
Analyzers\AnalyzerConfigTests.cs (17)
660
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
677
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
693
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
711
var
matcher = TryCreateSectionNameMatcher(matchString).Value;
735
var
matcher = TryCreateSectionNameMatcher("{0..}").Value;
757
var
matcher = TryCreateSectionNameMatcher("*.[cf]s").Value;
768
var
matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value;
781
var
matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value;
795
var
matcher = TryCreateSectionNameMatcher("[0-9]x").Value;
808
var
matcher = TryCreateSectionNameMatcher("[!0-9]x").Value;
821
var
matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value;
857
var
matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value;
873
var
matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value;
888
var
matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value;
903
var
matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value;
917
var
matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value;
932
var
matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;