xast

package
v0.0.0-...-9dcd13a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExprSlice

func ExprSlice(nodes interface{}) []ast.Expr

ExprSlice converts any []T to []ast.Expr, where T is any type that implements ast.Expr.

Types

type Assign

type Assign struct {
	Pkg *Package
	Lhs []*ast.Ident
	Rhs ast.Expr
}

Assign carries information that is needed to compile assign statement.

type Func

type Func struct {
	Pkg  *Package
	Ret  *types.Tuple
	Body *ast.BlockStmt
}

Func carries information that is needed to compile a function.

type Package

type Package struct {
	AstPkg *ast.Package
	TypPkg *types.Package
	*types.Info
	FileSet  *token.FileSet
	FullName string
}

Package is type checked package which carries associated type info as well as parsed Go package.

Jump to

Keyboard shortcuts

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