Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2024 Changes in this version + func FuncGoIdent(fn *Func) string + func IdentExprIsExported(expr ast.Expr) bool + func IdentIsInternal(modNames UniqueModuleNames, id Ident) bool + func ModulePathIsInternal(modNames UniqueModuleNames, p string) bool + func ParamsToIdents(modNames UniqueModuleNames, file *File, fl *ast.FieldList) (idents []NamedIdent, substImports []*File, err error) + type File struct + ImportsByName map[string]*File + ImportsByPath map[string]*File + ModuleName string + ModulePath string + Name string + func (f *File) AddImport(imp *File) + type Func struct + File *File + Name Ident + Params []NamedIdent + Recv *Ident + Results []NamedIdent + func NewFunc(modNames UniqueModuleNames, file *File, fd *ast.FuncDecl) (*Func, error) + func (fn *Func) String() string + type IR struct + Funcs map[string]*Func + Interfaces map[string]*Interface + Structs map[string]*Struct + Typedefs map[string]Ident + Values map[string]NamedIdent + func New() *IR + func (ir *IR) AddFile(modNames UniqueModuleNames, f *ast.File, fName string, modulePath string, ...) (requiredPkgs []string, err error) + func (ir *IR) ResolveInheritancesAndMethods(modNames UniqueModuleNames) error + type Ident struct + Expr ast.Expr + File *File + IsEllipsis bool + Name string + UsedImports []*File + func NewIdent(modNames UniqueModuleNames, file *File, expr ast.Expr) (Ident, error) + func (id *Ident) GetReferencedPackage(modNames UniqueModuleNames, file *File) (*File, bool) + func (id *Ident) RyeName() string + type Interface struct + Funcs []*Func + HasPrivateFields bool + Inherits []Ident + Name Ident + func NewInterface(modNames UniqueModuleNames, file *File, name *ast.Ident, ...) (*Interface, error) + type NamedIdent struct + Name Ident + Type Ident + type Struct struct + Fields []NamedIdent + Inherits []Ident + Methods map[string]*Func + Name Ident + func NewStruct(modNames UniqueModuleNames, file *File, name *ast.Ident, ...) (*Struct, error) + type UniqueModuleNames map[string]string