Package-level declarations

Types

Link copied to clipboard
data class InputEdit(val startByte: UInt, val oldEndByte: UInt, val newEndByte: UInt, val startPoint: Point, val oldEndPoint: Point, val newEndPoint: Point)

An edit to a text document.

Link copied to clipboard
actual class Language constructor(language: Any)

A class that defines how to parse a particular language.

expect class Language constructor(language: Any)

A class that defines how to parse a particular language.

actual class Language constructor(language: Any)

A class that defines how to parse a particular language.

actual class Language constructor(language: Any)

A class that defines how to parse a particular language.

Link copied to clipboard
typealias LogFunction = (type: Parser.LogType, message: String) -> Unit

A function that logs parsing results.

Link copied to clipboard

A class that is used to look up valid symbols in a specific parse state.

A class that is used to look up valid symbols in a specific parse state.

A class that is used to look up valid symbols in a specific parse state.

A class that is used to look up valid symbols in a specific parse state.

Link copied to clipboard
actual class Node

A single node within a syntax tree.

expect class Node

A single node within a syntax tree.

actual class Node

A single node within a syntax tree.

actual class Node

A single node within a syntax tree.

Link copied to clipboard
typealias ParseCallback = (byte: UInt, point: Point) -> CharSequence?

A function to retrieve a chunk of text at a given byte offset and point.

Link copied to clipboard
actual class Parser : AutoCloseable

A class that is used to produce a syntax tree from source code.

expect class Parser

A class that is used to produce a syntax tree from source code.

actual class Parser

A class that is used to produce a syntax tree from source code.

actual class Parser

A class that is used to produce a syntax tree from source code.

Link copied to clipboard
data class Point(val row: UInt, val column: UInt) : Comparable<Point>

A position in a text document in terms of rows and columns.

Link copied to clipboard
actual class Query constructor(language: Language, source: String) : AutoCloseable

A class that represents a set of patterns which match nodes in a syntax tree.

expect class Query constructor(language: Language, source: String)

A class that represents a set of patterns which match nodes in a syntax tree.

actual class Query constructor(language: Language, source: String)

A class that represents a set of patterns which match nodes in a syntax tree.

actual class Query constructor(language: Language, source: String)

A class that represents a set of patterns which match nodes in a syntax tree.

Link copied to clipboard
data class QueryCapture

A Node that was captured with a certain capture name.

Link copied to clipboard

Any error that occurred while instantiating a Query.

Link copied to clipboard

A match that corresponds to a certain pattern in the query.

Link copied to clipboard
sealed class QueryPredicate

A query predicate that associates conditions or arbitrary metadata with a pattern.

Link copied to clipboard
sealed interface QueryPredicateArg

An argument to a QueryPredicate.

Link copied to clipboard
data class Range constructor(val startPoint: Point, val endPoint: Point, val startByte: UInt, val endByte: UInt)

A range of positions in a text document, both in terms of bytes and of row-column points.

Link copied to clipboard
actual class Tree : AutoCloseable

A class that represents a syntax tree.

expect class Tree

A class that represents a syntax tree.

actual class Tree

A class that represents a syntax tree.

actual class Tree

A class that represents a syntax tree.

Link copied to clipboard
actual class TreeCursor : AutoCloseable

A class that can be used to efficiently walk a syntax tree.

expect class TreeCursor

A class that can be used to efficiently walk a syntax tree.

actual class TreeCursor

A class that can be used to efficiently walk a syntax tree.

actual class TreeCursor

A class that can be used to efficiently walk a syntax tree.

Properties

Link copied to clipboard

The latest ABI version that is supported by the current version of the library.

Link copied to clipboard

The earliest ABI version that is supported by the current version of the library.