1 instantiation of MSBuildGlob
Microsoft.Build (1)
Globbing\MSBuildGlob.cs (1)
232return new MSBuildGlob(lazyState);
107 references to MSBuildGlob
Microsoft.Build (15)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
841.Select(s => MSBuildGlob.Parse(Project.Directory, s)));
Evaluation\ItemSpec.cs (1)
497return MSBuildGlob.Parse(ProjectDirectory, EscapingUtilities.UnescapeAll(TextFragment));
Globbing\Extensions\MSBuildGlobExtensions.cs (2)
17/// Retrieve all the <see cref="MSBuildGlob"/> objects from the given <paramref name="glob"/> composite. 21public static IEnumerable<MSBuildGlob> GetParsedGlobs(this IMSBuildGlob glob)
Globbing\MSBuildGlob.cs (5)
157/// Parse the given <paramref name="fileSpec" /> into a <see cref="MSBuildGlob" /> using a given 169public static MSBuildGlob Parse(string globRoot, string fileSpec) 250public static MSBuildGlob Parse(string fileSpec) 256/// Return type of <see cref="MSBuildGlob.MatchInfo" /> 261/// Whether the <see cref="MSBuildGlob.MatchInfo" /> argument was matched against the glob
Globbing\Visitor\GlobVisitor.cs (2)
12if (glob is MSBuildGlob msbuildGlob) 43protected virtual void VisitMSBuildGlob(MSBuildGlob msbuildGlob)
Globbing\Visitor\ParsedGlobCollector.cs (4)
12private readonly ImmutableList<MSBuildGlob>.Builder _collectedGlobs = ImmutableList.CreateBuilder<MSBuildGlob>(); 13public ImmutableList<MSBuildGlob> CollectedGlobs => _collectedGlobs.ToImmutable(); 15protected override void VisitMSBuildGlob(MSBuildGlob msbuildGlob)
Microsoft.Build.Engine.UnitTests (92)
Globbing\CompositeGlob_Tests.cs (37)
23new CompositeGlob(MSBuildGlob.Parse("a*")), 30new CompositeGlob(MSBuildGlob.Parse("a*")), 38MSBuildGlob.Parse("a*"), 39MSBuildGlob.Parse("b*"), 40MSBuildGlob.Parse("c*")), 48MSBuildGlob.Parse("*"), 49MSBuildGlob.Parse("*"), 50MSBuildGlob.Parse("*")), 58MSBuildGlob.Parse("a*"), 59MSBuildGlob.Parse("b*"), 60MSBuildGlob.Parse("c*")), 68MSBuildGlob.Parse("a*"), 70MSBuildGlob.Parse("b*"), 71MSBuildGlob.Parse("c*"), 72MSBuildGlob.Parse("d*")), 73MSBuildGlob.Parse("e*")), 81MSBuildGlob.Parse("a*"), 83MSBuildGlob.Parse("b*"), 84MSBuildGlob.Parse("c*"), 85MSBuildGlob.Parse("d*")), 86MSBuildGlob.Parse("e*")), 110var g1 = MSBuildGlob.Parse("1*"); 111var g2 = MSBuildGlob.Parse("2*"); 112var g3 = MSBuildGlob.Parse("3*"); 113var g4 = MSBuildGlob.Parse("4*"); 127new MSBuildGlobWithGaps(g3, MSBuildGlob.Parse("x*")), 135foreach (var expectedGlob in expectedCollectedGlobs) 152var glob = MSBuildGlob.Parse(""); 162var glob1 = MSBuildGlob.Parse(""); 163var glob2 = MSBuildGlob.Parse("");
Globbing\MSBuildGlob_Tests.cs (50)
31var glob = MSBuildGlob.Parse(globRoot, "*"); 40var glob = MSBuildGlob.Parse(globRoot, "*"); 49var glob = MSBuildGlob.Parse(string.Empty, "*"); 57Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null, "*")); 64var glob = MSBuildGlob.Parse(globRoot, "*"); 75Assert.Throws<ArgumentException>(() => MSBuildGlob.Parse(invalidPathChar.ToString(), "*")); 94var glob = MSBuildGlob.Parse(globRoot, filespec); 104Assert.Throws<ArgumentNullException>(() => MSBuildGlob.Parse(null)); 114var glob = MSBuildGlob.Parse(globRoot, fileSpec); 135var glob = MSBuildGlob.Parse(globRoot, illegalFileSpec); 155var glob1 = MSBuildGlob.Parse(globRoot, fileSpec); 156var glob2 = MSBuildGlob.Parse(globRoot, fileSpec); 164var glob = MSBuildGlob.Parse("%42/%42"); 175var glob = MSBuildGlob.Parse("*"); 183var glob = MSBuildGlob.Parse("*"); 204var glob = MSBuildGlob.Parse("*"); 227var glob = MSBuildGlob.Parse("abc"); 237var glob = MSBuildGlob.Parse("ab?c*"); 245var glob = MSBuildGlob.Parse("%42"); 255var glob = MSBuildGlob.Parse(globRoot, string.Empty); 265var glob = MSBuildGlob.Parse(globRoot, "*"); 275var glob = MSBuildGlob.Parse(globRoot, "*a*"); 284var glob = MSBuildGlob.Parse(illegalSpec); 298var glob = MSBuildGlob.Parse(globRoot, fileSpec); 318var glob = MSBuildGlob.Parse("u/x", "../../u/x/d11/d21/../d22/../../d12/a.cs"); 343var glob = MSBuildGlob.Parse(globRoot, fileSpec); 347MSBuildGlob.MatchInfoResult result = glob.MatchInfo(stringToMatch);
Globbing\MSBuildGlobWithGaps_Tests.cs (5)
18var glob = new MSBuildGlobWithGaps(MSBuildGlob.Parse("a*"), Enumerable.Empty<IMSBuildGlob>()); 26var glob = new MSBuildGlobWithGaps(MSBuildGlob.Parse("a*"), MSBuildGlob.Parse("b*")); 34var glob = new MSBuildGlobWithGaps(MSBuildGlob.Parse("a*"), MSBuildGlob.Parse("*b"));