Documentation ¶
Overview ¶
Package packages provides utility functions to statically analyze Gno MemPackages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileImport ¶
type FileImport struct { PkgPath string Spec *ast.ImportSpec }
FileImport represents an import
func FileImports ¶
FileImports returns the list of gno imports in the given file src. The given filename is only used when recording position information.
func Imports ¶
func Imports(pkg *gnovm.MemPackage, fset *token.FileSet) ([]FileImport, error)
Imports returns the list of gno imports from a gnovm.MemPackage. fset is optional.
Click to show internal directories.
Click to hide internal directories.