Documentation ¶
Index ¶
- func File(name string, nodes ...goast.Node) *goast.File
- func PHPEval(p phpast.Node) goast.Expr
- func PHPEvalStmt(p phpast.Node) goast.Stmt
- func TranspileFile(goFilename, phpFilename, phpStr string, gosrc io.Writer) error
- type Togo
- func (t *Togo) CtxFuncCall(funcName string, args []goast.Expr) *goast.CallExpr
- func (t *Togo) ResolveDynamicProperty(rcvr goast.Expr, propName phpast.Expr) goast.Expr
- func (t *Togo) ResolveDynamicVar(varName phpast.Expr) goast.Node
- func (t *Togo) ToGoBlock(p phpast.Statement) *goast.BlockStmt
- func (t *Togo) ToGoExpr(p phpast.Expr) goast.Expr
- func (t *Togo) ToGoOperator(php string) token.Token
- func (t *Togo) ToGoStmt(php phpast.Statement) goast.Stmt
- func (t *Togo) TranslateIf(p phpast.IfStmt) *goast.IfStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Togo ¶
type Togo struct {
// contains filtered or unexported fields
}
Togo is a go php transpiler
func (*Togo) CtxFuncCall ¶
func (*Togo) ResolveDynamicProperty ¶
Click to show internal directories.
Click to hide internal directories.