astutil

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeclLhsPos

func DeclLhsPos(ident *ast.Ident) (int, error)

DeclLhsPos returns the position of the ident's variable on the left hand side of the assignment operator with which it was declared.

func DeclPos

func DeclPos(n *ast.Ident) (int, error)

DeclPos returns the possition the ident was declared.

func DeclaredWithLit

func DeclaredWithLit(ident *ast.Ident) (bool, error)

func FuncResults

func FuncResults(ident *ast.Ident) ([]*ast.Field, error)

Expects ident to have an object of type func and returns the returned vars of that func.

func IdentDeclExpr

func IdentDeclExpr(ident *ast.Ident) (ast.Expr, error)

IdentDeclExpr returns the expression that the identifier was declared with.

func SameIdent

func SameIdent(a, b *ast.Ident) bool

SameIdent returns true if a and b are the same.

func TypeOf

func TypeOf(ident *ast.Ident) (string, error)

Returns a string representation of the identifier's type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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