1 write to Name
Microsoft.TemplateEngine.Abstractions (1)
TemplateFiltering\MatchInfo.cs (1)
23
Name
= name;
34 references to Name
Microsoft.TemplateEngine.Cli (13)
TemplateResolution\TemplateGroupMatchInfo.cs (4)
320
MatchInfo? languageMatch = _groupDispositions.SingleOrDefault(match => match.
Name
== MatchInfo.BuiltIn.Language);
351
&& string.Equals(x.
Name
, y.
Name
, StringComparison.OrdinalIgnoreCase)
357
return (obj.
Name
.ToLowerInvariant(), obj.Value?.ToLowerInvariant(), obj.Kind).GetHashCode();
TemplateResolution\TemplateMatchInfoExtensions.cs (6)
17
.ToDictionary(x => x.
Name
, x => x.Value);
25
.Select(match => match.
Name
);
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 (3)
270
if (!string.IsNullOrWhiteSpace(parameterMatchInfo.Value) || !parameterList.ContainsKey(parameterMatchInfo.InputFormat ?? parameterMatchInfo.
Name
))
272
parameterList[parameterMatchInfo.InputFormat ?? parameterMatchInfo.
Name
] = parameterMatchInfo.Value;
295
&& matchInfo.
Name
.Equals(parameterName, StringComparison.OrdinalIgnoreCase)
Microsoft.TemplateEngine.Edge (1)
Template\MatchLocation.cs (1)
6
[Obsolete("use" + nameof(Microsoft.TemplateEngine.Abstractions.TemplateFiltering.MatchInfo.
Name
) + " instead")]
Microsoft.TemplateEngine.Utils (20)
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"