Descriptiongo.tools/go/types: Enable enumeration of the fields of a type - its field set, analogous to method set.
SelectionSet replaces MethodSet and is used for both field sets and method sets.
The field set and method set for a type are tightly bound -- computing one necessarily involves computing the other. MethodSetCache therefore becomes SelectionSetCache and stores both field and method sets.
These changes were tested by plugging NewMethodSet and NewFieldSet into MissingMethod and LookupFieldOrMethod, but I don't submit those changes because they slowed things down; but that shouldn't be a problem once caching is figured out.
All affected clients in go.tools are updated.
Patch Set 1 #Patch Set 2 : diff -r 08c7e94f38c8 https://code.google.com/p/go.tools #
Total comments: 1
Patch Set 3 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 4 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 5 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #
Total comments: 21
Patch Set 6 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 7 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 8 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 9 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #
Total comments: 14
Patch Set 10 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #Patch Set 11 : diff -r c7ed95187f53 https://code.google.com/p/go.tools #
MessagesTotal messages: 20
|