Descriptiongo.tools/ssa: fixes, cleanups, cosmetic tweaks.
Fix bug: the Signature for an interface method wrapper
erroneously had a non-nil receiver.
Function:
- Set Pkg field non-nil even for wrappers.
It is equal to that of the wrapped function.
Only wrappers of error.Error
(and its embeddings in other interfaces) may have nil.
Sanity checker now asserts this.
- FullName() now uses .Synthetic field to discriminate
synthetic methods, not Pkg==nil.
- Fullname() uses new relType() utility to print receiver type
name unqualified if it belongs to the same package.
(Alloc.String also uses relType utility.)
CallCommon:
- Description(): fix switch logic broken when we
eliminated the Recv field.
- better docs.
Patch Set 1 #Patch Set 2 : diff -r a4415c59adfc https://code.google.com/p/go.tools #Patch Set 3 : diff -r a4415c59adfc https://code.google.com/p/go.tools #
Total comments: 2
Patch Set 4 : diff -r e60f9e5fe611 https://code.google.com/p/go.tools #
MessagesTotal messages: 4
|