1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:24:41 -07:00

cmd/guru: change "Method set:" to less formal "Methods:"

Change-Id: I7a43f3e9ed7e88f4f8f09d4d112c81aa037b7d8d
Reviewed-on: https://go-review.googlesource.com/21111
Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
Alan Donovan 2016-03-25 10:23:05 -04:00
parent c6be41b91f
commit 35cacb533e
3 changed files with 11 additions and 11 deletions

View File

@ -25,7 +25,7 @@ import (
// including: // including:
// - its syntactic category // - its syntactic category
// - the definition of its referent (for identifiers) [now redundant] // - the definition of its referent (for identifiers) [now redundant]
// - its type and method set (for an expression or type expression) // - its type, fields, and methods (for an expression or type expression)
// //
func describe(q *Query) error { func describe(q *Query) error {
lconf := loader.Config{Build: q.Build} lconf := loader.Config{Build: q.Build}
@ -479,7 +479,7 @@ type describeField struct {
func printMethods(printf printfFunc, node ast.Node, methods []*types.Selection) { func printMethods(printf printfFunc, node ast.Node, methods []*types.Selection) {
if len(methods) > 0 { if len(methods) > 0 {
printf(node, "Method set:") printf(node, "Methods:")
} }
for _, meth := range methods { for _, meth := range methods {
// Print the method type relative to the package // Print the method type relative to the package

View File

@ -64,7 +64,7 @@ defined here
-------- @describe type-D -------- -------- @describe type-D --------
reference to type D (size 24, align 8) reference to type D (size 24, align 8)
defined as struct{Field int; AnotherField string} defined as struct{Field int; AnotherField string}
Method set: Methods:
method (D) f() method (D) f()
Fields: Fields:
Field int Field int
@ -73,7 +73,7 @@ Fields:
-------- @describe type-I -------- -------- @describe type-I --------
reference to type I (size 16, align 8) reference to type I (size 16, align 8)
defined as interface{f()} defined as interface{f()}
Method set: Methods:
method (I) f() method (I) f()
-------- @describe func-ref-d.f -------- -------- @describe func-ref-d.f --------
@ -86,7 +86,7 @@ defined here
-------- @describe ptr-with-nonptr-methods -------- -------- @describe ptr-with-nonptr-methods --------
definition of var dptr *D definition of var dptr *D
Method set: Methods:
method (*D) f() method (*D) f()
Fields: Fields:
Field int Field int
@ -95,7 +95,7 @@ Fields:
-------- @describe ref-lexical-d -------- -------- @describe ref-lexical-d --------
reference to var d D reference to var d D
defined here defined here
Method set: Methods:
method (D) f() method (D) f()
Fields: Fields:
Field int Field int
@ -127,19 +127,19 @@ defined here
-------- @describe var-ref-i-C -------- -------- @describe var-ref-i-C --------
reference to var i I reference to var i I
defined here defined here
Method set: Methods:
method (I) f() method (I) f()
-------- @describe var-ref-i-D -------- -------- @describe var-ref-i-D --------
reference to var i I reference to var i I
defined here defined here
Method set: Methods:
method (I) f() method (I) f()
-------- @describe var-ref-i -------- -------- @describe var-ref-i --------
reference to var i I reference to var i I
defined here defined here
Method set: Methods:
method (I) f() method (I) f()
-------- @describe const-local-pi -------- -------- @describe const-local-pi --------
@ -210,7 +210,7 @@ function call (or conversion) of type invalid type
-------- @describe def-iface-I -------- -------- @describe def-iface-I --------
definition of type I (size 16, align 8) definition of type I (size 16, align 8)
Method set: Methods:
method (I) f() method (I) f()
-------- @describe def-imethod-I.f -------- -------- @describe def-imethod-I.f --------

View File

@ -33,7 +33,7 @@ defined here
-------- @describe ref-type -------- -------- @describe ref-type --------
reference to type lib.Type (size 8, align 8) reference to type lib.Type (size 8, align 8)
defined as int defined as int
Method set: Methods:
method (Type) Method(x *int) *int method (Type) Method(x *int) *int
-------- @describe ref-method -------- -------- @describe ref-method --------