selfhost

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Severity string `json:"severity"`
	Message  string `json:"message"`
	Span     Span   `json:"span"`
}

type Position

type Position struct {
	Offset int `json:"offset"`
	Line   int `json:"line"`
	Column int `json:"column"`
}

Target-independent compiler values are the first self-hosted boundary. They deliberately contain no Go-native syntax.

type Span

type Span struct {
	Start  Position `json:"start"`
	Finish Position `json:"finish"`
}

type Token

type Token struct {
	Kind   string `json:"kind"`
	Lexeme string `json:"lexeme"`
	Span   Span   `json:"span"`
}

type TypeRef

type TypeRef struct {
	Name      string    `json:"name"`
	Arguments []TypeRef `json:"arguments"`
	Nullable  bool      `json:"nullable"`
	Array     bool      `json:"array"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL