private void PushToAutoCompletion(CompletionItem item, ParsedBaseItem parsedItem) { item.FromParser = true; item.ParsedBaseItem = parsedItem; item.Ranking = AutoCompletion.FindRankingOfParsedItem(item.DisplayText); ParsedCompletionItemsList.Add(item); }
private void PushToAutoCompletion(TextCompletionItem item, Token origin) { item.DisplayText = origin.Value; item.FromParser = true; item.ParsedBaseItem = new ParsedWord(origin.Value, origin) { FilePath = FilePath, Scope = _rootScope }; item.Ranking = AutoCompletion.FindRankingOfParsedItem(item.DisplayText); ParsedCompletionItemsList.Add(item); }