/astrid

Astrid is a collection of AST utilities for Go

Primary LanguageGoMIT LicenseMIT

Build Status Go Report Card codecov

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.