19 instantiations of MatchInfo
Microsoft.TemplateEngine.Edge (19)
Template\WellKnownSearchFilters.cs (19)
18
return new
MatchInfo
{ Location = MatchLocation.Name, Kind = MatchKind.Partial };
25
return new
MatchInfo
{ Location = MatchLocation.Name, Kind = MatchKind.Exact };
36
return new
MatchInfo
{ Location = MatchLocation.ShortName, Kind = MatchKind.Exact };
44
return new
MatchInfo
{ Location = MatchLocation.Name, Kind = MatchKind.Partial };
49
return new
MatchInfo
{ Location = MatchLocation.ShortName, Kind = MatchKind.Partial };
52
return new
MatchInfo
{ Location = MatchLocation.Name, Kind = MatchKind.Mismatch };
69
return new
MatchInfo
{ Location = MatchLocation.Context, Kind = MatchKind.Exact };
73
return new
MatchInfo
{ Location = MatchLocation.Context, Kind = MatchKind.Mismatch };
96
return new
MatchInfo
{ Location = MatchLocation.Classification, Kind = MatchKind.Exact };
98
return new
MatchInfo
{ Location = MatchLocation.Classification, Kind = MatchKind.Mismatch };
116
return new
MatchInfo
{ Location = MatchLocation.Language, Kind = MatchKind.Exact };
120
return new
MatchInfo
{ Location = MatchLocation.Language, Kind = MatchKind.Mismatch };
136
return new
MatchInfo
{ Location = MatchLocation.Baseline, Kind = MatchKind.Exact };
140
return new
MatchInfo
{ Location = MatchLocation.Baseline, Kind = MatchKind.Mismatch };
178
return new
MatchInfo
{ Location = MatchLocation.Classification, Kind = allParts ? MatchKind.Exact : MatchKind.Partial };
202
return new
MatchInfo
{ Location = MatchLocation.Author, Kind = MatchKind.Mismatch };
209
return new
MatchInfo
{ Location = MatchLocation.Author, Kind = MatchKind.Exact };
214
return new
MatchInfo
{ Location = MatchLocation.Author, Kind = MatchKind.Partial };
217
return new
MatchInfo
{ Location = MatchLocation.Author, Kind = MatchKind.Mismatch };
37 references to MatchInfo
Microsoft.TemplateEngine.Edge (36)
Settings\FilteredTemplateInfo.cs (2)
12
public FilteredTemplateInfo(ITemplateInfo info, IReadOnlyList<
MatchInfo
> matchDisposition)
20
public IReadOnlyList<
MatchInfo
> MatchDisposition { get; set; }
Settings\TemplateMatchInfo.cs (9)
12
private readonly List<
MatchInfo
> _matchDisposition;
14
private readonly List<
MatchInfo
> _dispositionOfDefaults;
16
public TemplateMatchInfoEx(ITemplateInfo info, IReadOnlyList<
MatchInfo
> matchDispositions)
21
foreach (
MatchInfo
disposition in matchDispositions)
31
_matchDisposition = new List<
MatchInfo
>();
32
_dispositionOfDefaults = new List<
MatchInfo
>();
37
public IReadOnlyList<
MatchInfo
> MatchDisposition => _matchDisposition;
44
public IReadOnlyList<
MatchInfo
> DispositionOfDefaults => _dispositionOfDefaults.ToList();
50
public void AddDisposition(
MatchInfo
newDisposition)
Template\IFilteredTemplateInfo.cs (1)
13
IReadOnlyList<
MatchInfo
> MatchDisposition { get; }
Template\ITemplateMatchInfo.cs (3)
14
IReadOnlyList<
MatchInfo
> MatchDisposition { get; }
16
IReadOnlyList<
MatchInfo
> DispositionOfDefaults { get; }
22
void AddDisposition(
MatchInfo
newDisposition);
Template\OrdinalIgnoreCaseMatchInfoComparer.cs (4)
7
public class OrdinalIgnoreCaseMatchInfoComparer : IEqualityComparer<
MatchInfo
>
9
public bool Equals(
MatchInfo
x,
MatchInfo
y)
17
public int GetHashCode(
MatchInfo
obj)
Template\WellKnownSearchFilters.cs (7)
12
public static Func<ITemplateInfo,
MatchInfo
?> NameFilter(string name)
57
public static Func<ITemplateInfo,
MatchInfo
?> ContextFilter(string inputContext)
86
public static Func<ITemplateInfo,
MatchInfo
?> TagFilter(string tagFilter)
105
public static Func<ITemplateInfo,
MatchInfo
?> LanguageFilter(string language)
125
public static Func<ITemplateInfo,
MatchInfo
?> BaselineFilter(string baselineName)
146
public static Func<ITemplateInfo,
MatchInfo
?> ClassificationsFilter(string name)
191
public static Func<ITemplateInfo,
MatchInfo
?> AuthorFilter(string author)
TemplateListFilter.cs (10)
27
public static IReadOnlyCollection<IFilteredTemplateInfo> FilterTemplates(IReadOnlyList<ITemplateInfo> templateList, bool exactMatchesOnly, params Func<ITemplateInfo,
MatchInfo
?>[] filters)
33
List<
MatchInfo
> matchInformation = new List<
MatchInfo
>();
35
foreach (Func<ITemplateInfo,
MatchInfo
?> filter in filters)
37
MatchInfo
? result = filter(template);
72
public static IReadOnlyCollection<ITemplateMatchInfo> GetTemplateMatchInfo(IReadOnlyList<ITemplateInfo> templateList, Func<ITemplateMatchInfo, bool> matchFilter, params Func<ITemplateInfo,
MatchInfo
?>[] filters)
78
List<
MatchInfo
> matchInformation = new List<
MatchInfo
>();
80
foreach (Func<ITemplateInfo,
MatchInfo
?> filter in filters)
82
MatchInfo
? result = filter(template);
Microsoft.TemplateEngine.IDE (1)
Bootstrapper.cs (1)
365
public async Task<IReadOnlyCollection<Edge.Template.IFilteredTemplateInfo>> ListTemplates(bool exactMatchesOnly, params Func<ITemplateInfo, Edge.Template.
MatchInfo
?>[] filters)