Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dave/astrid

Astrid is a collection of AST utilities for Go
https://github.com/dave/astrid

Last synced: about 1 month ago
JSON representation

Astrid is a collection of AST utilities for Go

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/dave/astrid.svg?branch=master)](https://travis-ci.org/dave/astrid) [![Go Report Card](https://goreportcard.com/badge/github.com/dave/astrid)](https://goreportcard.com/report/github.com/dave/astrid) [![codecov](https://codecov.io/gh/dave/astrid/branch/master/graph/badge.svg)](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.