101 references to BuiltIn
Microsoft.TemplateEngine.Abstractions (2)
TemplateFiltering\MatchInfo.cs (2)
16
/// <param name="name">the name for the match. See default names in <see cref="
BuiltIn
"/>.</param>
35
/// For default filter names, see <see cref="
BuiltIn
"/>).
Microsoft.TemplateEngine.Cli (21)
Commands\FilterOptionDefinition.cs (5)
23
matchInfoName: MatchInfo.
BuiltIn
.Author);
29
matchInfoName: MatchInfo.
BuiltIn
.Baseline);
35
matchInfoName: MatchInfo.
BuiltIn
.Language);
41
matchInfoName: MatchInfo.
BuiltIn
.Classification);
47
matchInfoName: MatchInfo.
BuiltIn
.Type);
TemplateResolution\CliFilters.cs (13)
23
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Mismatch);
29
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Exact);
32
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Mismatch);
48
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Partial);
55
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Exact);
66
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Exact);
74
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Partial);
79
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Partial);
82
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Mismatch);
113
return new MatchInfo(MatchInfo.
BuiltIn
.Language, language, MatchKind.Exact);
117
return new MatchInfo(MatchInfo.
BuiltIn
.Language, language, MatchKind.Mismatch);
125
return new MatchInfo(MatchInfo.
BuiltIn
.Language, defaultLanguage, MatchKind.Exact);
131
return new MatchInfo(MatchInfo.
BuiltIn
.Language, language, MatchKind.Exact);
TemplateResolution\TemplateGroupMatchInfo.cs (1)
320
MatchInfo? languageMatch = _groupDispositions.SingleOrDefault(match => match.Name == MatchInfo.
BuiltIn
.Language);
TemplateResolution\TemplateMatchInfoExtensions.cs (2)
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));
Microsoft.TemplateEngine.Utils (78)
TemplateMatchInfoExtensions.cs (40)
14
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> or <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.Name"/>.
18
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Name && (x.Kind == MatchKind.Exact || x.Kind == MatchKind.Partial));
22
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.Name"/>.
26
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Name && x.Kind == MatchKind.Exact);
30
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.Name"/>.
34
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Name && x.Kind == MatchKind.Partial);
38
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.Name"/>.
42
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Name && x.Kind == MatchKind.Mismatch);
46
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> or <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.ShortName"/>.
50
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.ShortName && (x.Kind == MatchKind.Exact || x.Kind == MatchKind.Partial));
54
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.ShortName"/>.
58
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.ShortName && x.Kind == MatchKind.Exact);
62
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.ShortName"/>.
66
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.ShortName && x.Kind == MatchKind.Partial);
70
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.ShortName"/>.
74
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.ShortName && x.Kind == MatchKind.Mismatch);
78
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.Type"/>.
82
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Type && x.Kind == MatchKind.Exact);
86
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.Type"/>.
90
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Type && x.Kind == MatchKind.Mismatch);
94
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.Classification"/>.
98
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Classification && x.Kind == MatchKind.Exact);
102
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.Classification"/>.
106
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Classification && x.Kind == MatchKind.Mismatch);
110
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.Language"/>.
114
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Language && x.Kind == MatchKind.Exact);
118
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.Language"/>.
122
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Language && x.Kind == MatchKind.Mismatch);
126
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.Baseline"/>.
130
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Baseline && x.Kind == MatchKind.Exact);
134
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.Baseline"/>.
138
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.
BuiltIn
.Baseline && x.Kind == MatchKind.Mismatch);
142
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> or <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.Author"/>.
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"
150
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Exact" /> match on <see cref="MatchInfo.
BuiltIn
.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"
158
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Partial" /> match on <see cref="MatchInfo.
BuiltIn
.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"
166
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.Mismatch" /> on <see cref="MatchInfo.
BuiltIn
.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 (38)
29
/// - if <paramref name="name"/> is null or empty, adds match disposition <see cref="MatchInfo.
BuiltIn
.Name"/> with <see cref="MatchKind.Partial"/>;<br/>
30
/// - if <paramref name="name"/> is equal to <see cref="ITemplateMetadata.Name"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Name"/> with <see cref="MatchKind.Exact"/>;<br/>
31
/// - if <paramref name="name"/> is equal to one of the short names in <see cref="ITemplateMetadata.ShortNameList"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.ShortName"/> with <see cref="MatchKind.Exact"/>;<br/>
32
/// - if <see cref="ITemplateMetadata.Name"/> contains <paramref name="name"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Name"/> with <see cref="MatchKind.Partial"/>;<br/>
33
/// - if one of the short names in <see cref="ITemplateMetadata.ShortNameList"/> contains <paramref name="name"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.ShortName"/> with <see cref="MatchKind.Partial"/>;<br/>
34
/// - adds match disposition <see cref="MatchInfo.
BuiltIn
.Name"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
43
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Partial);
50
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Exact);
61
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Exact);
69
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Partial);
74
return new MatchInfo(MatchInfo.
BuiltIn
.ShortName, name, MatchKind.Partial);
77
return new MatchInfo(MatchInfo.
BuiltIn
.Name, name, MatchKind.Mismatch);
84
/// - if <paramref name="inputType"/> is equal to tag named 'type' from <see cref="ITemplateInfo.Tags"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Type"/> with <see cref="MatchKind.Exact"/>;<br/>
85
/// - adds match disposition <see cref="MatchInfo.
BuiltIn
.Type"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
100
return new MatchInfo(MatchInfo.
BuiltIn
.Type, type, MatchKind.Exact);
104
return new MatchInfo(MatchInfo.
BuiltIn
.Type, type, MatchKind.Mismatch);
112
/// - if <paramref name="classification"/> is equal to any entry from <see cref="ITemplateMetadata.Classifications"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Classification"/> with <see cref="MatchKind.Exact"/>;<br/>
113
/// - adds match disposition <see cref="MatchInfo.
BuiltIn
.Classification"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
126
return new MatchInfo(MatchInfo.
BuiltIn
.Classification, classification, MatchKind.Exact);
128
return new MatchInfo(MatchInfo.
BuiltIn
.Classification, classification, MatchKind.Mismatch);
135
/// - if <paramref name="language"/> is equal to tag named 'language' from <see cref="ITemplateInfo.Tags"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Language"/> with <see cref="MatchKind.Exact"/>;<br/>
136
/// - adds match disposition <see cref="MatchInfo.
BuiltIn
.Language"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
150
return new MatchInfo(MatchInfo.
BuiltIn
.Language, language, MatchKind.Exact);
154
return new MatchInfo(MatchInfo.
BuiltIn
.Language, language, MatchKind.Mismatch);
162
/// - if <paramref name="baselineName"/> is equal to key from <see cref="ITemplateMetadata.BaselineInfo"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Baseline"/> with <see cref="MatchKind.Exact"/>;<br/>
163
/// - adds match disposition <see cref="MatchInfo.
BuiltIn
.Baseline"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
177
return new MatchInfo(MatchInfo.
BuiltIn
.Baseline, baselineName, MatchKind.Exact);
181
return new MatchInfo(MatchInfo.
BuiltIn
.Baseline, baselineName, MatchKind.Mismatch);
189
/// - if <see cref="ITemplateMetadata.Author"/> is null or empty, adds match disposition <see cref="MatchInfo.
BuiltIn
.Author"/> with <see cref="MatchKind.Mismatch"/>;<br/>
190
/// - if <paramref name="author"/> is equal to <see cref="ITemplateMetadata.Author"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Author"/> with <see cref="MatchKind.Exact"/>;<br/>
191
/// - if <see cref="ITemplateMetadata.Author"/> contains <paramref name="author"/> (case insensitive), adds match disposition <see cref="MatchInfo.
BuiltIn
.Author"/> with <see cref="MatchKind.Partial"/>;<br/>
192
/// - <see cref="MatchInfo.
BuiltIn
.Author"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/>
206
return new MatchInfo(MatchInfo.
BuiltIn
.Author, author, MatchKind.Mismatch);
213
return new MatchInfo(MatchInfo.
BuiltIn
.Author, author, MatchKind.Exact);
218
return new MatchInfo(MatchInfo.
BuiltIn
.Author, author, MatchKind.Partial);
220
return new MatchInfo(MatchInfo.
BuiltIn
.Author, author, MatchKind.Mismatch);
250
return new MatchInfo($"{MatchInfo.
BuiltIn
.Constraint}.{constraintDefinition.Type}", null, MatchKind.Mismatch);
253
return new MatchInfo($"{MatchInfo.
BuiltIn
.Constraint}.{constraintDefinition.Type}", null, MatchKind.Exact);