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)
661
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
678
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
694
var
matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value;
712
var
matcher = TryCreateSectionNameMatcher(matchString).Value;
736
var
matcher = TryCreateSectionNameMatcher("{0..}").Value;
758
var
matcher = TryCreateSectionNameMatcher("*.[cf]s").Value;
769
var
matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value;
782
var
matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value;
796
var
matcher = TryCreateSectionNameMatcher("[0-9]x").Value;
809
var
matcher = TryCreateSectionNameMatcher("[!0-9]x").Value;
822
var
matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value;
858
var
matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value;
874
var
matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value;
889
var
matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value;
904
var
matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value;
918
var
matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value;
933
var
matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;