示例#1
0
 private void PushToAutoCompletion(CompletionItem item, ParsedBaseItem parsedItem)
 {
     item.FromParser     = true;
     item.ParsedBaseItem = parsedItem;
     item.Ranking        = AutoCompletion.FindRankingOfParsedItem(item.DisplayText);
     ParsedCompletionItemsList.Add(item);
 }
示例#2
0
 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);
 }