mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-10 05:52:24 +00:00
Project structure refactor:
- Change package name general_server to gateway - Changing the structure of directories and packages - Adding vendor to the project
This commit is contained in:
107
vendor/github.com/yuin/gopher-lua/ast/stmt.go
generated
vendored
Normal file
107
vendor/github.com/yuin/gopher-lua/ast/stmt.go
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user