Scanner

sealed external interface Scanner(source)

Functions

Link copied to clipboard
abstract fun getStartPos(): Double
Link copied to clipboard
abstract fun getText(): String
Link copied to clipboard
abstract fun getTextPos(): Double
Link copied to clipboard
abstract fun getToken(): SyntaxKind
Link copied to clipboard
abstract fun getTokenEnd(): Double
Link copied to clipboard
abstract fun getTokenFullStart(): Double
Link copied to clipboard
abstract fun getTokenPos(): Double
Link copied to clipboard
abstract fun getTokenStart(): Double
Link copied to clipboard
abstract fun getTokenText(): String
Link copied to clipboard
abstract fun getTokenValue(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun hasUnicodeEscape(): Boolean
Link copied to clipboard
abstract fun isIdentifier(): Boolean
Link copied to clipboard
abstract fun isReservedWord(): Boolean
Link copied to clipboard
abstract fun isUnterminated(): Boolean
Link copied to clipboard
abstract fun <T> lookAhead(callback: () -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun reScanHashToken(): SyntaxKind
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun reScanJsxToken(allowMultilineJsxText: Boolean = definedExternally): JsxTokenSyntaxKind
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun reScanTemplateToken(isTaggedTemplate: Boolean): SyntaxKind
Link copied to clipboard
abstract fun resetTokenState(pos: Double)
Link copied to clipboard
abstract fun scan(): SyntaxKind
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun <T> scanRange(start: Double, length: Double, callback: () -> T): T
Link copied to clipboard
Link copied to clipboard
abstract fun setLanguageVariant(variant: LanguageVariant)
Link copied to clipboard
abstract fun setOnError(onError: ErrorCallback?)
Link copied to clipboard
abstract fun setScriptKind(scriptKind: ScriptKind)
Link copied to clipboard
abstract fun setScriptTarget(scriptTarget: ScriptTarget)
Link copied to clipboard
abstract fun setText(text: String?, start: Double = definedExternally, length: Double = definedExternally)
Link copied to clipboard
abstract fun setTextPos(textPos: Double)
Link copied to clipboard
abstract fun <T> tryScan(callback: () -> T): T