Skip to main content

Crate only_syntax

Crate only_syntax 

Source

Structs§

BootstrapHeader
DiagnosticCode
DirectiveNode
Typed directive CST wrapper.
DocCommentNode
Typed doc-comment CST wrapper.
DocumentNode
Typed document CST wrapper.
LexToken
NamespaceNode
Typed namespace CST wrapper.
ParseResult
SyntaxSnapshot
Immutable syntax snapshot shared by semantic analysis and editor hosts.
TaskDependencyRef
One dependency reference parsed from a task header.
TaskHeaderInfo
Structured task header data parsed from the CST token stream.
TaskNode
Typed task CST wrapper.
VersionRequirement

Enums§

SyntaxKind

Traits§

ParseResultExt
Extension helpers for parse results used by hosts and tests.

Functions§

bootstrap
Runs the header scan and compatibility check without parsing the full file.
check_version_compatibility
Checks the optional Onlyfile version declaration against a runner SemVer.
lex
Lexes source text into tokens while preserving trivia.
parse
Parses Onlyfile text into a shallow CST with line-level recovery.
parse_version_requirement
Parses the two-segment version value used by a !version directive.
scan_bootstrap_header
Scans the optional version declaration at the start of an Onlyfile.
snapshot
Lexes and parses source text into an immutable syntax snapshot.

Type Aliases§

SyntaxNode
SyntaxToken