setSpan method

void setSpan(
  1. Token first,
  2. Token last
)

Sets the AstNode.first and AstNode.last property in one go.

Implementation

void setSpan(Token first, Token last) {
  this.first = first;
  this.last = last;
}