Add expression functions with context boundaries
This commit is contained in:
parent
5085ae51aa
commit
773c34f3f4
18 changed files with 391 additions and 52 deletions
|
|
@ -60,20 +60,24 @@ type FieldDecl struct {
|
|||
}
|
||||
|
||||
type FunctionSignature struct {
|
||||
Name string
|
||||
TypeParams []string
|
||||
Params []Param
|
||||
ReturnType string
|
||||
ReturnRef TypeRef
|
||||
Name string
|
||||
TypeParams []string
|
||||
Params []Param
|
||||
ReturnType string
|
||||
ReturnRef TypeRef
|
||||
ReturnExplicit bool
|
||||
}
|
||||
|
||||
type FunctionDecl struct {
|
||||
Name string
|
||||
TypeParams []string
|
||||
Params []Param
|
||||
ReturnType string
|
||||
ReturnRef TypeRef
|
||||
Body []Stmt
|
||||
Name string
|
||||
TypeParams []string
|
||||
Params []Param
|
||||
ReturnType string
|
||||
ReturnRef TypeRef
|
||||
ReturnExplicit bool
|
||||
Body []Stmt
|
||||
ExpressionBody Expr
|
||||
InferReturn bool
|
||||
}
|
||||
|
||||
type Param struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue