Documentation ¶
Index ¶
- func GOErrorFromProto(pb *pbprogram.Error) (error, error)
- func SprintCallStack(cs []*CallFrame) string
- type CallFrame
- type Error
- func ErrorFromGRPCError(err error) *Error
- func ErrorFromProto(pb *pbprogram.Error) (*Error, error)
- func ImportError(err error) *Error
- func MustErrorFromProto(pb *pbprogram.Error) *Error
- func MustNewError(msg, typ string, callstack []*CallFrame, next *Error) *Error
- func NewError(msg, typ string, callstack []*CallFrame, next *Error) (*Error, error)
- func NewErrors(errs []*Error) *Error
- func (e *Error) CallStack() []*CallFrame
- func (e *Error) Clone() *Error
- func (e *Error) Error() string
- func (e *Error) MarshalJSON() ([]byte, error)
- func (e *Error) Msg() string
- func (e *Error) Next() *Error
- func (e *Error) PB() *pbprogram.Error
- func (e *Error) ToError() (err error)
- func (e *Error) Type() string
- func (e *Error) UnmarshalJSON(bs []byte) error
- type Location
- type Module
- func (m *Module) Clone() *Module
- func (m *Module) CompiledCode() []byte
- func (m *Module) CompilerVersion() string
- func (m *Module) Lang() string
- func (m *Module) MarshalJSON() ([]byte, error)
- func (m *Module) PB() *pbprogram.Module
- func (m *Module) SetSourcePath(p *Path) *Module
- func (m *Module) SourcePath() *Path
- func (m *Module) UnmarshalJSON(bs []byte) error
- func (m *Module) Validate() error
- type Path
- func JoinPaths(root, path *Path) (*Path, error)
- func JoinWithParent(parent, child *Path) (*Path, error)
- func MustNewPath(scheme, path, version string) *Path
- func MustParsePathString(s string) *Path
- func MustPathFromProto(pb *pbprogram.Path) *Path
- func NewPath(scheme, path, version string) (*Path, error)
- func ParsePathString(s string) (*Path, error)
- func ParsePathStringOr(s string, or *Path) *Path
- func PathFromProto(pb *pbprogram.Path) (*Path, error)
- func (p *Path) Clone() *Path
- func (p *Path) Equal(o *Path) bool
- func (p *Path) Ext() string
- func (p *Path) IsInternal() bool
- func (p *Path) IsRelative() bool
- func (p *Path) MarshalJSON() ([]byte, error)
- func (p *Path) PB() *pbprogram.Path
- func (p *Path) Path() string
- func (p *Path) PathAndVersion() string
- func (p *Path) PluginID() (apiplugin.PluginID, bool)
- func (p *Path) Scheme() string
- func (p *Path) String() string
- func (p *Path) UnmarshalJSON(bs []byte) error
- func (p *Path) Version() string
- func (p *Path) WithVersion(v string) *Path
- type PathPB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SprintCallStack ¶
Types ¶
type CallFrame ¶
type CallFrame struct {
// contains filtered or unexported fields
}
func MustCallFrameFromProto ¶
func MustNewCallFrame ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func ErrorFromGRPCError ¶
func ImportError ¶
func MustErrorFromProto ¶
func (*Error) MarshalJSON ¶
func (*Error) UnmarshalJSON ¶
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func MustLocationFromProto ¶
func MustNewLocation ¶
func (*Location) MarshalJSON ¶
func (*Location) UnmarshalJSON ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func MustModuleFromProto ¶
func (*Module) CompiledCode ¶
func (*Module) CompilerVersion ¶
func (*Module) MarshalJSON ¶
func (*Module) SetSourcePath ¶
func (*Module) SourcePath ¶
func (*Module) UnmarshalJSON ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func JoinWithParent ¶ added in v0.6.6
func MustNewPath ¶ added in v0.6.0
func MustParsePathString ¶
func MustPathFromProto ¶
func ParsePathString ¶
func ParsePathStringOr ¶
func (*Path) IsInternal ¶
func (*Path) IsRelative ¶ added in v0.6.6
func (*Path) MarshalJSON ¶
func (*Path) PathAndVersion ¶
func (*Path) UnmarshalJSON ¶
func (*Path) WithVersion ¶
Click to show internal directories.
Click to hide internal directories.