public override IEnumerable <CompletionInfo> GetCompletions(IDjangoCompletionContext context, int position) { if (InStart == -1 || position < InStart) { return(new CompletionInfo[0]); } else if (Variable != null && position > InStart) { var res = Variable.GetCompletions(context, position); if (position > ArgsEnd && ReversedStart == -1 && Variable.Expression != null) { return(System.Linq.Enumerable.Concat( res, new[] { new CompletionInfo("reversed", StandardGlyphGroup.GlyphKeyword) } )); } return(res); } return(base.GetCompletions(context, position)); }
public override IEnumerable <CompletionInfo> GetCompletions(IDjangoCompletionContext context, int position) { return(_variable.GetCompletions(context, position + 4)); }