ast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assignment

func Assignment(above, arg int) string

Helper: returns the source code that assigned the first argument or the argument source code or some other messages

Types

type Arg

type Arg struct {
	Src        string // the source code
	Assignment string // if a simple var, the source code of the assignment
}

func (Arg) Short

func (a Arg) Short() string

func (Arg) String

func (a Arg) String() string

type Call

type Call struct {
	Name string
	Args []Arg
	All  string
}

func Caller

func Caller(above int) (call *Call, err error)

expand the source code of the caller (use above==0 for the current function)

Jump to

Keyboard shortcuts

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