47 references to Exact
Microsoft.TemplateEngine.Cli (7)
TemplateResolution\CliFilters.cs (6)
29
return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.
Exact
);
55
return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.
Exact
);
66
return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.
Exact
);
113
return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.
Exact
);
125
return new MatchInfo(MatchInfo.BuiltIn.Language, defaultLanguage, MatchKind.
Exact
);
131
return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.
Exact
);
TemplateResolution\TemplateMatchInfoExtensions.cs (1)
16
.Where(x => x.Kind == MatchKind.
Exact
)
Microsoft.TemplateEngine.Utils (40)
TemplateMatchInfoExtensions.cs (20)
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
);
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
);
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
);
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
);
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
);
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
);
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"
WellKnownSearchFilters.cs (20)
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);
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/>
50
return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.
Exact
);
61
return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.
Exact
);
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/>
100
return new MatchInfo(MatchInfo.BuiltIn.Type, type, MatchKind.
Exact
);
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/>
126
return new MatchInfo(MatchInfo.BuiltIn.Classification, classification, MatchKind.
Exact
);
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/>
150
return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.
Exact
);
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/>
177
return new MatchInfo(MatchInfo.BuiltIn.Baseline, baselineName, MatchKind.
Exact
);
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/>
213
return new MatchInfo(MatchInfo.BuiltIn.Author, author, MatchKind.
Exact
);
228
/// - if the template meets the constraint, adds match disposition with <see cref="MatchKind.
Exact
"/>;<br/>
253
return new MatchInfo($"{MatchInfo.BuiltIn.Constraint}.{constraintDefinition.Type}", null, MatchKind.
Exact
);