Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents an application of a function to arguments.
type Arguments ¶
type Arguments struct {
// contains filtered or unexported fields
}
Arguments represents arguments passed to a function in IR.
func NewArguments ¶
func NewArguments(ps []PositionalArgument, ks []KeywordArgument) Arguments
NewArguments creates arguments from positional and keyword arguments and expanded dictionaries.
type Case ¶
type Case struct {
// contains filtered or unexported fields
}
Case represents a case of a pattern and a corresponding value in a switch expression.
type KeywordArgument ¶
type KeywordArgument struct {
// contains filtered or unexported fields
}
KeywordArgument represents a keyword argument passed to a function.
func NewKeywordArgument ¶
func NewKeywordArgument(n string, v interface{}) KeywordArgument
NewKeywordArgument creates a keyword argument from a bound name and its value.
type PositionalArgument ¶
type PositionalArgument struct {
// contains filtered or unexported fields
}
PositionalArgument represents a positional argument passed to a function. It can be a list value and expanded into multiple arguments.
func NewPositionalArgument ¶
func NewPositionalArgument(v interface{}, expanded bool) PositionalArgument
NewPositionalArgument creates a positional argument.
Click to show internal directories.
Click to hide internal directories.