Categorygithub.com/goghcrow/go-matcher
modulepackage
0.0.4
Repository: https://github.com/goghcrow/go-matcher.git
Documentation: pkg.go.dev

# README

𝐖𝐡𝐚𝐭 𝐢𝐬 𝕘𝕠-𝕞𝕒𝕥𝕔𝕙𝕖𝕣

A Golang AST Node Matcher Library for go-ast-matcher.

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
MkPattern make pattern from MatchFun.
MkVar make variable for binding matched Node.
No description provided by the author
No description provided by the author
PatternOf make pattern from ast.Node.
No description provided by the author
TryGetMatchFun get MatchFun from pattern if T is NodePattern, n must be ast.Node if T is StmtPattern, n must be ast.Stmt if T is ExprPattern, n must be ast.Expr if T is DeclPattern, n must be ast.Decl if T is SpecPattern, n must be ast.Spec if T is IdentPattern, n must be *ast.Ident if T is FieldPattern, n must be *ast.Field if T is FieldListPattern, n must be *ast.FieldList if T is CallExprPattern, n must be *ast.CallExpr if T is FuncTypePattern, n must be *ast.FuncType if T is BlockStmtPattern, n must be *ast.BlockStmt if T is TokenPattern, n must be token.Token if T is BasicLitPattern, n must be *ast.BasicLit if T is StmtsPattern, n must be []ast.Stmt if T is ExprsPattern, n must be []ast.Expr if T is SpecsPattern, n must be []ast.Spec if T is IdentsPattern, n must be []*ast.Ident if T is FieldsPattern, n must be []*ast.Field.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author