goast

package
v1.0.1-rel-02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectDimetaFactroy

func InjectDimetaFactroy(s *DimetaFactroy)

func LoadDimetaFactroy

func LoadDimetaFactroy() baseiface.ISingleton

Types

type DimetaFactroy

type DimetaFactroy struct {
	basedto.BaseEntitySingle
	metafile.MetaFile `json:"-"`
	BasePkg           string
	Rootdir           string

	FileInfoDtos []*dimeta.FileInfoDto
	StructInfos  map[string]*dimeta.StructInfo

	Config *ichubconfig.IchubConfig `di:`
	// contains filtered or unexported fields
}

func FindBeanDimetaFactroy

func FindBeanDimetaFactroy() *DimetaFactroy

FindBeanDimetaFactroy

func NewDiFactroy

func NewDiFactroy() *DimetaFactroy

func (*DimetaFactroy) ExistNewMethod

func (this *DimetaFactroy) ExistNewMethod(nodes *ast.File, functionName string) bool

func (*DimetaFactroy) FindBasePkg

func (this *DimetaFactroy) FindBasePkg() string

func (*DimetaFactroy) FindFile

func (this *DimetaFactroy) FindFile(file string) *dimeta.FileInfoDto

func (*DimetaFactroy) FindGoFile

func (this *DimetaFactroy) FindGoFile(stru string) *dimeta.FileInfoDto

func (*DimetaFactroy) FindGoFiles

func (this *DimetaFactroy) FindGoFiles() error

func (*DimetaFactroy) FindSome

func (this *DimetaFactroy) FindSome(struname string) (*dimeta.FileInfoDto, bool)

func (*DimetaFactroy) GoastAll

func (this *DimetaFactroy) GoastAll()

func (*DimetaFactroy) GoastOne

func (this *DimetaFactroy) GoastOne(stru string) (*dimeta.FileInfoDto, bool)

func (*DimetaFactroy) Parse

func (this *DimetaFactroy) Parse(file string) *dimeta.FileInfoDto

func (*DimetaFactroy) ParseDir

func (this *DimetaFactroy) ParseDir(pathf string)

func (*DimetaFactroy) ParseFuncs

func (this *DimetaFactroy) ParseFuncs(FileInf *dimeta.FileInfoDto, nodes *ast.File)

func (*DimetaFactroy) ParseImports

func (this *DimetaFactroy) ParseImports(FileInf *dimeta.FileInfoDto, nodes *ast.File)

func (*DimetaFactroy) ParseMethods

func (this *DimetaFactroy) ParseMethods(decl *ast.FuncDecl)

func (*DimetaFactroy) ParseStruct

func (this *DimetaFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *dimeta.StructInfo

func (*DimetaFactroy) ParseTags

func (this *DimetaFactroy) ParseTags(stru *dimeta.StructInfo, nodes *ast.File)

func (*DimetaFactroy) Save2JSONFile

func (this *DimetaFactroy) Save2JSONFile()

func (*DimetaFactroy) SaveFile2JSONFile

func (this *DimetaFactroy) SaveFile2JSONFile()

func (*DimetaFactroy) SetImport2StructInfos

func (this *DimetaFactroy) SetImport2StructInfos(fileinfo *dimeta.FileInfoDto)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL