https://github.com/dave/astrid
Astrid is a collection of AST utilities for Go
https://github.com/dave/astrid
Last synced: 10 months ago
JSON representation
Astrid is a collection of AST utilities for Go
- Host: GitHub
- URL: https://github.com/dave/astrid
- Owner: dave
- License: mit
- Created: 2017-03-23T09:23:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T12:25:12.000Z (over 9 years ago)
- Last Synced: 2025-04-11T04:51:27.376Z (about 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/dave/astrid) [](https://goreportcard.com/report/github.com/dave/astrid) [](https://codecov.io/gh/dave/astrid)
# Astrid
Astrid is a collection of AST utilities for Go
# Matcher
NewMatcher returns a new *Matcher with the provided Uses and Defs from
types.Info
### Matcher.Match
Match determines whether two ast.Expr's are equivalent
# Invert
Invert returns the inverse of the provided expression.