package source
import "gotest.tools/internal/source"
Index ¶
- func CallExprArgs(stackIndex int) ([]ast.Expr, error)
- func FormatNode(node ast.Node) (string, error)
- func FormattedCallExprArg(stackIndex int, argPos int) (string, error)
Functions ¶
func CallExprArgs ¶
CallExprArgs returns the ast.Expr slice for the args of an ast.CallExpr at the index in the call stack.
func FormatNode ¶
FormatNode using go/format.Node and return the result as a string
func FormattedCallExprArg ¶
FormattedCallExprArg returns the argument from an ast.CallExpr at the index in the call stack. The argument is formatted using FormatNode.
Source Files ¶
source.go
- Version
- v1.4.0 (latest)
- Published
- Mar 21, 2018
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 3 days ago –
Tools for package owners.