packages

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

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

func FileImports(filename string, src string, fset *token.FileSet) ([]FileImport, error)

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.

Jump to

Keyboard shortcuts

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