program

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_program_error_proto protoreflect.FileDescriptor
View Source
var File_program_program_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CallFrame

type CallFrame struct {
	Name string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Loc  *Location `protobuf:"bytes,2,opt,name=loc,proto3" json:"loc,omitempty"`
	// contains filtered or unexported fields
}

func (*CallFrame) Descriptor deprecated

func (*CallFrame) Descriptor() ([]byte, []int)

Deprecated: Use CallFrame.ProtoReflect.Descriptor instead.

func (*CallFrame) GetLoc

func (x *CallFrame) GetLoc() *Location

func (*CallFrame) GetName

func (x *CallFrame) GetName() string

func (*CallFrame) ProtoMessage

func (*CallFrame) ProtoMessage()

func (*CallFrame) ProtoReflect

func (x *CallFrame) ProtoReflect() protoreflect.Message

func (*CallFrame) Reset

func (x *CallFrame) Reset()

func (*CallFrame) String

func (x *CallFrame) String() string

func (*CallFrame) Validate

func (m *CallFrame) Validate() error

Validate checks the field values on CallFrame with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CallFrameValidationError

type CallFrameValidationError struct {
	// contains filtered or unexported fields
}

CallFrameValidationError is the validation error returned by CallFrame.Validate if the designated constraints aren't met.

func (CallFrameValidationError) Cause

func (e CallFrameValidationError) Cause() error

Cause function returns cause value.

func (CallFrameValidationError) Error

func (e CallFrameValidationError) Error() string

Error satisfies the builtin error interface

func (CallFrameValidationError) ErrorName

func (e CallFrameValidationError) ErrorName() string

ErrorName returns error name.

func (CallFrameValidationError) Field

func (e CallFrameValidationError) Field() string

Field function returns field value.

func (CallFrameValidationError) Key

Key function returns key value.

func (CallFrameValidationError) Reason

func (e CallFrameValidationError) Reason() string

Reason function returns reason value.

type Error

type Error struct {
	Msg       string       `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Type      string       `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Callstack []*CallFrame `protobuf:"bytes,3,rep,name=callstack,proto3" json:"callstack,omitempty"`
	Next      *Error       `protobuf:"bytes,4,opt,name=next,proto3" json:"next,omitempty"` // next error if multiple errors.
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCallstack

func (x *Error) GetCallstack() []*CallFrame

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) GetNext

func (x *Error) GetNext() *Error

func (*Error) GetType

func (x *Error) GetType() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

func (*Error) Validate

func (m *Error) Validate() error

Validate checks the field values on Error with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ErrorValidationError

type ErrorValidationError struct {
	// contains filtered or unexported fields
}

ErrorValidationError is the validation error returned by Error.Validate if the designated constraints aren't met.

func (ErrorValidationError) Cause

func (e ErrorValidationError) Cause() error

Cause function returns cause value.

func (ErrorValidationError) Error

func (e ErrorValidationError) Error() string

Error satisfies the builtin error interface

func (ErrorValidationError) ErrorName

func (e ErrorValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorValidationError) Field

func (e ErrorValidationError) Field() string

Field function returns field value.

func (ErrorValidationError) Key

func (e ErrorValidationError) Key() bool

Key function returns key value.

func (ErrorValidationError) Reason

func (e ErrorValidationError) Reason() string

Reason function returns reason value.

type Location

type Location struct {
	Path   *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Line   int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetColumn

func (x *Location) GetColumn() int32

func (*Location) GetLine

func (x *Location) GetLine() int32

func (*Location) GetPath

func (x *Location) GetPath() *Path

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

func (*Location) Validate

func (m *Location) Validate() error

Validate checks the field values on Location with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LocationValidationError

type LocationValidationError struct {
	// contains filtered or unexported fields
}

LocationValidationError is the validation error returned by Location.Validate if the designated constraints aren't met.

func (LocationValidationError) Cause

func (e LocationValidationError) Cause() error

Cause function returns cause value.

func (LocationValidationError) Error

func (e LocationValidationError) Error() string

Error satisfies the builtin error interface

func (LocationValidationError) ErrorName

func (e LocationValidationError) ErrorName() string

ErrorName returns error name.

func (LocationValidationError) Field

func (e LocationValidationError) Field() string

Field function returns field value.

func (LocationValidationError) Key

func (e LocationValidationError) Key() bool

Key function returns key value.

func (LocationValidationError) Reason

func (e LocationValidationError) Reason() string

Reason function returns reason value.

type Module

type Module struct {
	Lang            string   `protobuf:"bytes,1,opt,name=lang,proto3" json:"lang,omitempty"` // starlark, lua, some-kind-of-yaml, etc...
	Predecls        []string `protobuf:"bytes,2,rep,name=predecls,proto3" json:"predecls,omitempty"`
	CompilerVersion string   `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
	SourcePath      *Path    `protobuf:"bytes,4,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"`
	CompiledCode    []byte   `protobuf:"bytes,5,opt,name=compiled_code,json=compiledCode,proto3" json:"compiled_code,omitempty"` // if empty, fetch from path.
	// contains filtered or unexported fields
}

func (*Module) Descriptor deprecated

func (*Module) Descriptor() ([]byte, []int)

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetCompiledCode

func (x *Module) GetCompiledCode() []byte

func (*Module) GetCompilerVersion

func (x *Module) GetCompilerVersion() string

func (*Module) GetLang

func (x *Module) GetLang() string

func (*Module) GetPredecls

func (x *Module) GetPredecls() []string

func (*Module) GetSourcePath

func (x *Module) GetSourcePath() *Path

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

func (x *Module) ProtoReflect() protoreflect.Message

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

func (*Module) Validate

func (m *Module) Validate() error

Validate checks the field values on Module with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ModuleValidationError

type ModuleValidationError struct {
	// contains filtered or unexported fields
}

ModuleValidationError is the validation error returned by Module.Validate if the designated constraints aren't met.

func (ModuleValidationError) Cause

func (e ModuleValidationError) Cause() error

Cause function returns cause value.

func (ModuleValidationError) Error

func (e ModuleValidationError) Error() string

Error satisfies the builtin error interface

func (ModuleValidationError) ErrorName

func (e ModuleValidationError) ErrorName() string

ErrorName returns error name.

func (ModuleValidationError) Field

func (e ModuleValidationError) Field() string

Field function returns field value.

func (ModuleValidationError) Key

func (e ModuleValidationError) Key() bool

Key function returns key value.

func (ModuleValidationError) Reason

func (e ModuleValidationError) Reason() string

Reason function returns reason value.

type Path

type Path struct {
	Scheme  string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
	Path    string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor deprecated

func (*Path) Descriptor() ([]byte, []int)

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetPath

func (x *Path) GetPath() string

func (*Path) GetScheme

func (x *Path) GetScheme() string

func (*Path) GetVersion

func (x *Path) GetVersion() string

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

func (x *Path) ProtoReflect() protoreflect.Message

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

func (*Path) Validate

func (m *Path) Validate() error

Validate checks the field values on Path with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PathValidationError

type PathValidationError struct {
	// contains filtered or unexported fields
}

PathValidationError is the validation error returned by Path.Validate if the designated constraints aren't met.

func (PathValidationError) Cause

func (e PathValidationError) Cause() error

Cause function returns cause value.

func (PathValidationError) Error

func (e PathValidationError) Error() string

Error satisfies the builtin error interface

func (PathValidationError) ErrorName

func (e PathValidationError) ErrorName() string

ErrorName returns error name.

func (PathValidationError) Field

func (e PathValidationError) Field() string

Field function returns field value.

func (PathValidationError) Key

func (e PathValidationError) Key() bool

Key function returns key value.

func (PathValidationError) Reason

func (e PathValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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