1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:36:15 -07:00
go/refactor
Alan Donovan c90cb9e042 refactor/satisfy: enumerate interface satisfaction constraints induced by Go syntax.
The type checker does not currently report the set of pairs of
types that are tested for assignability (though gri and I
agree that it should).  This information is useful for many
applications.  For example, refactoring tool needs to know the
minimal set of interface satisfaction constraints that must be
preserved during a refactoring.

This package is a stopgap measure to deduce the same
information using another pass.  Unlike go/types, it is not
robust against inputs containing type errors.

LGTM=sameer
R=gri, sameer
CC=golang-codereviews
https://golang.org/cl/136470043
2014-09-22 16:19:29 -04:00
..
eg go.tools/go/types: LookupFieldOrMethod checks method set 2014-08-28 13:03:13 -07:00
importgraph refactor/importgraph: add test of cycles 2014-09-18 10:05:26 -04:00
lexical refactor/lexical: understand the structure of the lexical environment. 2014-09-19 13:11:01 -04:00
satisfy refactor/satisfy: enumerate interface satisfaction constraints induced by Go syntax. 2014-09-22 16:19:29 -04:00
README go.tools/refactor/eg: an example-based refactoring tool. 2014-04-02 12:24:55 -04:00

code.google.com/p/go.tools/refactor: libraries for refactoring tools.