1 implementation of MatchDisposition
Microsoft.TemplateEngine.Edge (1)
Settings\TemplateMatchInfo.cs (1)
86
public IReadOnlyList<Abstractions.TemplateFiltering.MatchInfo>
MatchDisposition
=> _matchDisposition;
35 references to MatchDisposition
Microsoft.TemplateEngine.Cli (10)
TemplateResolution\TemplateGroupMatchInfo.cs (2)
293
return templateMatchInfo.
MatchDisposition
300
return templateMatchInfo.
MatchDisposition
TemplateResolution\TemplateMatchInfoExtensions.cs (6)
14
return templateMatchInfo.
MatchDisposition
22
return templateMatchInfo.
MatchDisposition
30
var constraintsMatches = templateMatchInfo.
MatchDisposition
.Where(mi => mi.Name.StartsWith(MatchInfo.BuiltIn.Constraint));
31
var otherMatches = templateMatchInfo.
MatchDisposition
.Where(mi => !mi.Name.StartsWith(MatchInfo.BuiltIn.Constraint));
52
var filterMatches = templateMatchInfo.
MatchDisposition
.Where(mi => supportedFilters.Any(f => f == mi.Name));
53
var otherMatches = templateMatchInfo.
MatchDisposition
.Where(mi => !supportedFilters.Any(f => f == mi.Name));
TemplateResolution\TemplateResolutionResult.cs (2)
268
foreach (ParameterMatchInfo parameterMatchInfo in templateMatchInfos.SelectMany(template => template.
MatchDisposition
.OfType<ParameterMatchInfo>()))
292
templateMatchInfo.
MatchDisposition
.Any(
Microsoft.TemplateEngine.Utils (25)
TemplateMatchInfoExtensions.cs (20)
18
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Name && (x.Kind == MatchKind.Exact || x.Kind == MatchKind.Partial));
26
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Name && x.Kind == MatchKind.Exact);
34
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Name && x.Kind == MatchKind.Partial);
42
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Name && x.Kind == MatchKind.Mismatch);
50
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.ShortName && (x.Kind == MatchKind.Exact || x.Kind == MatchKind.Partial));
58
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.ShortName && x.Kind == MatchKind.Exact);
66
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.ShortName && x.Kind == MatchKind.Partial);
74
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.ShortName && x.Kind == MatchKind.Mismatch);
82
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Type && x.Kind == MatchKind.Exact);
90
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Type && x.Kind == MatchKind.Mismatch);
98
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Classification && x.Kind == MatchKind.Exact);
106
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Classification && x.Kind == MatchKind.Mismatch);
114
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Language && x.Kind == MatchKind.Exact);
122
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Language && x.Kind == MatchKind.Mismatch);
130
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Baseline && x.Kind == MatchKind.Exact);
138
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Baseline && x.Kind == MatchKind.Mismatch);
146
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Author && (x.Kind == MatchKind.Exact || x.Kind == MatchKind.Partial)); // CodeQL [cs/campaign/constantine] False Positive: CodeQL wrongly detected "Author"
154
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Author && x.Kind == MatchKind.Exact); // CodeQL [cs/campaign/constantine] False Positive: CodeQL wrongly detected "Author"
162
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Author && x.Kind == MatchKind.Partial); // CodeQL [cs/campaign/constantine] False Positive: CodeQL wrongly detected "Author"
170
return templateMatchInfo.
MatchDisposition
.Any(x => x.Name == MatchInfo.BuiltIn.Author && x.Kind == MatchKind.Mismatch); // CodeQL [cs/campaign/constantine] False Positive: CodeQL wrongly detected "Author"
WellKnownSearchFilters.cs (5)
16
/// The template should match all filters: <see cref="ITemplateMatchInfo.
MatchDisposition
"/> should have all dispositions of <see cref="MatchKind.Exact"/> or <see cref="MatchKind.Partial"/>.
19
t => t.
MatchDisposition
.Count > 0 && t.
MatchDisposition
.All(x => x.Kind is MatchKind.Exact or MatchKind.Partial);
22
/// The template should match at least one filter: <see cref="ITemplateMatchInfo.
MatchDisposition
"/> should have at least one disposition of <see cref="MatchKind.Exact"/> or <see cref="MatchKind.Partial"/>.
25
t => t.
MatchDisposition
.Any(x => x.Kind is MatchKind.Exact or MatchKind.Partial);