zed

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any interface {
	// contains filtered or unexported methods
}

type Array

type Array struct {
	Kind     string  `json:"kind" unpack:""`
	Elements []Value `json:"elements"`
}

type CastValue

type CastValue struct {
	Kind string `json:"kind" unpack:""`
	Of   Value  `json:"of"`
	Type Type   `json:"type"`
}

type DefValue

type DefValue struct {
	Kind     string `json:"kind" unpack:""`
	Of       Any    `json:"of"`
	TypeName string `json:"type_name"`
}

type Entry

type Entry struct {
	Key   Value `json:"key"`
	Value Value `json:"value"`
}

type Enum

type Enum struct {
	Kind string `json:"kind" unpack:""`
	Name string `json:"name"`
}

type Error added in v1.0.0

type Error struct {
	Kind  string `json:"kind" unpack:""`
	Value Value  `json:"value"`
}

type Field

type Field struct {
	Name  string `json:"name"`
	Value Value  `json:"value"`
}

type ImpliedValue

type ImpliedValue struct {
	Kind string `json:"kind" unpack:""`
	Of   Any    `json:"of"`
}

type Map

type Map struct {
	Kind    string  `json:"kind" unpack:""`
	Entries []Entry `json:"entries"`
}

type Node added in v1.16.0

type Node interface {
	Pos() int
	End() int
}

type Primitive

type Primitive struct {
	Kind    string `json:"kind" unpack:""`
	Type    string `json:"type"`
	Text    string `json:"text"`
	TextPos int    `json:"text_pos"`
}

func (*Primitive) End added in v1.16.0

func (x *Primitive) End() int

func (*Primitive) ExprAST

func (*Primitive) ExprAST()

func (*Primitive) ExprDAG

func (*Primitive) ExprDAG()

func (*Primitive) Pos added in v1.16.0

func (x *Primitive) Pos() int

type Record

type Record struct {
	Kind   string  `json:"kind" unpack:""`
	Fields []Field `json:"fields"`
}

type Set

type Set struct {
	Kind     string  `json:"kind" unpack:""`
	Elements []Value `json:"elements"`
}

type Type

type Type interface {
	Node
	// contains filtered or unexported methods
}

type TypeArray

type TypeArray struct {
	Kind   string `json:"kind" unpack:""`
	Lbrack int    `json:"lbrack"`
	Type   Type   `json:"type"`
	Rbrack int    `json:"rbrack"`
}

func (*TypeArray) End added in v1.16.0

func (x *TypeArray) End() int

func (*TypeArray) Pos added in v1.16.0

func (x *TypeArray) Pos() int

type TypeDef

type TypeDef struct {
	Kind    string `json:"kind" unpack:""`
	Name    string `json:"name"`
	NamePos int    `json:"name_pos"`
	Type    Type   `json:"type"`
}

func (*TypeDef) End added in v1.16.0

func (x *TypeDef) End() int

func (*TypeDef) Pos added in v1.16.0

func (x *TypeDef) Pos() int

type TypeEnum

type TypeEnum struct {
	Kind    string   `json:"kind" unpack:""`
	Symbols []string `json:"symbols"`
}

func (*TypeEnum) End added in v1.16.0

func (x *TypeEnum) End() int

func (*TypeEnum) Pos added in v1.16.0

func (x *TypeEnum) Pos() int

type TypeError added in v1.0.0

type TypeError struct {
	Kind       string `json:"kind" unpack:""`
	KeywordPos int    `json:"keyword_pos"`
	Type       Type   `json:"type"`
	Rparen     int    `json:"rparen"`
}

func (*TypeError) End added in v1.16.0

func (x *TypeError) End() int

func (*TypeError) Pos added in v1.16.0

func (x *TypeError) Pos() int

type TypeField

type TypeField struct {
	Name string `json:"name"`
	Type Type   `json:"type"`
}

type TypeMap

type TypeMap struct {
	Kind    string `json:"kind" unpack:""`
	Lpipe   int    `json:"lpipe"`
	KeyType Type   `json:"key_type"`
	ValType Type   `json:"val_type"`
	Rpipe   int    `json:"rpipe"`
}

func (*TypeMap) End added in v1.16.0

func (x *TypeMap) End() int

func (*TypeMap) Pos added in v1.16.0

func (x *TypeMap) Pos() int

type TypeName

type TypeName struct {
	Kind    string `json:"kind" unpack:""`
	Name    string `json:"name"`
	NamePos int    `json:"name_pos"`
}

func (*TypeName) End added in v1.16.0

func (x *TypeName) End() int

func (*TypeName) Pos added in v1.16.0

func (x *TypeName) Pos() int

type TypeNull

type TypeNull struct {
	Kind       string `json:"kind" unpack:""`
	KeywordPos int    `json:"pos"`
}

func (*TypeNull) End added in v1.16.0

func (x *TypeNull) End() int

func (*TypeNull) Pos added in v1.16.0

func (x *TypeNull) Pos() int

type TypePrimitive

type TypePrimitive struct {
	Kind    string `json:"kind" unpack:""`
	Name    string `json:"name"`
	NamePos int    `json:"name_pos"`
}

func (*TypePrimitive) End added in v1.16.0

func (x *TypePrimitive) End() int

func (*TypePrimitive) Pos added in v1.16.0

func (x *TypePrimitive) Pos() int

type TypeRecord

type TypeRecord struct {
	Kind   string      `json:"kind" unpack:""`
	Lbrace int         `json:"lbrace"`
	Fields []TypeField `json:"fields"`
	Rbrace int         `json:"rbrace"`
}

func (*TypeRecord) End added in v1.16.0

func (x *TypeRecord) End() int

func (*TypeRecord) Pos added in v1.16.0

func (x *TypeRecord) Pos() int

type TypeSet

type TypeSet struct {
	Kind  string `json:"kind" unpack:""`
	Lpipe int    `json:"lpipe"`
	Type  Type   `json:"type"`
	Rpipe int    `json:"rpipe"`
}

func (*TypeSet) End added in v1.16.0

func (x *TypeSet) End() int

func (*TypeSet) Pos added in v1.16.0

func (x *TypeSet) Pos() int

type TypeUnion

type TypeUnion struct {
	Kind   string `json:"kind" unpack:""`
	Lparen int    `json:"lparen"`
	Types  []Type `json:"types"`
	Rparen int    `json:"rparen"`
}

func (*TypeUnion) End added in v1.16.0

func (x *TypeUnion) End() int

func (*TypeUnion) Pos added in v1.16.0

func (x *TypeUnion) Pos() int

type TypeValue

type TypeValue struct {
	Kind   string `json:"kind" unpack:""`
	Lbrack int    `json:"lbrack"`
	Value  Type   `json:"value"`
	Rbrack int    `json:"rbrack"`
}

func (*TypeValue) End added in v1.16.0

func (x *TypeValue) End() int

func (*TypeValue) ExprAST

func (*TypeValue) ExprAST()

func (*TypeValue) ExprDAG

func (*TypeValue) ExprDAG()

func (*TypeValue) Pos added in v1.16.0

func (x *TypeValue) Pos() int

type Value

type Value interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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