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