Exemple #1
0
        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>);
        }
Exemple #2
0
 public IEnumerable <CommandMatch> FindCommands(string text)
 => _rootNode.FindCommands(new List <string>(), text, 0);