public InvocationChain ResolveMatch(string line, IEnumerable <InvocationChain> invocationChains) { var positions = invocationChains.Select(x => new { Position = GetPosition(x), Value = x }); var pair = positions.Where(x => x.Position >= 0).OrderBy(x => x.Position).FirstOrDefault(); if (pair == null) { throw MatchResolutionException.Build(invocationChains); } return(pair.Value); }
public InvocationChain ResolveMatch(string line, IEnumerable <InvocationChain> invocationChains) { throw MatchResolutionException.Build(invocationChains); }