NameOff => Name; TypeOff => *Type; TextOff => Text

This commit is contained in:
xushiwei
2024-05-25 21:43:59 +08:00
parent 980a537930
commit b121d1730b
4 changed files with 46 additions and 17 deletions

Binary file not shown.

View File

@@ -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
}
// -----------------------------------------------------------------------------