Descriptiongo/doc: enable AllMethods flag (and fix logic)
- enable AllMethods flag (default: not set)
- fix logic determining which methods to show
- added respective test case in testdata/e.go for AllMethods = false
- added test case set for AllMethods = true
The critical changes/files to look at are:
- testdata/e{0,1,2}.golden: T4.M should only show up as method of T5 in e2.golden
- reader.go: always include top-level methods, and negate former logic for embedded methods
(rewrote as a switch for better comprehensability)
Fixes issue 2791.
Patch Set 1 #Patch Set 2 : diff -r 50e2761fae14 https://code.google.com/p/go #Patch Set 3 : diff -r 50e2761fae14 https://code.google.com/p/go #Patch Set 4 : diff -r 0700956e0077 https://code.google.com/p/go #Patch Set 5 : diff -r 0700956e0077 https://code.google.com/p/go #
Total comments: 1
Patch Set 6 : diff -r 9b73a54857c3 https://code.google.com/p/go #Patch Set 7 : diff -r e7f919814232 https://code.google.com/p/go #
MessagesTotal messages: 5
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||