core

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityRef

type EntityRef struct {
	Pkg  string `json:"pkg,omitempty"`
	Name string `json:"name,omitempty"`
	Meta Meta   `json:"meta,omitempty"`
}

EntityRef is a reference to an entity in the source code

func (EntityRef) String

func (e EntityRef) String() string

type Location added in v0.29.0

type Location struct {
	ModRef   ModuleRef `json:"module,omitempty"`
	Package  string    `json:"package,omitempty"`
	Filename string    `json:"filename,omitempty"`
}

func (Location) String added in v0.29.0

func (l Location) String() string

type Meta

type Meta struct {
	Text     string   `json:"text,omitempty"`
	Start    Position `json:"start,omitempty"`
	Stop     Position `json:"stop,omitempty"`
	Location Location `json:"location,omitempty"` // Location must always be present, even for virtual nodes inserted after resugaring, because irgen relies on it.
}

Meta contains meta information about the source code

type ModuleRef added in v0.29.0

type ModuleRef struct {
	Path    string `json:"path,omitempty"`
	Version string `json:"version,omitempty"`
}

func (ModuleRef) String added in v0.29.0

func (m ModuleRef) String() string

type Position

type Position struct {
	Line   int `json:"line,omitempty"`
	Column int `json:"column,omitempty"`
}

Position contains line and column numbers

func (Position) String

func (p Position) String() string

Jump to

Keyboard shortcuts

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