mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Bump github.com/alicebob/miniredis/v2 from 2.21.0 to 2.34.0 Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.21.0 to 2.34.0. - [Release notes](https://github.com/alicebob/miniredis/releases) - [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md) - [Commits](https://github.com/alicebob/miniredis/compare/v2.21.0...v2.34.0) --- updated-dependencies: - dependency-name: github.com/alicebob/miniredis/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update serverless gomod --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: tempo-gh-bot[bot] <[email protected]>
108 lines
1.0 KiB
Go
108 lines
1.0 KiB
Go
package ast
|
|
|
|
type Stmt interface {
|
|
PositionHolder
|
|
stmtMarker()
|
|
}
|
|
|
|
type StmtBase struct {
|
|
Node
|
|
}
|
|
|
|
func (stmt *StmtBase) stmtMarker() {}
|
|
|
|
type AssignStmt struct {
|
|
StmtBase
|
|
|
|
Lhs []Expr
|
|
Rhs []Expr
|
|
}
|
|
|
|
type LocalAssignStmt struct {
|
|
StmtBase
|
|
|
|
Names []string
|
|
Exprs []Expr
|
|
}
|
|
|
|
type FuncCallStmt struct {
|
|
StmtBase
|
|
|
|
Expr Expr
|
|
}
|
|
|
|
type DoBlockStmt struct {
|
|
StmtBase
|
|
|
|
Stmts []Stmt
|
|
}
|
|
|
|
type WhileStmt struct {
|
|
StmtBase
|
|
|
|
Condition Expr
|
|
Stmts []Stmt
|
|
}
|
|
|
|
type RepeatStmt struct {
|
|
StmtBase
|
|
|
|
Condition Expr
|
|
Stmts []Stmt
|
|
}
|
|
|
|
type IfStmt struct {
|
|
StmtBase
|
|
|
|
Condition Expr
|
|
Then []Stmt
|
|
Else []Stmt
|
|
}
|
|
|
|
type NumberForStmt struct {
|
|
StmtBase
|
|
|
|
Name string
|
|
Init Expr
|
|
Limit Expr
|
|
Step Expr
|
|
Stmts []Stmt
|
|
}
|
|
|
|
type GenericForStmt struct {
|
|
StmtBase
|
|
|
|
Names []string
|
|
Exprs []Expr
|
|
Stmts []Stmt
|
|
}
|
|
|
|
type FuncDefStmt struct {
|
|
StmtBase
|
|
|
|
Name *FuncName
|
|
Func *FunctionExpr
|
|
}
|
|
|
|
type ReturnStmt struct {
|
|
StmtBase
|
|
|
|
Exprs []Expr
|
|
}
|
|
|
|
type BreakStmt struct {
|
|
StmtBase
|
|
}
|
|
|
|
type LabelStmt struct {
|
|
StmtBase
|
|
|
|
Name string
|
|
}
|
|
|
|
type GotoStmt struct {
|
|
StmtBase
|
|
|
|
Label string
|
|
}
|