setNext method

  1. @override
Token setNext(
  1. Token token

Set the next token in the token stream to the given token. This has the side-effect of setting this token to be the previous token for the given token. Return the token that was passed in.


Token setNext(Token token) {
  next = token;
  token.previous = this;
  token.beforeSynthetic = this;
  return token;