예제 #1
0
 public bool IsParametersSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(1));
 }
예제 #2
0
 public bool IsIfSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Any(v => v > 2));
 }
예제 #3
0
 public bool IsNameSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(0));
 }
예제 #4
0
 public bool IsPlayerOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(2));
 }
예제 #5
0
 public bool IsTeamOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(1));
 }
예제 #6
0
 public bool IsEventOptionSelected(Pos caretPos)
 {
     return(SubrangesSelected(caretPos).Contains(0));
 }
예제 #7
0
 public CompletionItem[] GetCompletion(Pos pos, bool immediate)
 {
     return(Scope?.GetCompletion(pos, immediate) ?? CompletionItems);
 }
예제 #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)));
 }