setNextWithoutSettingPrevious method Null safety

  1. @override
Token? setNextWithoutSettingPrevious(
  1. Token? token

Set the next token in the token stream to the given token without changing which token is the previous token for the given token. Return the token that was passed in.


Token? setNextWithoutSettingPrevious(Token? token) {
  next = token;
  return token;