IDLCompiler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefinedTypes *definedTypes
View Source
var Imports map[string]bool

Functions

func ExtractClasses

func ExtractClasses() []*IDL.ClassDefinition

func ExtractFunctions

func ExtractFunctions(gofile *parser.GoFile, metaffiGuestLib string) []*IDL.FunctionDefinition

--------------------------------------------------------------------

func ExtractGlobals

func ExtractGlobals(gofile *parser.GoFile, metaffiGuestLib string) []*IDL.GlobalDefinition

--------------------------------------------------------------------

func GetRequiredImport

func GetRequiredImport(gofile *parser.GoFile, fullType string) string

--------------------------------------------------------------------

func InitDefinedTypes

func InitDefinedTypes(file *ast.File)

--------------------------------------------------------------------

func IsPublic

func IsPublic(name string) bool

--------------------------------------------------------------------

func LoadClasses

func LoadClasses(gofile *parser.GoFile, metaffiGuestLib string)

func LoadMethods

func LoadMethods(gofile *parser.GoFile, metaffiGuestLib string)

func NewDefinedTypes

func NewDefinedTypes(file *ast.File) *definedTypes

--------------------------------------------------------------------

Types

type GoIDLCompiler

type GoIDLCompiler struct {
}

func NewGoIDLCompiler

func NewGoIDLCompiler() *GoIDLCompiler

func (*GoIDLCompiler) ParseIDL

func (this *GoIDLCompiler) ParseIDL(goSourceCode string, gofilepath string) (*IDL.IDLDefinition, bool, error)

Jump to

Keyboard shortcuts

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