Documentation
¶
Index ¶
- func HasMacroLike(cmt string) (string, bool)
- func IsEnum(n ast.Node) ([]ast.Spec, bool)
- func IsFnDec(n ast.Node) (*ast.FuncDecl, bool)
- func IsStructDec(n ast.Node) (string, *ast.StructType, bool)
- func IsTyp(o interface{}, t interface{}) bool
- func MacroCtxsOfWorkingDir(wd string, defDir string) ([]*MacroCtx, *ProcCtx, error)
- func RecvName(fn *ast.FuncDecl) string
- func WalkPkgs(pkgs map[string]*ast.Package, handle WalkPkgHandle, pc *ProcCtx) error
- type MacroCtx
- type MacroImpl
- type ProcCtx
- type WalkPkgHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasMacroLike ¶
func IsStructDec ¶
func MacroCtxsOfWorkingDir ¶
Types ¶
type MacroCtx ¶
type MacroCtx struct { ProcCtx *ProcCtx File string // file being walked through to find out the macros Node ast.Node // the node being attached with macro Name string // the name of this macro Args []interface{} // the args defined in the macro expr }
func MacroCtxsOfFile ¶
func ParseMacro ¶
func (*MacroCtx) HasStringArg ¶
Click to show internal directories.
Click to hide internal directories.