baum

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package baum contains helpers for easier construction of ASTs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrNotNil

func ErrNotNil() *ast.BinaryExpr

func FieldList

func FieldList(fields ...*ast.Field) *ast.FieldList

func Idents

func Idents(names ...string) []*ast.Ident

func IntLit added in v0.3.0

func IntLit(value string) *ast.BasicLit

func Return

func Return(exprs ...ast.Expr) *ast.ReturnStmt

func Selector

func Selector(a, b string) *ast.SelectorExpr

func Selectors

func Selectors(a, b string) []ast.Expr

func StringLit

func StringLit(value string) *ast.BasicLit

func TypeDecl

func TypeDecl(specs ...*ast.TypeSpec) *ast.GenDecl

func VarDecl

func VarDecl(specs ...*ast.ValueSpec) *ast.GenDecl

func VarDeclStatement

func VarDeclStatement(specs ...ast.Spec) *ast.DeclStmt

Types

This section is empty.

Jump to

Keyboard shortcuts

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