cmd/api: rewrite using go/types

- adjusted test files so that they actually type-check
- adjusted go1.txt, go1.1.txt, next.txt
- to run, provide build tag: api_tool

Fixes #4538.

R=bradfitz
CC=golang-dev
https://golang.org/cl/12300043
This commit is contained in:
Robert Griesemer 2013-08-08 14:10:59 -07:00
parent de04bf24e5
commit 9449c18ac8
8 changed files with 607 additions and 1107 deletions

View file

@ -92,6 +92,7 @@ pkg encoding/json, method (Number) String() string
pkg encoding/json, type Number string
pkg encoding/xml, func EscapeText(io.Writer, []uint8) error
pkg encoding/xml, method (*Encoder) Indent(string, string)
pkg encoding/xml, method (Encoder) ReadFrom(io.Reader) (int64, error)
pkg encoding/xml, type Decoder struct, DefaultSpace string
pkg go/ast, func NewCommentMap(*token.FileSet, Node, []*CommentGroup) CommentMap
pkg go/ast, method (CommentMap) Comments() []*CommentGroup
@ -1700,6 +1701,7 @@ pkg testing, method (BenchmarkResult) AllocsPerOp() int64
pkg testing, method (BenchmarkResult) MemString() string
pkg testing, type BenchmarkResult struct, MemAllocs uint64
pkg testing, type BenchmarkResult struct, MemBytes uint64
pkg text/template, method (Template) ErrorContext(parse.Node) (string, string)
pkg text/template/parse, const NodeChain NodeType
pkg text/template/parse, const NodeNil NodeType
pkg text/template/parse, method (*ChainNode) Add(string)

View file

@ -391,6 +391,18 @@ pkg crypto/dsa, var ErrInvalidPublicKey error
pkg crypto/ecdsa, func GenerateKey(elliptic.Curve, io.Reader) (*PrivateKey, error)
pkg crypto/ecdsa, func Sign(io.Reader, *PrivateKey, []uint8) (*big.Int, *big.Int, error)
pkg crypto/ecdsa, func Verify(*PublicKey, []uint8, *big.Int, *big.Int) bool
pkg crypto/ecdsa, method (PrivateKey) Add(*big.Int, *big.Int, *big.Int, *big.Int) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PrivateKey) Double(*big.Int, *big.Int) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PrivateKey) IsOnCurve(*big.Int, *big.Int) bool
pkg crypto/ecdsa, method (PrivateKey) Params() *elliptic.CurveParams
pkg crypto/ecdsa, method (PrivateKey) ScalarBaseMult([]uint8) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PrivateKey) ScalarMult(*big.Int, *big.Int, []uint8) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PublicKey) Add(*big.Int, *big.Int, *big.Int, *big.Int) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PublicKey) Double(*big.Int, *big.Int) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PublicKey) IsOnCurve(*big.Int, *big.Int) bool
pkg crypto/ecdsa, method (PublicKey) Params() *elliptic.CurveParams
pkg crypto/ecdsa, method (PublicKey) ScalarBaseMult([]uint8) (*big.Int, *big.Int)
pkg crypto/ecdsa, method (PublicKey) ScalarMult(*big.Int, *big.Int, []uint8) (*big.Int, *big.Int)
pkg crypto/ecdsa, type PrivateKey struct
pkg crypto/ecdsa, type PrivateKey struct, D *big.Int
pkg crypto/ecdsa, type PrivateKey struct, embedded PublicKey
@ -1614,6 +1626,7 @@ pkg debug/elf, method (NType) GoString() string
pkg debug/elf, method (NType) String() string
pkg debug/elf, method (OSABI) GoString() string
pkg debug/elf, method (OSABI) String() string
pkg debug/elf, method (Prog) ReadAt([]uint8, int64) (int, error)
pkg debug/elf, method (ProgFlag) GoString() string
pkg debug/elf, method (ProgFlag) String() string
pkg debug/elf, method (ProgType) GoString() string
@ -1630,6 +1643,7 @@ pkg debug/elf, method (R_SPARC) GoString() string
pkg debug/elf, method (R_SPARC) String() string
pkg debug/elf, method (R_X86_64) GoString() string
pkg debug/elf, method (R_X86_64) String() string
pkg debug/elf, method (Section) ReadAt([]uint8, int64) (int, error)
pkg debug/elf, method (SectionFlag) GoString() string
pkg debug/elf, method (SectionFlag) String() string
pkg debug/elf, method (SectionIndex) GoString() string
@ -1674,7 +1688,7 @@ pkg debug/elf, type Header32 struct
pkg debug/elf, type Header32 struct, Ehsize uint16
pkg debug/elf, type Header32 struct, Entry uint32
pkg debug/elf, type Header32 struct, Flags uint32
pkg debug/elf, type Header32 struct, Ident [EI_NIDENT]uint8
pkg debug/elf, type Header32 struct, Ident [16]uint8
pkg debug/elf, type Header32 struct, Machine uint16
pkg debug/elf, type Header32 struct, Phentsize uint16
pkg debug/elf, type Header32 struct, Phnum uint16
@ -1689,7 +1703,7 @@ pkg debug/elf, type Header64 struct
pkg debug/elf, type Header64 struct, Ehsize uint16
pkg debug/elf, type Header64 struct, Entry uint64
pkg debug/elf, type Header64 struct, Flags uint32
pkg debug/elf, type Header64 struct, Ident [EI_NIDENT]uint8
pkg debug/elf, type Header64 struct, Ident [16]uint8
pkg debug/elf, type Header64 struct, Machine uint16
pkg debug/elf, type Header64 struct, Phentsize uint16
pkg debug/elf, type Header64 struct, Phnum uint16
@ -1911,7 +1925,9 @@ pkg debug/macho, method (Dysymtab) Raw() []uint8
pkg debug/macho, method (LoadBytes) Raw() []uint8
pkg debug/macho, method (LoadCmd) GoString() string
pkg debug/macho, method (LoadCmd) String() string
pkg debug/macho, method (Section) ReadAt([]uint8, int64) (int, error)
pkg debug/macho, method (Segment) Raw() []uint8
pkg debug/macho, method (Segment) ReadAt([]uint8, int64) (int, error)
pkg debug/macho, method (Symtab) Raw() []uint8
pkg debug/macho, type Cpu uint32
pkg debug/macho, type Dylib struct
@ -2154,6 +2170,7 @@ pkg debug/pe, method (*File) Section(string) *Section
pkg debug/pe, method (*FormatError) Error() string
pkg debug/pe, method (*Section) Data() ([]uint8, error)
pkg debug/pe, method (*Section) Open() io.ReadSeeker
pkg debug/pe, method (Section) ReadAt([]uint8, int64) (int, error)
pkg debug/pe, type File struct
pkg debug/pe, type File struct, Sections []*Section
pkg debug/pe, type File struct, embedded FileHeader
@ -2408,6 +2425,13 @@ pkg encoding/xml, method (*UnsupportedTypeError) Error() string
pkg encoding/xml, method (CharData) Copy() CharData
pkg encoding/xml, method (Comment) Copy() Comment
pkg encoding/xml, method (Directive) Copy() Directive
pkg encoding/xml, method (Encoder) Available() int
pkg encoding/xml, method (Encoder) Buffered() int
pkg encoding/xml, method (Encoder) Flush() error
pkg encoding/xml, method (Encoder) Write([]uint8) (int, error)
pkg encoding/xml, method (Encoder) WriteByte(uint8) error
pkg encoding/xml, method (Encoder) WriteRune(int32) (int, error)
pkg encoding/xml, method (Encoder) WriteString(string) (int, error)
pkg encoding/xml, method (ProcInst) Copy() ProcInst
pkg encoding/xml, method (StartElement) Copy() StartElement
pkg encoding/xml, method (UnmarshalError) Error() string
@ -3659,7 +3683,7 @@ pkg image/draw, func Draw(Image, image.Rectangle, image.Image, image.Point, Op)
pkg image/draw, func DrawMask(Image, image.Rectangle, image.Image, image.Point, image.Image, image.Point, Op)
pkg image/draw, type Image interface { At, Bounds, ColorModel, Set }
pkg image/draw, type Image interface, At(int, int) color.Color
pkg image/draw, type Image interface, Bounds() Rectangle
pkg image/draw, type Image interface, Bounds() image.Rectangle
pkg image/draw, type Image interface, ColorModel() color.Model
pkg image/draw, type Image interface, Set(int, int, color.Color)
pkg image/draw, type Op int
@ -4164,7 +4188,7 @@ pkg math, func Trunc(float64) float64
pkg math, func Y0(float64) float64
pkg math, func Y1(float64) float64
pkg math, func Yn(int, float64) float64
pkg math/big, const MaxBase ideal-int
pkg math/big, const MaxBase ideal-char
pkg math/big, func NewInt(int64) *Int
pkg math/big, func NewRat(int64, int64) *Rat
pkg math/big, method (*Int) Abs(*Int) *Int
@ -5266,6 +5290,14 @@ pkg os/exec, method (*Cmd) StdoutPipe() (io.ReadCloser, error)
pkg os/exec, method (*Cmd) Wait() error
pkg os/exec, method (*Error) Error() string
pkg os/exec, method (*ExitError) Error() string
pkg os/exec, method (ExitError) Exited() bool
pkg os/exec, method (ExitError) Pid() int
pkg os/exec, method (ExitError) String() string
pkg os/exec, method (ExitError) Success() bool
pkg os/exec, method (ExitError) Sys() interface{}
pkg os/exec, method (ExitError) SysUsage() interface{}
pkg os/exec, method (ExitError) SystemTime() time.Duration
pkg os/exec, method (ExitError) UserTime() time.Duration
pkg os/exec, type Cmd struct
pkg os/exec, type Cmd struct, Args []string
pkg os/exec, type Cmd struct, Dir string
@ -5687,6 +5719,7 @@ pkg runtime, type MemProfileRecord struct, Stack0 [32]uintptr
pkg runtime, type MemStats struct
pkg runtime, type MemStats struct, Alloc uint64
pkg runtime, type MemStats struct, BuckHashSys uint64
pkg runtime, type MemStats struct, BySize [61]struct
pkg runtime, type MemStats struct, DebugGC bool
pkg runtime, type MemStats struct, EnableGC bool
pkg runtime, type MemStats struct, Frees uint64
@ -28803,12 +28836,12 @@ pkg syscall (windows-386), type InterfaceInfo struct, BroadcastAddress SockaddrG
pkg syscall (windows-386), type InterfaceInfo struct, Flags uint32
pkg syscall (windows-386), type InterfaceInfo struct, Netmask SockaddrGen
pkg syscall (windows-386), type IpAdapterInfo struct
pkg syscall (windows-386), type IpAdapterInfo struct, AdapterName [MAX_ADAPTER_NAME_LENGTH + 4]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, Address [MAX_ADAPTER_ADDRESS_LENGTH]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, AdapterName [260]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, Address [8]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, AddressLength uint32
pkg syscall (windows-386), type IpAdapterInfo struct, ComboIndex uint32
pkg syscall (windows-386), type IpAdapterInfo struct, CurrentIpAddress *IpAddrString
pkg syscall (windows-386), type IpAdapterInfo struct, Description [MAX_ADAPTER_DESCRIPTION_LENGTH + 4]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, Description [132]uint8
pkg syscall (windows-386), type IpAdapterInfo struct, DhcpEnabled uint32
pkg syscall (windows-386), type IpAdapterInfo struct, DhcpServer IpAddrString
pkg syscall (windows-386), type IpAdapterInfo struct, GatewayList IpAddrString
@ -28828,14 +28861,14 @@ pkg syscall (windows-386), type IpAddrString struct, IpMask IpMaskString
pkg syscall (windows-386), type IpAddrString struct, Next *IpAddrString
pkg syscall (windows-386), type IpAddressString struct
pkg syscall (windows-386), type IpAddressString struct, String [16]uint8
pkg syscall (windows-386), type IpMaskString IpAddressString
pkg syscall (windows-386), type IpMaskString struct
pkg syscall (windows-386), type LazyDLL struct
pkg syscall (windows-386), type LazyDLL struct, Name string
pkg syscall (windows-386), type LazyProc struct
pkg syscall (windows-386), type LazyProc struct, Name string
pkg syscall (windows-386), type MibIfRow struct
pkg syscall (windows-386), type MibIfRow struct, AdminStatus uint32
pkg syscall (windows-386), type MibIfRow struct, Descr [MAXLEN_IFDESCR]uint8
pkg syscall (windows-386), type MibIfRow struct, Descr [256]uint8
pkg syscall (windows-386), type MibIfRow struct, DescrLen uint32
pkg syscall (windows-386), type MibIfRow struct, InDiscards uint32
pkg syscall (windows-386), type MibIfRow struct, InErrors uint32
@ -28846,7 +28879,7 @@ pkg syscall (windows-386), type MibIfRow struct, InUnknownProtos uint32
pkg syscall (windows-386), type MibIfRow struct, Index uint32
pkg syscall (windows-386), type MibIfRow struct, LastChange uint32
pkg syscall (windows-386), type MibIfRow struct, Mtu uint32
pkg syscall (windows-386), type MibIfRow struct, Name [MAX_INTERFACE_NAME_LEN]uint16
pkg syscall (windows-386), type MibIfRow struct, Name [256]uint16
pkg syscall (windows-386), type MibIfRow struct, OperStatus uint32
pkg syscall (windows-386), type MibIfRow struct, OutDiscards uint32
pkg syscall (windows-386), type MibIfRow struct, OutErrors uint32
@ -28854,7 +28887,7 @@ pkg syscall (windows-386), type MibIfRow struct, OutNUcastPkts uint32
pkg syscall (windows-386), type MibIfRow struct, OutOctets uint32
pkg syscall (windows-386), type MibIfRow struct, OutQLen uint32
pkg syscall (windows-386), type MibIfRow struct, OutUcastPkts uint32
pkg syscall (windows-386), type MibIfRow struct, PhysAddr [MAXLEN_PHYSADDR]uint8
pkg syscall (windows-386), type MibIfRow struct, PhysAddr [8]uint8
pkg syscall (windows-386), type MibIfRow struct, PhysAddrLen uint32
pkg syscall (windows-386), type MibIfRow struct, Speed uint32
pkg syscall (windows-386), type MibIfRow struct, Type uint32
@ -28943,7 +28976,7 @@ pkg syscall (windows-386), type Timezoneinformation struct, DaylightName [32]uin
pkg syscall (windows-386), type Timezoneinformation struct, StandardBias int32
pkg syscall (windows-386), type Timezoneinformation struct, StandardDate Systemtime
pkg syscall (windows-386), type Timezoneinformation struct, StandardName [32]uint16
pkg syscall (windows-386), type Token Handle
pkg syscall (windows-386), type Token uintptr
pkg syscall (windows-386), type Tokenprimarygroup struct
pkg syscall (windows-386), type Tokenprimarygroup struct, PrimaryGroup *SID
pkg syscall (windows-386), type Tokenuser struct
@ -28962,11 +28995,11 @@ pkg syscall (windows-386), type WSABuf struct
pkg syscall (windows-386), type WSABuf struct, Buf *uint8
pkg syscall (windows-386), type WSABuf struct, Len uint32
pkg syscall (windows-386), type WSAData struct
pkg syscall (windows-386), type WSAData struct, Description [WSADESCRIPTION_LEN + 1]uint8
pkg syscall (windows-386), type WSAData struct, Description [257]uint8
pkg syscall (windows-386), type WSAData struct, HighVersion uint16
pkg syscall (windows-386), type WSAData struct, MaxSockets uint16
pkg syscall (windows-386), type WSAData struct, MaxUdpDg uint16
pkg syscall (windows-386), type WSAData struct, SystemStatus [WSASYS_STATUS_LEN + 1]uint8
pkg syscall (windows-386), type WSAData struct, SystemStatus [129]uint8
pkg syscall (windows-386), type WSAData struct, VendorInfo *uint8
pkg syscall (windows-386), type WSAData struct, Version uint16
pkg syscall (windows-386), type WaitStatus struct
@ -28982,7 +29015,7 @@ pkg syscall (windows-386), type Win32finddata struct
pkg syscall (windows-386), type Win32finddata struct, AlternateFileName [13]uint16
pkg syscall (windows-386), type Win32finddata struct, CreationTime Filetime
pkg syscall (windows-386), type Win32finddata struct, FileAttributes uint32
pkg syscall (windows-386), type Win32finddata struct, FileName [MAX_PATH - 1]uint16
pkg syscall (windows-386), type Win32finddata struct, FileName [259]uint16
pkg syscall (windows-386), type Win32finddata struct, FileSizeHigh uint32
pkg syscall (windows-386), type Win32finddata struct, FileSizeLow uint32
pkg syscall (windows-386), type Win32finddata struct, LastAccessTime Filetime
@ -29732,12 +29765,12 @@ pkg syscall (windows-amd64), type InterfaceInfo struct, BroadcastAddress Sockadd
pkg syscall (windows-amd64), type InterfaceInfo struct, Flags uint32
pkg syscall (windows-amd64), type InterfaceInfo struct, Netmask SockaddrGen
pkg syscall (windows-amd64), type IpAdapterInfo struct
pkg syscall (windows-amd64), type IpAdapterInfo struct, AdapterName [MAX_ADAPTER_NAME_LENGTH + 4]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, Address [MAX_ADAPTER_ADDRESS_LENGTH]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, AdapterName [260]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, Address [8]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, AddressLength uint32
pkg syscall (windows-amd64), type IpAdapterInfo struct, ComboIndex uint32
pkg syscall (windows-amd64), type IpAdapterInfo struct, CurrentIpAddress *IpAddrString
pkg syscall (windows-amd64), type IpAdapterInfo struct, Description [MAX_ADAPTER_DESCRIPTION_LENGTH + 4]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, Description [132]uint8
pkg syscall (windows-amd64), type IpAdapterInfo struct, DhcpEnabled uint32
pkg syscall (windows-amd64), type IpAdapterInfo struct, DhcpServer IpAddrString
pkg syscall (windows-amd64), type IpAdapterInfo struct, GatewayList IpAddrString
@ -29757,14 +29790,14 @@ pkg syscall (windows-amd64), type IpAddrString struct, IpMask IpMaskString
pkg syscall (windows-amd64), type IpAddrString struct, Next *IpAddrString
pkg syscall (windows-amd64), type IpAddressString struct
pkg syscall (windows-amd64), type IpAddressString struct, String [16]uint8
pkg syscall (windows-amd64), type IpMaskString IpAddressString
pkg syscall (windows-amd64), type IpMaskString struct
pkg syscall (windows-amd64), type LazyDLL struct
pkg syscall (windows-amd64), type LazyDLL struct, Name string
pkg syscall (windows-amd64), type LazyProc struct
pkg syscall (windows-amd64), type LazyProc struct, Name string
pkg syscall (windows-amd64), type MibIfRow struct
pkg syscall (windows-amd64), type MibIfRow struct, AdminStatus uint32
pkg syscall (windows-amd64), type MibIfRow struct, Descr [MAXLEN_IFDESCR]uint8
pkg syscall (windows-amd64), type MibIfRow struct, Descr [256]uint8
pkg syscall (windows-amd64), type MibIfRow struct, DescrLen uint32
pkg syscall (windows-amd64), type MibIfRow struct, InDiscards uint32
pkg syscall (windows-amd64), type MibIfRow struct, InErrors uint32
@ -29775,7 +29808,7 @@ pkg syscall (windows-amd64), type MibIfRow struct, InUnknownProtos uint32
pkg syscall (windows-amd64), type MibIfRow struct, Index uint32
pkg syscall (windows-amd64), type MibIfRow struct, LastChange uint32
pkg syscall (windows-amd64), type MibIfRow struct, Mtu uint32
pkg syscall (windows-amd64), type MibIfRow struct, Name [MAX_INTERFACE_NAME_LEN]uint16
pkg syscall (windows-amd64), type MibIfRow struct, Name [256]uint16
pkg syscall (windows-amd64), type MibIfRow struct, OperStatus uint32
pkg syscall (windows-amd64), type MibIfRow struct, OutDiscards uint32
pkg syscall (windows-amd64), type MibIfRow struct, OutErrors uint32
@ -29783,7 +29816,7 @@ pkg syscall (windows-amd64), type MibIfRow struct, OutNUcastPkts uint32
pkg syscall (windows-amd64), type MibIfRow struct, OutOctets uint32
pkg syscall (windows-amd64), type MibIfRow struct, OutQLen uint32
pkg syscall (windows-amd64), type MibIfRow struct, OutUcastPkts uint32
pkg syscall (windows-amd64), type MibIfRow struct, PhysAddr [MAXLEN_PHYSADDR]uint8
pkg syscall (windows-amd64), type MibIfRow struct, PhysAddr [8]uint8
pkg syscall (windows-amd64), type MibIfRow struct, PhysAddrLen uint32
pkg syscall (windows-amd64), type MibIfRow struct, Speed uint32
pkg syscall (windows-amd64), type MibIfRow struct, Type uint32
@ -29872,7 +29905,7 @@ pkg syscall (windows-amd64), type Timezoneinformation struct, DaylightName [32]u
pkg syscall (windows-amd64), type Timezoneinformation struct, StandardBias int32
pkg syscall (windows-amd64), type Timezoneinformation struct, StandardDate Systemtime
pkg syscall (windows-amd64), type Timezoneinformation struct, StandardName [32]uint16
pkg syscall (windows-amd64), type Token Handle
pkg syscall (windows-amd64), type Token uintptr
pkg syscall (windows-amd64), type Tokenprimarygroup struct
pkg syscall (windows-amd64), type Tokenprimarygroup struct, PrimaryGroup *SID
pkg syscall (windows-amd64), type Tokenuser struct
@ -29891,11 +29924,11 @@ pkg syscall (windows-amd64), type WSABuf struct
pkg syscall (windows-amd64), type WSABuf struct, Buf *uint8
pkg syscall (windows-amd64), type WSABuf struct, Len uint32
pkg syscall (windows-amd64), type WSAData struct
pkg syscall (windows-amd64), type WSAData struct, Description [WSADESCRIPTION_LEN + 1]uint8
pkg syscall (windows-amd64), type WSAData struct, Description [257]uint8
pkg syscall (windows-amd64), type WSAData struct, HighVersion uint16
pkg syscall (windows-amd64), type WSAData struct, MaxSockets uint16
pkg syscall (windows-amd64), type WSAData struct, MaxUdpDg uint16
pkg syscall (windows-amd64), type WSAData struct, SystemStatus [WSASYS_STATUS_LEN + 1]uint8
pkg syscall (windows-amd64), type WSAData struct, SystemStatus [129]uint8
pkg syscall (windows-amd64), type WSAData struct, VendorInfo *uint8
pkg syscall (windows-amd64), type WSAData struct, Version uint16
pkg syscall (windows-amd64), type WaitStatus struct
@ -29911,7 +29944,7 @@ pkg syscall (windows-amd64), type Win32finddata struct
pkg syscall (windows-amd64), type Win32finddata struct, AlternateFileName [13]uint16
pkg syscall (windows-amd64), type Win32finddata struct, CreationTime Filetime
pkg syscall (windows-amd64), type Win32finddata struct, FileAttributes uint32
pkg syscall (windows-amd64), type Win32finddata struct, FileName [MAX_PATH - 1]uint16
pkg syscall (windows-amd64), type Win32finddata struct, FileName [259]uint16
pkg syscall (windows-amd64), type Win32finddata struct, FileSizeHigh uint32
pkg syscall (windows-amd64), type Win32finddata struct, FileSizeLow uint32
pkg syscall (windows-amd64), type Win32finddata struct, LastAccessTime Filetime
@ -30029,7 +30062,7 @@ pkg syscall, const IP_MULTICAST_LOOP ideal-int
pkg syscall, const IP_MULTICAST_TTL ideal-int
pkg syscall, const IP_TOS ideal-int
pkg syscall, const IP_TTL ideal-int
pkg syscall, const ImplementsGetwd bool
pkg syscall, const ImplementsGetwd ideal-bool
pkg syscall, const O_APPEND ideal-int
pkg syscall, const O_ASYNC ideal-int
pkg syscall, const O_CLOEXEC ideal-int
@ -30596,7 +30629,7 @@ pkg unicode, const MaxRune ideal-char
pkg unicode, const ReplacementChar ideal-char
pkg unicode, const TitleCase ideal-int
pkg unicode, const UpperCase ideal-int
pkg unicode, const UpperLower ideal-int
pkg unicode, const UpperLower ideal-char
pkg unicode, const Version ideal-string
pkg unicode, func Is(*RangeTable, int32) bool
pkg unicode, func IsControl(int32) bool
@ -30843,8 +30876,3 @@ pkg unicode/utf8, func RuneLen(int32) int
pkg unicode/utf8, func RuneStart(uint8) bool
pkg unicode/utf8, func Valid([]uint8) bool
pkg unicode/utf8, func ValidString(string) bool
pkg unsafe, func Alignof(ArbitraryType) uintptr
pkg unsafe, func Offsetof(ArbitraryType) uintptr
pkg unsafe, func Sizeof(ArbitraryType) uintptr
pkg unsafe, type ArbitraryType int
pkg unsafe, type Pointer *ArbitraryType

View file

@ -1,3 +1,7 @@
pkg archive/zip, func RegisterCompressor(uint16, Compressor)
pkg archive/zip, func RegisterDecompressor(uint16, Decompressor)
pkg archive/zip, type Compressor func(io.Writer) (io.WriteCloser, error)
pkg archive/zip, type Decompressor func(io.Reader) io.ReadCloser
pkg container/heap, func Fix(Interface, int)
pkg container/list, method (*List) MoveAfter(*Element, *Element)
pkg container/list, method (*List) MoveBefore(*Element, *Element)
@ -8,18 +12,18 @@ pkg crypto/cipher, type AEAD interface, NonceSize() int
pkg crypto/cipher, type AEAD interface, Open([]uint8, []uint8, []uint8, []uint8) ([]uint8, error)
pkg crypto/cipher, type AEAD interface, Overhead() int
pkg crypto/cipher, type AEAD interface, Seal([]uint8, []uint8, []uint8, []uint8) []uint8
pkg crypto/md5, func Sum([]uint8) [Size]uint8
pkg crypto/md5, func Sum([]uint8) [16]uint8
pkg crypto/rsa, const PSSSaltLengthAuto ideal-int
pkg crypto/rsa, const PSSSaltLengthEqualsHash ideal-int
pkg crypto/rsa, func SignPSS(io.Reader, *PrivateKey, crypto.Hash, []uint8, *PSSOptions) ([]uint8, error)
pkg crypto/rsa, func VerifyPSS(*PublicKey, crypto.Hash, []uint8, []uint8, *PSSOptions) error
pkg crypto/rsa, type PSSOptions struct
pkg crypto/rsa, type PSSOptions struct, SaltLength int
pkg crypto/sha1, func Sum([]uint8) [Size]uint8
pkg crypto/sha256, func Sum224([]uint8) [Size224]uint8
pkg crypto/sha256, func Sum256([]uint8) [Size]uint8
pkg crypto/sha512, func Sum384([]uint8) [Size384]uint8
pkg crypto/sha512, func Sum512([]uint8) [Size]uint8
pkg crypto/sha1, func Sum([]uint8) [20]uint8
pkg crypto/sha256, func Sum224([]uint8) [28]uint8
pkg crypto/sha256, func Sum256([]uint8) [32]uint8
pkg crypto/sha512, func Sum384([]uint8) [48]uint8
pkg crypto/sha512, func Sum512([]uint8) [64]uint8
pkg crypto/subtle, func ConstantTimeLessOrEq(int, int) int
pkg crypto/tls, const TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA uint16
pkg crypto/tls, const TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA uint16
@ -38,6 +42,7 @@ pkg flag, type Getter interface { Get, Set, String }
pkg flag, type Getter interface, Get() interface{}
pkg flag, type Getter interface, Set(string) error
pkg flag, type Getter interface, String() string
pkg flag, var CommandLine *FlagSet
pkg go/ast, type SliceExpr struct, Max Expr
pkg go/ast, type TypeAssertExpr struct, Lparen token.Pos
pkg go/ast, type TypeAssertExpr struct, Rparen token.Pos
@ -31701,20 +31706,136 @@ pkg syscall (openbsd-amd64-cgo), type WaitStatus uint32
pkg syscall (openbsd-amd64-cgo), var Stderr int
pkg syscall (openbsd-amd64-cgo), var Stdin int
pkg syscall (openbsd-amd64-cgo), var Stdout int
pkg syscall (windows-386), const BASE_PROTOCOL ideal-int
pkg syscall (windows-386), const ERROR_HANDLE_EOF Errno
pkg syscall (windows-386), const FILE_SKIP_COMPLETION_PORT_ON_SUCCESS ideal-int
pkg syscall (windows-386), const FILE_SKIP_SET_EVENT_ON_HANDLE ideal-int
pkg syscall (windows-386), const LAYERED_PROTOCOL ideal-int
pkg syscall (windows-386), const MAX_PROTOCOL_CHAIN ideal-int
pkg syscall (windows-386), const NetSetupDomainName ideal-int
pkg syscall (windows-386), const NetSetupUnjoined ideal-int
pkg syscall (windows-386), const NetSetupUnknownStatus ideal-int
pkg syscall (windows-386), const NetSetupWorkgroupName ideal-int
pkg syscall (windows-386), const PFL_HIDDEN ideal-int
pkg syscall (windows-386), const PFL_MATCHES_PROTOCOL_ZERO ideal-int
pkg syscall (windows-386), const PFL_MULTIPLE_PROTO_ENTRIES ideal-int
pkg syscall (windows-386), const PFL_NETWORKDIRECT_PROVIDER ideal-int
pkg syscall (windows-386), const PFL_RECOMMENDED_PROTO_ENTRY ideal-int
pkg syscall (windows-386), const PROCESS_TERMINATE ideal-int
pkg syscall (windows-386), const WSAPROTOCOL_LEN ideal-int
pkg syscall (windows-386), const XP1_CONNECTIONLESS ideal-int
pkg syscall (windows-386), const XP1_CONNECT_DATA ideal-int
pkg syscall (windows-386), const XP1_DISCONNECT_DATA ideal-int
pkg syscall (windows-386), const XP1_EXPEDITED_DATA ideal-int
pkg syscall (windows-386), const XP1_GRACEFUL_CLOSE ideal-int
pkg syscall (windows-386), const XP1_GUARANTEED_DELIVERY ideal-int
pkg syscall (windows-386), const XP1_GUARANTEED_ORDER ideal-int
pkg syscall (windows-386), const XP1_IFS_HANDLES ideal-int
pkg syscall (windows-386), const XP1_MESSAGE_ORIENTED ideal-int
pkg syscall (windows-386), const XP1_MULTIPOINT_CONTROL_PLANE ideal-int
pkg syscall (windows-386), const XP1_MULTIPOINT_DATA_PLANE ideal-int
pkg syscall (windows-386), const XP1_PARTIAL_MESSAGE ideal-int
pkg syscall (windows-386), const XP1_PSEUDO_STREAM ideal-int
pkg syscall (windows-386), const XP1_QOS_SUPPORTED ideal-int
pkg syscall (windows-386), const XP1_SAN_SUPPORT_SDP ideal-int
pkg syscall (windows-386), const XP1_SUPPORT_BROADCAST ideal-int
pkg syscall (windows-386), const XP1_SUPPORT_MULTIPOINT ideal-int
pkg syscall (windows-386), const XP1_UNI_RECV ideal-int
pkg syscall (windows-386), const XP1_UNI_SEND ideal-int
pkg syscall (windows-386), func LoadSetFileCompletionNotificationModes() error
pkg syscall (windows-386), func NetGetJoinInformation(*uint16, **uint16, *uint32) error
pkg syscall (windows-386), func SetFileCompletionNotificationModes(Handle, uint8) error
pkg syscall (windows-386), func WSAEnumProtocols(*int32, *WSAProtocolInfo, *uint32) (int32, error)
pkg syscall (windows-386), type IpMaskString struct, String [16]uint8
pkg syscall (windows-386), type WSAProtocolChain struct
pkg syscall (windows-386), type WSAProtocolChain struct, ChainEntries [7]uint32
pkg syscall (windows-386), type WSAProtocolChain struct, ChainLen int32
pkg syscall (windows-386), type WSAProtocolInfo struct
pkg syscall (windows-386), type WSAProtocolInfo struct, AddressFamily int32
pkg syscall (windows-386), type WSAProtocolInfo struct, CatalogEntryId uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, MaxSockAddr int32
pkg syscall (windows-386), type WSAProtocolInfo struct, MessageSize uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, MinSockAddr int32
pkg syscall (windows-386), type WSAProtocolInfo struct, NetworkByteOrder int32
pkg syscall (windows-386), type WSAProtocolInfo struct, Protocol int32
pkg syscall (windows-386), type WSAProtocolInfo struct, ProtocolChain WSAProtocolChain
pkg syscall (windows-386), type WSAProtocolInfo struct, ProtocolMaxOffset int32
pkg syscall (windows-386), type WSAProtocolInfo struct, ProtocolName [256]uint16
pkg syscall (windows-386), type WSAProtocolInfo struct, ProviderFlags uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, ProviderId GUID
pkg syscall (windows-386), type WSAProtocolInfo struct, ProviderReserved uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, SecurityScheme int32
pkg syscall (windows-386), type WSAProtocolInfo struct, ServiceFlags1 uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, ServiceFlags2 uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, ServiceFlags3 uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, ServiceFlags4 uint32
pkg syscall (windows-386), type WSAProtocolInfo struct, SocketType int32
pkg syscall (windows-386), type WSAProtocolInfo struct, Version int32
pkg syscall (windows-amd64), const BASE_PROTOCOL ideal-int
pkg syscall (windows-amd64), const ERROR_HANDLE_EOF Errno
pkg syscall (windows-amd64), const FILE_SKIP_COMPLETION_PORT_ON_SUCCESS ideal-int
pkg syscall (windows-amd64), const FILE_SKIP_SET_EVENT_ON_HANDLE ideal-int
pkg syscall (windows-amd64), const LAYERED_PROTOCOL ideal-int
pkg syscall (windows-amd64), const MAX_PROTOCOL_CHAIN ideal-int
pkg syscall (windows-amd64), const NetSetupDomainName ideal-int
pkg syscall (windows-amd64), const NetSetupUnjoined ideal-int
pkg syscall (windows-amd64), const NetSetupUnknownStatus ideal-int
pkg syscall (windows-amd64), const NetSetupWorkgroupName ideal-int
pkg syscall (windows-amd64), const PFL_HIDDEN ideal-int
pkg syscall (windows-amd64), const PFL_MATCHES_PROTOCOL_ZERO ideal-int
pkg syscall (windows-amd64), const PFL_MULTIPLE_PROTO_ENTRIES ideal-int
pkg syscall (windows-amd64), const PFL_NETWORKDIRECT_PROVIDER ideal-int
pkg syscall (windows-amd64), const PFL_RECOMMENDED_PROTO_ENTRY ideal-int
pkg syscall (windows-amd64), const PROCESS_TERMINATE ideal-int
pkg syscall (windows-amd64), const WSAPROTOCOL_LEN ideal-int
pkg syscall (windows-amd64), const XP1_CONNECTIONLESS ideal-int
pkg syscall (windows-amd64), const XP1_CONNECT_DATA ideal-int
pkg syscall (windows-amd64), const XP1_DISCONNECT_DATA ideal-int
pkg syscall (windows-amd64), const XP1_EXPEDITED_DATA ideal-int
pkg syscall (windows-amd64), const XP1_GRACEFUL_CLOSE ideal-int
pkg syscall (windows-amd64), const XP1_GUARANTEED_DELIVERY ideal-int
pkg syscall (windows-amd64), const XP1_GUARANTEED_ORDER ideal-int
pkg syscall (windows-amd64), const XP1_IFS_HANDLES ideal-int
pkg syscall (windows-amd64), const XP1_MESSAGE_ORIENTED ideal-int
pkg syscall (windows-amd64), const XP1_MULTIPOINT_CONTROL_PLANE ideal-int
pkg syscall (windows-amd64), const XP1_MULTIPOINT_DATA_PLANE ideal-int
pkg syscall (windows-amd64), const XP1_PARTIAL_MESSAGE ideal-int
pkg syscall (windows-amd64), const XP1_PSEUDO_STREAM ideal-int
pkg syscall (windows-amd64), const XP1_QOS_SUPPORTED ideal-int
pkg syscall (windows-amd64), const XP1_SAN_SUPPORT_SDP ideal-int
pkg syscall (windows-amd64), const XP1_SUPPORT_BROADCAST ideal-int
pkg syscall (windows-amd64), const XP1_SUPPORT_MULTIPOINT ideal-int
pkg syscall (windows-amd64), const XP1_UNI_RECV ideal-int
pkg syscall (windows-amd64), const XP1_UNI_SEND ideal-int
pkg syscall (windows-amd64), func LoadSetFileCompletionNotificationModes() error
pkg syscall (windows-amd64), func NetGetJoinInformation(*uint16, **uint16, *uint32) error
pkg syscall (windows-amd64), func SetFileCompletionNotificationModes(Handle, uint8) error
pkg syscall (windows-amd64), func WSAEnumProtocols(*int32, *WSAProtocolInfo, *uint32) (int32, error)
pkg syscall (windows-amd64), type IpMaskString struct, String [16]uint8
pkg syscall (windows-amd64), type WSAProtocolChain struct
pkg syscall (windows-amd64), type WSAProtocolChain struct, ChainEntries [7]uint32
pkg syscall (windows-amd64), type WSAProtocolChain struct, ChainLen int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct
pkg syscall (windows-amd64), type WSAProtocolInfo struct, AddressFamily int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, CatalogEntryId uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, MaxSockAddr int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, MessageSize uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, MinSockAddr int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, NetworkByteOrder int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, Protocol int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProtocolChain WSAProtocolChain
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProtocolMaxOffset int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProtocolName [256]uint16
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProviderFlags uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProviderId GUID
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ProviderReserved uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, SecurityScheme int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ServiceFlags1 uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ServiceFlags2 uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ServiceFlags3 uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, ServiceFlags4 uint32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, SocketType int32
pkg syscall (windows-amd64), type WSAProtocolInfo struct, Version int32
pkg testing, func RegisterCover(Cover)
pkg testing, type Cover struct
pkg testing, type Cover struct, Blocks map[string][]CoverBlock

View file

@ -1,251 +0,0 @@
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"fmt"
"go/ast"
"log"
"reflect"
)
const debugClone = false
// TODO(bradfitz): delete this function (and whole file) once
// http://golang.org/issue/4380 is fixed.
func clone(i interface{}) (cloned interface{}) {
if debugClone {
defer func() {
if !reflect.DeepEqual(i, cloned) {
log.Printf("cloned %T doesn't match: in=%#v out=%#v", i, i, cloned)
}
}()
}
switch v := i.(type) {
case nil:
return nil
case *ast.File:
o := &ast.File{
Doc: v.Doc, // shallow
Package: v.Package,
Comments: v.Comments, // shallow
Name: v.Name,
Scope: v.Scope,
}
for _, x := range v.Decls {
o.Decls = append(o.Decls, clone(x).(ast.Decl))
}
for _, x := range v.Imports {
o.Imports = append(o.Imports, clone(x).(*ast.ImportSpec))
}
for _, x := range v.Unresolved {
o.Unresolved = append(o.Unresolved, x)
}
return o
case *ast.GenDecl:
o := new(ast.GenDecl)
*o = *v
o.Specs = nil
for _, x := range v.Specs {
o.Specs = append(o.Specs, clone(x).(ast.Spec))
}
return o
case *ast.TypeSpec:
o := new(ast.TypeSpec)
*o = *v
o.Type = cloneExpr(v.Type)
return o
case *ast.InterfaceType:
o := new(ast.InterfaceType)
*o = *v
o.Methods = clone(v.Methods).(*ast.FieldList)
return o
case *ast.FieldList:
if v == nil {
return v
}
o := new(ast.FieldList)
*o = *v
o.List = nil
for _, x := range v.List {
o.List = append(o.List, clone(x).(*ast.Field))
}
return o
case *ast.Field:
o := &ast.Field{
Doc: v.Doc, // shallow
Type: cloneExpr(v.Type),
Tag: clone(v.Tag).(*ast.BasicLit),
Comment: v.Comment, // shallow
}
for _, x := range v.Names {
o.Names = append(o.Names, clone(x).(*ast.Ident))
}
return o
case *ast.FuncType:
if v == nil {
return v
}
return &ast.FuncType{
Func: v.Func,
Params: clone(v.Params).(*ast.FieldList),
Results: clone(v.Results).(*ast.FieldList),
}
case *ast.FuncDecl:
if v == nil {
return v
}
return &ast.FuncDecl{
Recv: clone(v.Recv).(*ast.FieldList),
Name: v.Name,
Type: clone(v.Type).(*ast.FuncType),
Body: v.Body, // shallow
}
case *ast.ValueSpec:
if v == nil {
return v
}
o := &ast.ValueSpec{
Type: cloneExpr(v.Type),
}
for _, x := range v.Names {
o.Names = append(o.Names, x)
}
for _, x := range v.Values {
o.Values = append(o.Values, cloneExpr(x))
}
return o
case *ast.CallExpr:
if v == nil {
return v
}
o := &ast.CallExpr{}
*o = *v
o.Args = cloneExprs(v.Args)
o.Fun = cloneExpr(v.Fun)
return o
case *ast.SelectorExpr:
if v == nil {
return nil
}
return &ast.SelectorExpr{
X: cloneExpr(v.X),
Sel: v.Sel,
}
case *ast.ArrayType:
return &ast.ArrayType{
Lbrack: v.Lbrack,
Len: cloneExpr(v.Len),
Elt: cloneExpr(v.Elt),
}
case *ast.StructType:
return &ast.StructType{
Struct: v.Struct,
Fields: clone(v.Fields).(*ast.FieldList),
Incomplete: v.Incomplete,
}
case *ast.StarExpr:
return &ast.StarExpr{
Star: v.Star,
X: cloneExpr(v.X),
}
case *ast.CompositeLit:
return &ast.CompositeLit{
Type: cloneExpr(v.Type),
Lbrace: v.Lbrace,
Elts: cloneExprs(v.Elts),
Rbrace: v.Rbrace,
}
case *ast.UnaryExpr:
return &ast.UnaryExpr{
OpPos: v.OpPos,
Op: v.Op,
X: cloneExpr(v.X),
}
case *ast.BinaryExpr:
return &ast.BinaryExpr{
OpPos: v.OpPos,
Op: v.Op,
X: cloneExpr(v.X),
Y: cloneExpr(v.Y),
}
case *ast.Ellipsis:
return &ast.Ellipsis{
Ellipsis: v.Ellipsis,
Elt: cloneExpr(v.Elt),
}
case *ast.KeyValueExpr:
return &ast.KeyValueExpr{
Key: cloneExpr(v.Key),
Colon: v.Colon,
Value: cloneExpr(v.Value),
}
case *ast.FuncLit:
return &ast.FuncLit{
Type: clone(v.Type).(*ast.FuncType),
Body: v.Body, // shallow
}
case *ast.MapType:
return &ast.MapType{
Map: v.Map,
Key: cloneExpr(v.Key),
Value: cloneExpr(v.Value),
}
case *ast.ParenExpr:
return &ast.ParenExpr{
Lparen: v.Lparen,
X: cloneExpr(v.X),
Rparen: v.Rparen,
}
case *ast.Ident, *ast.BasicLit:
return v
case *ast.ImportSpec:
return &ast.ImportSpec{
Doc: v.Doc, // shallow
Name: v.Name,
Path: clone(v.Path).(*ast.BasicLit),
Comment: v.Comment, // shallow
EndPos: v.EndPos,
}
case *ast.ChanType:
return &ast.ChanType{
Begin: v.Begin,
Arrow: v.Arrow,
Dir: v.Dir,
Value: cloneExpr(v.Value),
}
case *ast.TypeAssertExpr:
return &ast.TypeAssertExpr{
X: cloneExpr(v.X),
Type: cloneExpr(v.Type),
}
case *ast.IndexExpr:
return &ast.IndexExpr{
X: cloneExpr(v.X),
Index: cloneExpr(v.Index),
Lbrack: v.Lbrack,
Rbrack: v.Rbrack,
}
}
panic(fmt.Sprintf("Uncloneable type %T", i))
}
func cloneExpr(x ast.Expr) ast.Expr {
if x == nil {
return nil
}
return clone(x).(ast.Expr)
}
func cloneExprs(x []ast.Expr) []ast.Expr {
if x == nil {
return nil
}
o := make([]ast.Expr, len(x))
for i, x := range x {
o[i] = cloneExpr(x)
}
return o
}

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,5 @@
// +build api_tool
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@ -33,12 +35,10 @@ func TestGolden(t *testing.T) {
if !fi.IsDir() {
continue
}
w := NewWalker()
w.wantedPkg[fi.Name()] = true
w.root = "testdata/src/pkg"
goldenFile := filepath.Join("testdata", "src", "pkg", fi.Name(), "golden.txt")
w.WalkPackage(fi.Name())
w := NewWalker(nil, "testdata/src/pkg")
w.export(w.Import(fi.Name()))
if *updateGolden {
os.Remove(goldenFile)

View file

@ -1,7 +1,7 @@
pkg p1, const A ideal-int
pkg p1, const A64 int64
pkg p1, const AIsLowerA ideal-int
pkg p1, const B ideal-int
pkg p1, const B0 ideal-int
pkg p1, const ConstChase2 ideal-int
pkg p1, const ConversionConst MyInt
pkg p1, const FloatConst ideal-float
@ -10,6 +10,7 @@ pkg p1, func Bar(int8, int16, int64)
pkg p1, func Bar1(int8, int16, int64) uint64
pkg p1, func Bar2(int8, int16, int64) (uint8, uint64)
pkg p1, func BarE() Error
pkg p1, func Now() Time
pkg p1, func PlainFunc(int, int, string) (*B, error)
pkg p1, func TakesFunc(func(int) int)
pkg p1, method (*B) JustOnB()
@ -34,9 +35,9 @@ pkg p1, type ByteStruct struct, R int32
pkg p1, type Codec struct
pkg p1, type Codec struct, Func func(int, int) int
pkg p1, type EmbedSelector struct
pkg p1, type EmbedSelector struct, embedded time.Time
pkg p1, type EmbedSelector struct, embedded Time
pkg p1, type EmbedURLPtr struct
pkg p1, type EmbedURLPtr struct, embedded *url.URL
pkg p1, type EmbedURLPtr struct, embedded *URL
pkg p1, type Embedded struct
pkg p1, type Error interface { Error, Temporary }
pkg p1, type Error interface, Error() string
@ -58,7 +59,7 @@ pkg p1, type Public interface, X()
pkg p1, type Public interface, Y()
pkg p1, type S struct
pkg p1, type S struct, Public *int
pkg p1, type S struct, PublicTime time.Time
pkg p1, type S struct, PublicTime Time
pkg p1, type S2 struct
pkg p1, type S2 struct, Extra bool
pkg p1, type S2 struct, embedded S
@ -68,6 +69,8 @@ pkg p1, type T struct
pkg p1, type TPtrExported struct
pkg p1, type TPtrExported struct, embedded *Embedded
pkg p1, type TPtrUnexported struct
pkg p1, type Time struct
pkg p1, type URL struct
pkg p1, var Byte uint8
pkg p1, var ByteConv []uint8
pkg p1, var ByteFunc func(uint8) int32
@ -81,5 +84,5 @@ pkg p1, var V1 uint64
pkg p1, var V2 p2.Twoer
pkg p1, var VError Error
pkg p1, var X I
pkg p1, var X int64
pkg p1, var X0 int64
pkg p1, var Y int

View file

@ -35,7 +35,7 @@ var (
var ChecksumError = ptwo.NewError("gzip checksum error")
const B = 2
const B0 = 2
const StrConst = "foo"
const FloatConst = 1.5
@ -43,14 +43,18 @@ type myInt int
type MyInt int
type Time struct{}
type S struct {
Public *int
private *int
PublicTime time.Time
PublicTime Time
}
type URL struct{}
type EmbedURLPtr struct {
*url.URL
*URL
}
type S2 struct {
@ -58,7 +62,7 @@ type S2 struct {
Extra bool
}
var X int64
var X0 int64
var (
Y int
@ -163,7 +167,7 @@ func (*common) OnBothTandBPtr() {}
func (common) OnBothTandBVal() {}
type EmbedSelector struct {
time.Time
Time
}
const (
@ -174,10 +178,15 @@ const (
func ellipsis(...string) {}
func Now() Time {
var now Time
return now
}
var x = &S{
Public: nil,
private: nil,
publicTime: time.Now(),
PublicTime: Now(),
}
var parenExpr = (1 + 5)