astvisitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseName

func BaseName(filename string) string

BaseName file base name without filetype suffix, eg a/b/base.go => base

func CollectFuncVars

func CollectFuncVars(funcDecl *ast.FuncDecl) (map[string]struct{}, error)

CollectFuncVars collect function params var names and function body declared var names

func GenVarSuffix

func GenVarSuffix(patch string) string

GenVarSuffix gen var suffix by patch name

func ToValidVarName

func ToValidVarName(v string) string

ToValidVarName to valid var name

Types

This section is empty.

Jump to

Keyboard shortcuts

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