All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.meta.internal.parsers.TokenIterator.scala Maven / Gradle / Ivy

There is a newer version: 4.12.0
Show newest version
package scala.meta.internal.parsers

import scala.meta.tokens.Token

// NOTE: public methods of TokenIterator return scannerTokens-based positions
trait TokenIterator {
  def hasCurr: Boolean
  def next(): Unit
  def fork: TokenIterator

  def prevToken: Token
  def prevIndex: Int
  def previousIndentation: Int

  def currToken: Token
  def currIndex: Int
  def indenting: Boolean

  def peekToken: Token
  def peekIndex: Int
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy