NameOff => Name; TypeOff => *Type; TextOff => Text
This commit is contained in:
Binary file not shown.
@@ -35,6 +35,12 @@ type InterfaceType = abi.InterfaceType
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// Named returns a named type.
|
||||
func Named(name string, typ *Type) *Type {
|
||||
ret := *typ // TODO(xsw): named type
|
||||
return &ret
|
||||
}
|
||||
|
||||
// Interface returns an interface type.
|
||||
func Interface(pkgPath string) *Type {
|
||||
// TODO(xsw): pkgPath
|
||||
@@ -160,10 +166,4 @@ func Pointer(elem *Type) *Type {
|
||||
return &ret.Type
|
||||
}
|
||||
|
||||
// Named returns a named type.
|
||||
func Named(name string, typ *Type) *Type {
|
||||
ret := *typ // TODO(xsw): named type
|
||||
return &ret
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user