Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Def ¶
type Def interface { String() string ShortType() string // ArgType indicates argument type ArgType() (types.FuncDefArgType, error) Optional() bool // TODO RetType indicates return type // This should be replaced with TypeDerivation method. Currently it just returns concrete type RetType() (types.Type, error) }
type Expression ¶
type Expression interface {
String() string
}
type IntegerLiteral ¶
type IntegerLiteral struct {
Value int32 `parser:"@Int"`
}
func (*IntegerLiteral) String ¶
func (l *IntegerLiteral) String() string
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseBytes ¶
func (p *Parser) ParseBytes(expr []byte) (*TypeExpression, error)
func (*Parser) ParseString ¶
func (p *Parser) ParseString(str string) (*TypeExpression, error)
type TypeExpression ¶
type TypeExpression struct {
Expr Expression `parser:"@@"`
}
func (TypeExpression) MarshalYAML ¶
func (t TypeExpression) MarshalYAML() (interface{}, error)
func (TypeExpression) String ¶
func (t TypeExpression) String() string
func (TypeExpression) Type ¶ added in v1.0.0
func (t TypeExpression) Type() (types.FuncDefArgType, error)
func (*TypeExpression) UnmarshalYAML ¶
func (t *TypeExpression) UnmarshalYAML(fn func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.