45 references to TryCreateSectionNameMatcher
Microsoft.Build (1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
86SectionNameMatcher? sectionNameMatcher = TryCreateSectionNameMatcher(section.Name);
Microsoft.Build.BuildCheck.UnitTests (44)
EditorConfig_Tests.cs (44)
123SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc").Value; 135SectionNameMatcher matcher = TryCreateSectionNameMatcher("*").Value; 146SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.cs").Value; 163SectionNameMatcher matcher = TryCreateSectionNameMatcher("**.cs").Value; 173SectionNameMatcher matcher = TryCreateSectionNameMatcher("...").Value; 186SectionNameMatcher? matcher = TryCreateSectionNameMatcher("abc\\"); 193SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab?def").Value; 206SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab\\\\c").Value; 217SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\***\\*\\**").Value; 229SectionNameMatcher matcher = TryCreateSectionNameMatcher("\\??\\?*\\??").Value; 243SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\{\\}def").Value; 255SectionNameMatcher matcher = TryCreateSectionNameMatcher("abc\\,def").Value; 268SectionNameMatcher matcher = TryCreateSectionNameMatcher("*.{cs,vb,fs}").Value; 289SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs,subdir/test.vb}").Value; 312SectionNameMatcher matcher = TryCreateSectionNameMatcher("{}").Value; 324SectionNameMatcher matcher = TryCreateSectionNameMatcher("{*.cs}").Value; 336SectionNameMatcher? matcher = TryCreateSectionNameMatcher("{{{{}}"); 343SectionNameMatcher? matcher = TryCreateSectionNameMatcher("abc,def"); 350SectionNameMatcher matcher = TryCreateSectionNameMatcher("{test{.cs,.vb},other.{a{bb,cc}}}").Value; 370SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{-}cd{-,}ef").Value; 384SectionNameMatcher matcher = TryCreateSectionNameMatcher("ab{cs,vb,fs}cd").Value; 407var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 424var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 440var matcher = TryCreateSectionNameMatcher($"{{{i1}..{i2}}}").Value; 458var matcher = TryCreateSectionNameMatcher(matchString).Value; 478var matcherOpt = TryCreateSectionNameMatcher("{0.."); 482var matcher = TryCreateSectionNameMatcher("{0..}").Value; 489matcher = TryCreateSectionNameMatcher("{0..A}").Value; 496matcherOpt = TryCreateSectionNameMatcher($"{{0..{UInt32.MaxValue}}}"); 504var matcher = TryCreateSectionNameMatcher("*.[cf]s").Value; 515var matcher = TryCreateSectionNameMatcher("*.[!cf]s").Value; 528var matcher = TryCreateSectionNameMatcher("*.[^cf]s").Value; 542var matcher = TryCreateSectionNameMatcher("[0-9]x").Value; 555var matcher = TryCreateSectionNameMatcher("[!0-9]x").Value; 568var matcher = TryCreateSectionNameMatcher("[ab0-9]x").Value; 583var matcher = TryCreateSectionNameMatcher("["); 590var matcher = TryCreateSectionNameMatcher(@"[\]"); 597var matcher = TryCreateSectionNameMatcher(@"[\"); 604var matcher = TryCreateSectionNameMatcher(@"[[a]bc").Value; 620var matcher = TryCreateSectionNameMatcher(@"[-ac]bd").Value; 635var matcher = TryCreateSectionNameMatcher(@"[ac-]bd").Value; 650var matcher = TryCreateSectionNameMatcher(@"[ab]]cd").Value; 664var matcher = TryCreateSectionNameMatcher(@"[ab\\]cd").Value; 679var matcher = TryCreateSectionNameMatcher(@"ab\[cd").Value;