1 instantiation of MSBuildGlob
Microsoft.Build (1)
Globbing\MSBuildGlob.cs (1)
232
return 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)
497
return
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.
21
public 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
169
public static
MSBuildGlob
Parse(string globRoot, string fileSpec)
250
public 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)
12
if (glob is
MSBuildGlob
msbuildGlob)
43
protected virtual void VisitMSBuildGlob(
MSBuildGlob
msbuildGlob)
Globbing\Visitor\ParsedGlobCollector.cs (4)
12
private readonly ImmutableList<
MSBuildGlob
>.Builder _collectedGlobs = ImmutableList.CreateBuilder<
MSBuildGlob
>();
13
public ImmutableList<
MSBuildGlob
> CollectedGlobs => _collectedGlobs.ToImmutable();
15
protected override void VisitMSBuildGlob(
MSBuildGlob
msbuildGlob)
Microsoft.Build.Engine.UnitTests (92)
Globbing\CompositeGlob_Tests.cs (37)
23
new CompositeGlob(
MSBuildGlob
.Parse("a*")),
30
new CompositeGlob(
MSBuildGlob
.Parse("a*")),
38
MSBuildGlob
.Parse("a*"),
39
MSBuildGlob
.Parse("b*"),
40
MSBuildGlob
.Parse("c*")),
48
MSBuildGlob
.Parse("*"),
49
MSBuildGlob
.Parse("*"),
50
MSBuildGlob
.Parse("*")),
58
MSBuildGlob
.Parse("a*"),
59
MSBuildGlob
.Parse("b*"),
60
MSBuildGlob
.Parse("c*")),
68
MSBuildGlob
.Parse("a*"),
70
MSBuildGlob
.Parse("b*"),
71
MSBuildGlob
.Parse("c*"),
72
MSBuildGlob
.Parse("d*")),
73
MSBuildGlob
.Parse("e*")),
81
MSBuildGlob
.Parse("a*"),
83
MSBuildGlob
.Parse("b*"),
84
MSBuildGlob
.Parse("c*"),
85
MSBuildGlob
.Parse("d*")),
86
MSBuildGlob
.Parse("e*")),
110
var
g1 =
MSBuildGlob
.Parse("1*");
111
var
g2 =
MSBuildGlob
.Parse("2*");
112
var
g3 =
MSBuildGlob
.Parse("3*");
113
var
g4 =
MSBuildGlob
.Parse("4*");
127
new MSBuildGlobWithGaps(g3,
MSBuildGlob
.Parse("x*")),
135
foreach (
var
expectedGlob in expectedCollectedGlobs)
152
var
glob =
MSBuildGlob
.Parse("");
162
var
glob1 =
MSBuildGlob
.Parse("");
163
var
glob2 =
MSBuildGlob
.Parse("");
Globbing\MSBuildGlob_Tests.cs (50)
31
var
glob =
MSBuildGlob
.Parse(globRoot, "*");
40
var
glob =
MSBuildGlob
.Parse(globRoot, "*");
49
var
glob =
MSBuildGlob
.Parse(string.Empty, "*");
57
Assert.Throws<ArgumentNullException>(() =>
MSBuildGlob
.Parse(null, "*"));
64
var
glob =
MSBuildGlob
.Parse(globRoot, "*");
75
Assert.Throws<ArgumentException>(() =>
MSBuildGlob
.Parse(invalidPathChar.ToString(), "*"));
94
var
glob =
MSBuildGlob
.Parse(globRoot, filespec);
104
Assert.Throws<ArgumentNullException>(() =>
MSBuildGlob
.Parse(null));
114
var
glob =
MSBuildGlob
.Parse(globRoot, fileSpec);
135
var
glob =
MSBuildGlob
.Parse(globRoot, illegalFileSpec);
155
var
glob1 =
MSBuildGlob
.Parse(globRoot, fileSpec);
156
var
glob2 =
MSBuildGlob
.Parse(globRoot, fileSpec);
164
var
glob =
MSBuildGlob
.Parse("%42/%42");
175
var
glob =
MSBuildGlob
.Parse("*");
183
var
glob =
MSBuildGlob
.Parse("*");
204
var
glob =
MSBuildGlob
.Parse("*");
227
var
glob =
MSBuildGlob
.Parse("abc");
237
var
glob =
MSBuildGlob
.Parse("ab?c*");
245
var
glob =
MSBuildGlob
.Parse("%42");
255
var
glob =
MSBuildGlob
.Parse(globRoot, string.Empty);
265
var
glob =
MSBuildGlob
.Parse(globRoot, "*");
275
var
glob =
MSBuildGlob
.Parse(globRoot, "*a*");
284
var
glob =
MSBuildGlob
.Parse(illegalSpec);
298
var
glob =
MSBuildGlob
.Parse(globRoot, fileSpec);
318
var
glob =
MSBuildGlob
.Parse("u/x", "../../u/x/d11/d21/../d22/../../d12/a.cs");
343
var
glob =
MSBuildGlob
.Parse(globRoot, fileSpec);
347
MSBuildGlob
.MatchInfoResult result = glob.MatchInfo(stringToMatch);
Globbing\MSBuildGlobWithGaps_Tests.cs (5)
18
var glob = new MSBuildGlobWithGaps(
MSBuildGlob
.Parse("a*"), Enumerable.Empty<IMSBuildGlob>());
26
var glob = new MSBuildGlobWithGaps(
MSBuildGlob
.Parse("a*"),
MSBuildGlob
.Parse("b*"));
34
var glob = new MSBuildGlobWithGaps(
MSBuildGlob
.Parse("a*"),
MSBuildGlob
.Parse("*b"));