Alan Donovan
03ca00ddd4
go.tools/go/types/typeutil: new package for type utilities.
...
Contains the members formerly known as:
- ssa.IntuitiveMethodSet
- typemap.M (now: Map)
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/65670043
2014-02-19 13:32:36 -05:00
Alan Donovan
744d7e68b1
go.tools/go/ssa: use bytes.Buffer instead of io.Writer.
...
This is (a) more efficient and (b) avoids the need for
constant error handling, since buffer writes can't fail.
Also:
- added WriteFunction and WritePackage functions,
similar to types.WriteFoo.
- *Function and *Package now implement io.WriterTo.
LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/57930044
2014-01-28 17:48:10 -05:00
Robert Griesemer
ebfa4efbc4
go.tools/go/types: cleanup: more consistent exported predicate names
...
Renamed predicates:
IsIdentical -> Identical
IsAssignableTo -> AssignableTo
Signature.IsVariadic -> Signature.Variadic
Object.IsExported -> Object.Exported
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/53370043
2014-01-28 10:57:56 -08:00
Alan Donovan
3fc0fc1310
go.tools: rename packages.
...
Was: Now:
ssa go/ssa
importer go/loader
pointer go/pointer
Next CL: call -> go/callgraph (requires more care)
R=gri, crawshaw
CC=golang-codereviews
https://golang.org/cl/52960043
2014-01-16 09:33:58 -05:00