public bool IsParametersSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(1));
 }
 public bool IsIfSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Any(v => v > 2));
 }
 public bool IsNameSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(0));
 }
 public bool IsPlayerOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(2));
 }
 public bool IsTeamOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(1));
 }
 public bool IsEventOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(0));
 }
Example #7
0
 public CompletionItem[] GetCompletion(Pos pos, bool immediate)
 {
     return(Scope?.GetCompletion(pos, immediate) ?? CompletionItems);
 }
Example #8
0
 private bool WasScopedAtPosition(IScopeable element, Pos pos, Scope getter)
 {
     return((pos == null || element.DefinedAt == null || element.WholeContext || element.DefinedAt.range.start <= pos) && (getter == null || getter.AccessorMatches(element)));
 }