Versions in this module Expand all Collapse all v1 v1.9.11 Mar 16, 2022 Changes in this version + func AddFunctionDecl(x *ast.FuncDecl, currentFile *core_domain.CodeContainer) (*core_domain.CodeFunction, string) + func AddInterface(x *ast.InterfaceType, ident string, codeFile *core_domain.CodeContainer) core_domain.CodeDataStruct + func AddNestedFunction(currentFunc *core_domain.CodeFunction, x *ast.FuncType) + func AddStructType(currentNodeName string, x *ast.StructType, ...) + func BuildCallFromExpr(expr *ast.CallExpr, codeFunc *CodeFunction, fields []CodeField, ...) CodeCall + func BuildExpr(expr ast.Expr) (string, string, string) + func BuildFieldToProperty(fieldList []*ast.Field) []CodeProperty + func BuildFunction(x *ast.FuncDecl, file *CodeContainer) *CodeFunction + func BuildImport(x *ast.ImportSpec, fileName string, manager core_domain.CodePackageInfo) *core_domain.CodeImport + func BuildImportName(fileName string) string + func BuildLocalVars(it *ast.AssignStmt, codeFunc *CodeFunction, imports []CodeImport) []CodeProperty + func BuildMethodCall(codeFunc *CodeFunction, item ast.Stmt, fields []CodeField, ...) ([]CodeProperty, CodeCall) + func BuildMethodCallExprStmt(it *ast.ExprStmt, codeFunc *CodeFunction, fields []CodeField, ...) + func BuildPropertyField(name string, field *ast.Field) *CodeProperty + func BuildReceiver(x *ast.FuncDecl, recv string) string + func BuildValSpec(expr ast.Expr) (string, string, string) + func ParseTarget(selector string, fields []CodeField, localVars []CodeProperty, ...) string + func SortInterface(slice []core_domain.CodeDataStruct) + type CocagoParser struct + CodeMembers []core_domain.CodeMember + PackageManager core_domain.CodePackageInfo + func NewCocagoParser() *CocagoParser + func (n *CocagoParser) IdentAnalysis(code string, fileName string) *core_domain.CodeContainer + func (n *CocagoParser) ProcessFile(fileName string) core_domain.CodeContainer + func (n *CocagoParser) ProcessString(code string, fileName string, codeMembers []core_domain.CodeMember) *core_domain.CodeContainer + func (n *CocagoParser) SetOutput(out io.Writer) io.Writer + func (n *CocagoParser) SetPackageManager(manager core_domain.CodePackageInfo) + func (n *CocagoParser) Visitor(f *ast.File, fset *token.FileSet, fileName string) *core_domain.CodeContainer