We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6dddac commit 988f18dCopy full SHA for 988f18d
src/go/types/named.go
@@ -91,9 +91,9 @@ func (t *Named) Obj() *TypeName {
91
return t.orig.obj // for non-instances this is the same as t.obj
92
}
93
94
-// _Orig returns the original generic type an instantiated type is derived from.
95
-// If t is not an instantiated type, the result is t.
96
-func (t *Named) _Orig() *Named { return t.orig }
+// Origin returns the parameterized type from which the named type t is
+// instantiated. If t is not an instantiated type, the result is t.
+func (t *Named) Origin() *Named { return t.orig }
97
98
// TODO(gri) Come up with a better representation and API to distinguish
99
// between parameterized instantiated and non-instantiated types.
0 commit comments