scala.meta.internal.parsers.TokenIterator.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parsers_2.12 Show documentation
Show all versions of parsers_2.12 Show documentation
Scalameta APIs for parsing and their baseline implementation
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