structured

package
v0.0.0-...-21e7071 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enumerated

type Enumerated struct {
	List []*ast.Identifier
}

Enumerated denoted an enumerated type

func (*Enumerated) Name

func (e *Enumerated) Name() string

Name ...

func (*Enumerated) Ord

func (e *Enumerated) Ord()

func (*Enumerated) String

func (e *Enumerated) String() string

func (*Enumerated) Underlying

func (e *Enumerated) Underlying() types.Type

type Field

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

Field ...

type File

type File struct {
	TokenKind     token.Kind
	ComponentType types.Type
}

File models a file data type

func (*File) Name

func (f *File) Name() string

Name ...

func (*File) String

func (f *File) String() string

func (*File) Underlying

func (f *File) Underlying() types.Type

type FixedPart

type FixedPart struct {
	Entry []*RecordSection
}

FixedPart ...

type Pointer

type Pointer struct {
	TokenKind  token.Kind
	DomainType types.Type
}

Pointer models a pointer data type

func NewPointer

func NewPointer() *Pointer

func (*Pointer) Name

func (p *Pointer) Name() string

Name ...

func (*Pointer) String

func (p *Pointer) String() string

func (*Pointer) Underlying

func (p *Pointer) Underlying() types.Type

type Record

type Record struct {
	TokenKind token.Kind
	FieldList []Field
}

Record denoted a record type

func (*Record) Name

func (r *Record) Name() string

Name ...

func (*Record) String

func (r *Record) String() string

func (*Record) Underlying

func (r *Record) Underlying() types.Type

type RecordSection

type RecordSection struct {
	List []*ast.Identifier
	Type types.Type
}

RecordSection ...

type SubRange

type SubRange struct {
	Range    *ast.Range
	HostType types.Type
}

SubRange ...

func (*SubRange) Name

func (s *SubRange) Name() string

Name ...

func (*SubRange) Ord

func (s *SubRange) Ord()

func (*SubRange) String

func (s *SubRange) String() string

func (*SubRange) Underlying

func (s *SubRange) Underlying() types.Type

type Variant

type Variant struct {
	CaseConstList []ast.Expression
	FieldList     []Field
}

Variant ...

type VariantPart

type VariantPart struct {
	Token           token.Token
	VariantSelector *VariantSelector
	Variants        []*Variant
}

VariantPart ...

type VariantSelector

type VariantSelector struct {
	TagField *ast.Identifier
	TagType  types.Type
}

VariantSelector ...

Jump to

Keyboard shortcuts

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