Example #1
0
 /// <summary>
 /// Adds a new operand text span
 /// </summary>
 public void AddOperand(ITerminalNode node)
 {
     if (OperandSpans == null)
     {
         OperandSpans = new List <TextSpan>();
     }
     OperandSpans.Add(new TextSpan(node.Symbol.StartIndex, node.Symbol.StopIndex + 1));
 }
Example #2
0
 /// <summary>
 /// Adds a new operand text span
 /// </summary>
 public void AddOperand(ParserRuleContext context)
 {
     if (OperandSpans == null)
     {
         OperandSpans = new List <TextSpan>();
     }
     OperandSpans.Add(new TextSpan(context.Start.StartIndex, context.Stop.StopIndex + 1));
 }