public IReadOnlyList <CommandMatch> FindCommands(string text) { List <CommandMatch> matches = null; _rootNode.FindCommands(ref matches, new List <string>(), text); return(matches ?? Array.Empty <CommandMatch>() as IReadOnlyList <CommandMatch>); }
public IEnumerable <CommandMatch> FindCommands(string text) => _rootNode.FindCommands(new List <string>(), text, 0);