1 instantiation of SectionNameMatcher
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
112return new SectionNameMatcher(
46 references to SectionNameMatcher
Microsoft.CodeAnalysis (8)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
66internal static SectionNameMatcher? TryCreateSectionNameMatcher(string sectionName)
CommandLine\AnalyzerConfigSet.cs (7)
38/// <see cref="SectionNameMatcher"/>s for each section. The entries in the outer array correspond to entries in <see cref="_analyzerConfigs"/>, and each inner array 41private readonly ImmutableArray<ImmutableArray<SectionNameMatcher?>> _analyzerMatchers; 140var allMatchers = ArrayBuilder<ImmutableArray<SectionNameMatcher?>>.GetInstance(_analyzerConfigs.Length); 146var builder = ArrayBuilder<SectionNameMatcher?>.GetInstance(config.NamedSections.Length); 149SectionNameMatcher? matcher = AnalyzerConfig.TryCreateSectionNameMatcher(section.Name); 238ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex]; 285ImmutableArray<SectionNameMatcher?> matchers = _analyzerMatchers[analyzerConfigIndex];
Microsoft.CodeAnalysis.UnitTests (38)
Analyzers\AnalyzerConfigTests.cs (38)
342SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc").Value; 354SectionNameMatcher matcher = TryCreateSectionNameMatcher("*").Value; 365SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.cs").Value; 382SectionNameMatcher matcher = TryCreateSectionNameMatcher("**.cs").Value; 392SectionNameMatcher matcher = TryCreateSectionNameMatcher("...").Value; 405SectionNameMatcher? matcher = TryCreateSectionNameMatcher("abc\\"); 412SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab?def").Value; 425SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab\\\\c").Value; 436SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\***\\*\\**").Value; 448SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\??\\?*\\??").Value; 462SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\{\\}def").Value; 474SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\,def").Value; 487SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.{cs,vb,fs}").Value; 508SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs,subdir/test.vb}").Value; 531SectionNameMatcher matcher = TryCreateSectionNameMatcher("{}").Value; 543SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs}").Value; 555SectionNameMatcher? matcher = TryCreateSectionNameMatcher("{{{{}}"); 562SectionNameMatcher? matcher = TryCreateSectionNameMatcher("abc,def"); 569SectionNameMatcher matcher = TryCreateSectionNameMatcher("{test{.cs,.vb},other.{a{bb,cc}}}").Value; 589SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{-}cd{-,}ef").Value; 603SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{cs,vb,fs}cd").Value; 626var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 643var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 659var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 677var matcher = TryCreateSectionNameMatcher(matchString).Value; 701var matcher = TryCreateSectionNameMatcher("{0..}").Value; 723var matcher = TryCreateSectionNameMatcher("*.[cf]s").Value; 734var matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value; 747var matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value; 761var matcher = TryCreateSectionNameMatcher("[0-9]x").Value; 774var matcher = TryCreateSectionNameMatcher("[!0-9]x").Value; 787var matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value; 823var matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value; 839var matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value; 854var matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value; 869var matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value; 883var matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value; 898var matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;