package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Aug 19, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
const (
EOF Kind = "eof"
Identifier Kind = "identifier"
Number Kind = "number"
String Kind = "string"
JSXLiteral Kind = "jsx_literal"
NativeLiteral Kind = "native_literal"
Newline Kind = "newline"
Operator Kind = "operator"
Punct Kind = "punctuation"
)
type Position struct {
Offset int
Line int
Column int
}
Position is a one-based source location with a zero-based byte offset.
Span is a half-open range in the original source.
Token retains its exact spelling so formatters and source-to-source backends
never need to reconstruct comments or literals.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.