Documentation ¶
Index ¶
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFunctionDecl ¶
func AddFunctionDecl(x *ast.FuncDecl, currentFile *core_domain.CodeContainer) (*core_domain.CodeFunction, string)
func AddInterface ¶
func AddInterface(x *ast.InterfaceType, ident string, codeFile *core_domain.CodeContainer) core_domain.CodeDataStruct
func AddNestedFunction ¶
func AddNestedFunction(currentFunc *core_domain.CodeFunction, x *ast.FuncType)
func AddStructType ¶
func AddStructType(currentNodeName string, x *ast.StructType, currentFile *core_domain.CodeContainer, dsMap map[string]*core_domain.CodeDataStruct)
func BuildCallFromExpr ¶
func BuildFieldToProperty ¶
func BuildFunction ¶
func BuildImport ¶
func BuildImport(x *ast.ImportSpec, fileName string, manager core_domain.CodePackageInfo) *core_domain.CodeImport
func BuildImportName ¶
func BuildLocalVars ¶
func BuildLocalVars(it *ast.AssignStmt, codeFunc *CodeFunction, imports []CodeImport) []CodeProperty
func BuildMethodCall ¶
func BuildMethodCallExprStmt ¶
func BuildPropertyField ¶
func ParseTarget ¶
func SortInterface ¶
func SortInterface(slice []core_domain.CodeDataStruct)
Types ¶
type CocagoParser ¶
type CocagoParser struct { CodeMembers []core_domain.CodeMember PackageManager core_domain.CodePackageInfo }
func NewCocagoParser ¶
func NewCocagoParser() *CocagoParser
func (*CocagoParser) IdentAnalysis ¶
func (n *CocagoParser) IdentAnalysis(code string, fileName string) *core_domain.CodeContainer
func (*CocagoParser) ProcessFile ¶
func (n *CocagoParser) ProcessFile(fileName string) core_domain.CodeContainer
func (*CocagoParser) ProcessString ¶
func (n *CocagoParser) ProcessString(code string, fileName string, codeMembers []core_domain.CodeMember) *core_domain.CodeContainer
func (*CocagoParser) SetPackageManager ¶
func (n *CocagoParser) SetPackageManager(manager core_domain.CodePackageInfo)
func (*CocagoParser) Visitor ¶
func (n *CocagoParser) Visitor(f *ast.File, fset *token.FileSet, fileName string) *core_domain.CodeContainer
Click to show internal directories.
Click to hide internal directories.