Ejemplo n.º 1
0
        public static CompletionInfo[] GetCompletions(string input)
        {
            var result = new CompletionInfo[] {};

            foreach (var plugin in completionPlugins) {
            var completions = plugin.GetCompletions(input);
            if (completions != null && completions.Length > 0) {
                result = result.Concat(completions).ToArray();
            }
            }

            return result.OrderBy(x => x.code).ToArray();
        }
Ejemplo n.º 2
0
        static public CompletionInfo[] GetCompletions(string input)
        {
            var result = new CompletionInfo[] {};

            foreach (var plugin in completionPlugins)
            {
                var completions = plugin.GetCompletions(input);
                if (completions != null && completions.Length > 0)
                {
                    result = result.Concat(completions).ToArray();
                }
            }

            return(result.OrderBy(x => x.code).ToArray());
        }