Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidType = errors.New("invalid type") ErrCannotUseType = errors.New("cannot use type") ErrNotComparable = errors.New("expressions are not comparable") ErrNotOperable = errors.New("expressions are not operable") ErrNotCallable = errors.New("expression is not callable") ErrNotIndexable = errors.New("expression is not indexable") ErrInvalidIndex = errors.New("invalid index") ErrTooManyArguments = errors.New("too many arguments in call") ErrTooFewArguments = errors.New("too few arguments in call") ErrNonBoolPredicate = errors.New("non bool predicate") ErrMultipleTypes = errors.New("both sides of this expression must be the same type") ErrBuiltinOverride = errors.New("is a builtin type you cannot override") ErrInvalidDeclName = errors.New("invalid declaration name") ErrDuplicateDefinition = errors.New("duplicate definition") ErrInvalidTargetTag = errors.New("invalid target tag") ErrUndeclaredTargetTag = errors.New("undeclared target tag") ErrMissingTargetField = errors.New("missing target field") ErrUnresolvedImportReference = errors.New("unresolved import reference") ErrUnresolvedTypeReference = errors.New("unresolved type reference") ErrUnresolvedFnReference = errors.New("unresolved fn reference") ErrUnresolvedConstReference = errors.New("unresolved const reference") )
Functions ¶
func NewErrorSet ¶
Types ¶
type CompileError ¶
type CompileError struct{}
type ErrorSet ¶
type ErrorSet struct {
Errors []error
// contains filtered or unexported fields
}
type ReferenceError ¶
func (*ReferenceError) Error ¶
func (e *ReferenceError) Error() string
func (*ReferenceError) Name ¶
func (e *ReferenceError) Name() string
func (*ReferenceError) Position ¶
func (e *ReferenceError) Position() (start token.Position, end token.Position)
func (*ReferenceError) Unwrap ¶
func (e *ReferenceError) Unwrap() error
type SyntaxError ¶
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
func (*SyntaxError) Name ¶
func (e *SyntaxError) Name() string
func (*SyntaxError) Unwrap ¶
func (e *SyntaxError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.