1 instantiation of SectionNameMatcher
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
121
return new
SectionNameMatcher
(regex, numberRangePairs.ToImmutableAndFree());
46 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 (38)
Analyzers\AnalyzerConfigTests.cs (38)
376
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("abc").Value;
388
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("*").Value;
399
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("*.cs").Value;
416
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("**.cs").Value;
426
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("...").Value;
439
SectionNameMatcher
? matcher = TryCreateSectionNameMatcher("abc\\");
446
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("ab?def").Value;
459
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("ab\\\\c").Value;
470
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("\\***\\*\\**").Value;
482
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("\\??\\?*\\??").Value;
496
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("abc\\{\\}def").Value;
508
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("abc\\,def").Value;
521
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("*.{cs,vb,fs}").Value;
542
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("{*.cs,subdir/test.vb}").Value;
565
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("{}").Value;
577
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("{*.cs}").Value;
589
SectionNameMatcher
? matcher = TryCreateSectionNameMatcher("{{{{}}");
596
SectionNameMatcher
? matcher = TryCreateSectionNameMatcher("abc,def");
603
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("{test{.cs,.vb},other.{a{bb,cc}}}").Value;
623
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("ab{-}cd{-,}ef").Value;
637
SectionNameMatcher
matcher = TryCreateSectionNameMatcher("ab{cs,vb,fs}cd").Value;
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;