Skip to main content

Crate only_syntax

Crate only_syntax 

Source

Structs§

BootstrapHeader
DependencyClauseNode
DiagnosticCode
DirectiveNode
Typed directive CST wrapper.
DocCommentNode
Typed doc-comment CST wrapper.
DocumentNode
Typed document CST wrapper.
GuardClauseNode
HeaderTerminatorNode
LexToken
NamespaceNode
Typed namespace CST wrapper.
ParameterListNode
ParameterNode
ParseResult
ShellClauseNode
ShellSelection
SyntaxSnapshot
Immutable syntax snapshot shared by semantic analysis and editor hosts.
TaskCommandBlockNode
Consecutive block lines assembled into one shell input.
TaskCommandNode
One ordinary command line and its source range.
TaskDependencyRef
One dependency reference parsed from a task header.
TaskGuardRef
TaskHeaderInfo
Structured task header data parsed from the CST token stream.
TaskHeaderNode
TaskNode
Typed task CST wrapper.
TaskParamRef
One parameter declaration parsed from a task header.
TaskShellRef
VersionRequirement

Enums§

DirectiveKind
GuardKind
ShellKind
ShellOperator
SyntaxKind
TaskStepNode
One executable step read from a task body.

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.
format_range
Formats the single top-level declaration touched by a source range.
format_source
Formats an Onlyfile using the built-in deterministic style.
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