1 write to Kind
Microsoft.TemplateEngine.Abstractions (1)
TemplateFiltering\MatchInfo.cs (1)
25
Kind
= kind;
43 references to Kind
Microsoft.TemplateEngine.Cli (18)
TemplateResolution\TemplateGroupMatchInfo.cs (7)
49
internal bool IsGroupMatch => _groupDispositions.All(x => x.
Kind
!= MatchKind.Mismatch);
208
if (groupMatchDispositions.Any(x => x.
Kind
== MatchKind.Mismatch))
295
.All(match => match.
Kind
!= MatchKind.Mismatch);
302
.All(match => match.
Kind
!= MatchKind.Mismatch);
350
return x.
Kind
== y.
Kind
357
return (obj.Name.ToLowerInvariant(), obj.Value?.ToLowerInvariant(), obj.
Kind
).GetHashCode();
TemplateResolution\TemplateMatchInfoExtensions.cs (10)
16
.Where(x => x.
Kind
== MatchKind.Exact)
24
.Where(match => match.
Kind
== MatchKind.InvalidName)
37
if (otherMatches.Any(mi => mi.
Kind
== MatchKind.Mismatch || mi.
Kind
== MatchKind.InvalidName || mi.
Kind
== MatchKind.InvalidValue))
42
return constraintsMatches.Any(mi => mi.
Kind
== MatchKind.Mismatch);
59
if (otherMatches.Any(mi => mi.
Kind
== MatchKind.Mismatch || mi.
Kind
== MatchKind.InvalidName || mi.
Kind
== MatchKind.InvalidValue))
64
return filterMatches.Any(mi => mi.
Kind
== MatchKind.Mismatch);
TemplateResolution\TemplateResolutionResult.cs (1)
296
&& matchInfo.
Kind
== MatchKind.Mismatch)))
Microsoft.TemplateEngine.Utils (25)
TemplateMatchInfoExtensions.cs (23)
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 (2)
19
t => t.MatchDisposition.Count > 0 && t.MatchDisposition.All(x => x.
Kind
is MatchKind.Exact or MatchKind.Partial);
25
t => t.MatchDisposition.Any(x => x.
Kind
is MatchKind.Exact or MatchKind.Partial);