protected TokenPosition(TokenPosition other){
  Objects.requireNonNull(other);
  this.line=other.line;
  this.column=other.column;
  this.offset=other.offset;
}

protected TokenPosition ( TokenPosition other ) { Objects . requireNonNull ( other ) ; this . line = other . line ; this . column = other . column ; this . offset = other . offset ; }
creates a new instance with the values of the given token position .
