Documentation
¶
Index ¶
- Constants
- func IsBindList(args []CallArgument) bool
- type ArrayComprehension
- type ArrayItem
- type BinOp
- type Block
- type BlockType
- type CallArgument
- type Case
- type Expr
- type ExprArray
- type ExprAssertError
- type ExprAssign
- type ExprBigNum
- type ExprBitAnd
- type ExprBitNot
- type ExprBitOr
- type ExprBitShl
- type ExprBitShr
- type ExprBitXor
- type ExprBool
- type ExprCall
- type ExprCompare
- type ExprDiv
- type ExprEqual
- type ExprFallback
- type ExprFloat
- type ExprFunc
- type ExprGreaterEqual
- type ExprGreaterThen
- type ExprIdentifier
- type ExprInContainer
- type ExprInRange
- type ExprIncDec
- type ExprInt
- type ExprIsType
- type ExprLessEqual
- type ExprLessThen
- type ExprLocalAssign
- type ExprLocalNewAssign
- type ExprLogicAnd
- type ExprLogicNot
- type ExprLogicOr
- type ExprMinus
- type ExprMod
- type ExprNegative
- type ExprNil
- type ExprNotEqual
- type ExprObject
- type ExprObjectItemExpandObj
- type ExprObjectItemKV
- type ExprPlus
- type ExprPow
- type ExprShortImport
- type ExprSlice
- type ExprStr
- type ExprTimes
- type ExprToStr
- type ExprUndefined
- type ExprUse
- type ExprWhen
- type ExprWhenValue
- type IfCase
- type IsAssign
- type Lval
- type LvalByField
- type LvalById
- type Module
- type Node
- type ObjectComprehension
- type Pos
- type Position
- type SetResult
- type Stmt
- type StmtAssert
- type StmtBlockDefer
- type StmtBreak
- type StmtClassDefine
- type StmtContinue
- type StmtDefer
- type StmtDoWhile
- type StmtExport
- type StmtExtend
- type StmtFallback
- type StmtFor
- type StmtForEach
- type StmtIf
- type StmtReturn
- type StmtSwitch
- type StmtTry
- type StmtWhile
- type SwitchCase
- type ValueCondition
- type ValueConditionInList
- type ValueConditionInRange
- type ValueConditionIsType
Constants ¶
View Source
const ( AssignTypeSingle = iota AssignTypeDeArray AssignTypeDeObject )
View Source
const ( CompareOpEQ = 1 + iota CompareOpNE CompareOpLT CompareOpLE CompareOpGT CompareOpGE )
Variables ¶
This section is empty.
Functions ¶
func IsBindList ¶ added in v1.0.19
func IsBindList(args []CallArgument) bool
Types ¶
type ArrayComprehension ¶ added in v1.0.4
type ArrayComprehension struct { ItemExpr Expr // contains filtered or unexported fields }
func (*ArrayComprehension) Eval ¶ added in v1.0.4
func (e *ArrayComprehension) Eval(c *runtime.Context)
type CallArgument ¶
type ExprAssertError ¶
type ExprAssertError struct {
Expr Expr
}
func (*ExprAssertError) Eval ¶
func (e *ExprAssertError) Eval(c *runtime.Context)
type ExprAssign ¶
func (*ExprAssign) Eval ¶
func (assign *ExprAssign) Eval(c *runtime.Context)
type ExprBigNum ¶
type ExprBigNum struct {
Value runtime.ValueBigNum
}
func (*ExprBigNum) Eval ¶
func (n *ExprBigNum) Eval(c *runtime.Context)
type ExprBitAnd ¶
type ExprBitAnd struct {
BinOp
}
func (*ExprBitAnd) Eval ¶
func (expr *ExprBitAnd) Eval(c *runtime.Context)
type ExprBitNot ¶
type ExprBitNot struct {
Expr Expr
}
func (*ExprBitNot) Eval ¶
func (e *ExprBitNot) Eval(c *runtime.Context)
type ExprBitShl ¶
type ExprBitShl struct {
BinOp
}
func (*ExprBitShl) Eval ¶
func (expr *ExprBitShl) Eval(c *runtime.Context)
type ExprBitShr ¶
type ExprBitShr struct {
BinOp
}
func (*ExprBitShr) Eval ¶
func (expr *ExprBitShr) Eval(c *runtime.Context)
type ExprBitXor ¶
type ExprBitXor struct {
BinOp
}
func (*ExprBitXor) Eval ¶
func (expr *ExprBitXor) Eval(c *runtime.Context)
type ExprCall ¶
type ExprCall struct { Pos Optional bool Callee Expr Arguments []CallArgument IsBind bool }
type ExprCompare ¶
func (*ExprCompare) Eval ¶
func (expr *ExprCompare) Eval(c *runtime.Context)
type ExprFallback ¶
type ExprFallback struct {
BinOp
}
func (*ExprFallback) Eval ¶
func (expr *ExprFallback) Eval(c *runtime.Context)
type ExprFloat ¶
type ExprFloat struct {
Value runtime.ValueFloat
}
type ExprGreaterEqual ¶
type ExprGreaterEqual struct {
BinOp
}
func (*ExprGreaterEqual) Eval ¶
func (expr *ExprGreaterEqual) Eval(c *runtime.Context)
type ExprGreaterThen ¶
type ExprGreaterThen struct {
BinOp
}
func (*ExprGreaterThen) Eval ¶
func (expr *ExprGreaterThen) Eval(c *runtime.Context)
type ExprIdentifier ¶
type ExprIdentifier struct {
Name string
}
func (*ExprIdentifier) Eval ¶
func (expr *ExprIdentifier) Eval(c *runtime.Context)
type ExprInContainer ¶ added in v1.0.19
type ExprInContainer struct {
BinOp
}
func (*ExprInContainer) Eval ¶ added in v1.0.19
func (expr *ExprInContainer) Eval(c *runtime.Context)
type ExprInRange ¶ added in v1.0.19
func (*ExprInRange) Eval ¶ added in v1.0.19
func (expr *ExprInRange) Eval(c *runtime.Context)
type ExprIncDec ¶
func (*ExprIncDec) Eval ¶
func (e *ExprIncDec) Eval(c *runtime.Context)
type ExprIsType ¶ added in v1.0.8
type ExprIsType struct {
BinOp
}
func (*ExprIsType) Eval ¶ added in v1.0.8
func (expr *ExprIsType) Eval(c *runtime.Context)
type ExprLessEqual ¶
type ExprLessEqual struct {
BinOp
}
func (*ExprLessEqual) Eval ¶
func (expr *ExprLessEqual) Eval(c *runtime.Context)
type ExprLessThen ¶
type ExprLessThen struct {
BinOp
}
func (*ExprLessThen) Eval ¶
func (expr *ExprLessThen) Eval(c *runtime.Context)
type ExprLocalAssign ¶
func (*ExprLocalAssign) Eval ¶
func (assign *ExprLocalAssign) Eval(c *runtime.Context)
type ExprLocalNewAssign ¶
func (*ExprLocalNewAssign) Eval ¶
func (assign *ExprLocalNewAssign) Eval(c *runtime.Context)
type ExprLogicAnd ¶
type ExprLogicAnd struct {
BinOp
}
func (*ExprLogicAnd) Eval ¶
func (expr *ExprLogicAnd) Eval(c *runtime.Context)
type ExprLogicNot ¶
type ExprLogicNot struct {
Expr Expr
}
func (*ExprLogicNot) Eval ¶
func (expr *ExprLogicNot) Eval(c *runtime.Context)
type ExprLogicOr ¶
type ExprLogicOr struct {
BinOp
}
func (*ExprLogicOr) Eval ¶
func (expr *ExprLogicOr) Eval(c *runtime.Context)
type ExprNegative ¶
type ExprNegative struct {
Expr Expr
}
func (*ExprNegative) Eval ¶
func (e *ExprNegative) Eval(c *runtime.Context)
type ExprNotEqual ¶
type ExprNotEqual struct {
BinOp
}
func (*ExprNotEqual) Eval ¶
func (expr *ExprNotEqual) Eval(c *runtime.Context)
type ExprObject ¶
type ExprObject struct {
Items []interface{}
}
func (*ExprObject) Eval ¶
func (e *ExprObject) Eval(c *runtime.Context)
type ExprObjectItemExpandObj ¶
type ExprObjectItemExpandObj struct {
Obj Expr
}
type ExprObjectItemKV ¶
type ExprObjectItemKV struct {
Key, Value Expr
}
type ExprShortImport ¶
type ExprShortImport struct {
ImportPath string
}
func (*ExprShortImport) Eval ¶
func (e *ExprShortImport) Eval(c *runtime.Context)
type ExprUndefined ¶
type ExprUndefined struct { }
func (*ExprUndefined) Eval ¶
func (n *ExprUndefined) Eval(c *runtime.Context)
type ExprWhenValue ¶
type ExprWhenValue struct { Input Expr Cases []ValueCondition Else Expr }
func (*ExprWhenValue) Eval ¶
func (expr *ExprWhenValue) Eval(c *runtime.Context)
type IsAssign ¶ added in v1.0.12
type IsAssign interface {
// contains filtered or unexported methods
}
type LvalByField ¶
func (*LvalByField) Eval ¶
func (v *LvalByField) Eval(c *runtime.Context)
type ObjectComprehension ¶ added in v1.0.4
type ObjectComprehension struct { KeyExpr Expr ValueExpr Expr // contains filtered or unexported fields }
func (*ObjectComprehension) Eval ¶ added in v1.0.4
func (e *ObjectComprehension) Eval(c *runtime.Context)
type Pos ¶
func (*Pos) PositionStr ¶
type StmtAssert ¶
func (*StmtAssert) Eval ¶
func (s *StmtAssert) Eval(c *runtime.Context)
type StmtBlockDefer ¶
func (*StmtBlockDefer) Eval ¶
func (s *StmtBlockDefer) Eval(c *runtime.Context)
type StmtClassDefine ¶
type StmtClassDefine struct { Pos Exported bool Name string Bases []Expr Body *ExprObject Static *ExprObject }
func (*StmtClassDefine) Eval ¶
func (s *StmtClassDefine) Eval(c *runtime.Context)
type StmtContinue ¶
func (*StmtContinue) Eval ¶
func (s *StmtContinue) Eval(c *runtime.Context)
type StmtDoWhile ¶
func (*StmtDoWhile) Eval ¶
func (s *StmtDoWhile) Eval(c *runtime.Context)
type StmtExport ¶
func (*StmtExport) Eval ¶
func (s *StmtExport) Eval(c *runtime.Context)
type StmtExtend ¶
func (*StmtExtend) Eval ¶
func (s *StmtExtend) Eval(c *runtime.Context)
type StmtFallback ¶
func (*StmtFallback) Eval ¶
func (s *StmtFallback) Eval(c *runtime.Context)
type StmtForEach ¶
type StmtForEach struct { Pos Label string IdIndex string IdValue string Iteratable Expr RangeBegin Expr RangeEnd Expr RangeIncludingEnd bool Exec *Block }
func (*StmtForEach) Eval ¶
func (s *StmtForEach) Eval(c *runtime.Context)
type StmtReturn ¶
func (*StmtReturn) Eval ¶
func (s *StmtReturn) Eval(c *runtime.Context)
type StmtSwitch ¶
type StmtSwitch struct { Pos Val Expr Cases []SwitchCase Default *Block }
func (*StmtSwitch) Eval ¶
func (s *StmtSwitch) Eval(c *runtime.Context)
type SwitchCase ¶
type SwitchCase struct { Condition ValueCondition Code *Block Fallthrough bool }
type ValueCondition ¶
type ValueConditionInList ¶
func (*ValueConditionInList) Return ¶
func (vc *ValueConditionInList) Return(c *runtime.Context)
type ValueConditionInRange ¶
func (*ValueConditionInRange) Return ¶
func (vc *ValueConditionInRange) Return(c *runtime.Context)
type ValueConditionIsType ¶ added in v1.0.8
func (*ValueConditionIsType) Return ¶ added in v1.0.8
func (vc *ValueConditionIsType) Return(c *runtime.Context)
Click to show internal directories.
Click to hide internal directories.