Skip to content

Instantly share code, notes, and snippets.

@alex-fedorov
Created September 29, 2015 17:11
Show Gist options
  • Save alex-fedorov/db7503aca3cb5e004eb5 to your computer and use it in GitHub Desktop.
Save alex-fedorov/db7503aca3cb5e004eb5 to your computer and use it in GitHub Desktop.
cmd/cgo/ast.go
278: error_(token.NoPos, "unexpected type %T in walk", x, visit)
cmd/compile/internal/gc/align.go
340: * type T *struct { next T }
cmd/compile/internal/gc/const.go
138: if t != nil && t.Etype == TIDEAL && n.Val().Ctype() != CTINT {
cmd/compile/internal/gc/dcl.go
1201: if t.Sym != nil || t.Etype != TSTRUCT || t.Type != nil {
1413: if pa.Etype == TSTRUCT {
cmd/compile/internal/gc/esc.go
1360: if a.Type.Etype == TSTRUCT && a.Type.Funarg != 0 { // f(g()).
cmd/compile/internal/gc/export.go
548: if t.Etype != TSTRUCT || t.Map != nil || t.Funarg != 0 {
cmd/compile/internal/gc/gsubr.go
514: if t.Etype == TSTRUCT && t.Funarg != 0 {
cmd/compile/internal/gc/order.go
339: if n.Type.Etype != TSTRUCT || n.Type.Funarg == 0 {
1168: if t.Etype == TSTRUCT || Isfixedarray(t) {
cmd/compile/internal/gc/racewalk.go
500: if t.Etype == TSTRUCT || Isfixedarray(t) {
cmd/compile/internal/gc/reflect.go
1263: // The second module will end up defining type data for *T and a
cmd/compile/internal/gc/sinit.go
1115: if t.Etype != TSTRUCT {
cmd/compile/internal/gc/subr.go
1030: if t1.Etype != TSTRUCT || t2.Etype != TSTRUCT {
1077: if t1 == nil || t2 == nil || t1.Etype != TSTRUCT || t2.Etype != TSTRUCT {
1727: if tl.Type.Etype == TSTRUCT && tr.Type.Etype == TINTER {
1729: } else if tl.Type.Etype == TINTER && tr.Type.Etype == TSTRUCT {
2038: if u.Etype == TSTRUCT || u.Etype == TINTER {
2088: if u.Etype != TSTRUCT && u.Etype != TINTER {
2238: if u.Etype != TSTRUCT && u.Etype != TINTER {
2495: if rcvr.Etype == TSTRUCT || rcvr.Etype == TINTER || Isptr[rcvr.Etype] && rcvr.Type.Etype == TSTRUCT {
cmd/compile/internal/gc/swt.go
96: case t.Etype == TSTRUCT && algtype1(t, &badtype) == ANOEQ:
cmd/compile/internal/gc/typecheck.go
707: if l.Type.Etype == TSTRUCT && algtype1(l.Type, &badtype) == ANOEQ {
2507: if t.Etype == TSTRUCT || t.Etype == TINTER {
2658: if n.Type.Etype == TSTRUCT && n.Type.Funarg != 0 {
3400: if r.Type.Etype != TSTRUCT || r.Type.Funarg == 0 {
cmd/compile/internal/gc/walk.go
1912: if r != nil && lr.Next == nil && r.Type.Etype == TSTRUCT && r.Type.Funarg != 0 {
3324: if t.Etype == TSTRUCT && countfield(t) <= 4 {
cmd/fix/fix.go
62: panic(fmt.Errorf("unexpected type %T in walkBeforeAfter", x))
cmd/fix/typecheck.go
131:// typecheck type checks the AST f assuming the information in cfg.
480: // *x for x of type *T has type T when x is an expr.
cmd/go/alldocs.go
1461:receiver type T or *T is named ExampleT_M. There may be multiple examples
cmd/go/test.go
279:receiver type T or *T is named ExampleT_M. There may be multiple examples
cmd/vet/composite.go
46: // A simple type name like t or T does not need keys either,
cmd/vet/testdata/assign.go
9:type ST struct {
cmd/vet/testdata/print.go
28:type errorTest2 int // Analogous to testing's *T type.
crypto/tls/common.go
702: return fmt.Errorf("tls: received unexpected handshake message of type %T when waiting for %T", got, wanted)
crypto/tls/handshake_client.go
442: return fmt.Errorf("tls: client certificate private key of type %T does not implement crypto.Signer", chainToSend.PrivateKey)
crypto/x509/pkix/pkix.go
24:type RelativeDistinguishedNameSET []AttributeTypeAndValue
35:type AttributeTypeAndValueSET struct {
database/sql/convert.go
54: return nil, fmt.Errorf("sql: argument index %d: non-subset type %T returned from Value", n, sv)
database/sql/driver/types.go
224: return nil, fmt.Errorf("non-Value type %T returned from Value", sv)
encoding/asn1/asn1_test.go
510:type RelativeDistinguishedNameSET []AttributeTypeAndValue
encoding/asn1/marshal_test.go
73:type testSET []int
encoding/gob/codec_test.go
22:type EncodeT struct {
603: type inputT struct {
772: type RT struct {
1323:type DT struct {
encoding/gob/encoder_test.go
436:type interfaceIndirectTestT struct{}
encoding/gob/type.go
66: // A type that is just a cycle of pointers (such as type T *T) cannot
encoding/gob/type_test.go
13:type typeT struct {
go/types/api_test.go
979: type /*T=undef*/ T /*T=typename:10*/ *T
go/types/builtins.go
81: // The values x are passed to a parameter of type ...T where T is the element type
go/types/check.go
28:// - A type assertion x.(T) where T is an interface type
go/types/conversions.go
72: // "x's type and T have identical underlying types"
80: // "x's type and T are unnamed pointer types and their pointer base types have identical underlying types"
89: // "x's type and T are both integer or floating point types"
94: // "x's type and T are both complex types"
go/types/eval_test.go
145: type FT /* FT => , p.FT */ interface{}
go/types/lookup.go
37: // (spec: "The type denoted by T is called the receiver base type;
261: // A concrete type implements T if it implements all methods of T.
go/types/operand.go
228: // x's type V and T have identical underlying types
235: // type, x's type V and T have identical element types,
go/types/type.go
207: variadic bool // true if the last parameter's type is of the form ...T (or string, for append built-in only)
go/types/typestring_test.go
128: src := `package p; import "io"; type _ io.Writer; type T ` + test.src
go/types/typexpr.go
168: // spec: "The receiver type must be of the form T or *T where T is a type name."
173: // spec: "The type denoted by T is called the receiver base type; it must not
434: // For a variadic function, change the last parameter's type from T to []T.
image/jpeg/writer.go
179:type huffmanLUT []uint32
net/dnsmsg.go
299:type dnsRR_TXT struct {
net/http/client.go
337: return nil, fmt.Errorf("net/http: Client Transport of type %T doesn't support CancelRequest; Timeout not supported", c.transport())
net/mail/message.go
33:type debugT bool
reflect/all_test.go
771:type UnexpT struct {
reflect/type.go
1234: // and x's type V and T have identical element types.
runtime/defs1_linux.go
36:type SigaltstackT C.struct_sigaltstack
runtime/defs2_linux.go
142:type SigaltstackT C.struct_sigaltstack
runtime/defs3_linux.go
38:type SigaltstackT C.struct_sigaltstack
runtime/defs_arm_linux.go
118:type SigaltstackT C.struct_sigaltstack
runtime/defs_darwin.go
151:type StackT C.struct_sigaltstack
164:type RegMMST C.struct_mmst_reg
runtime/defs_dragonfly.go
112:type SigaltstackT C.struct_sigaltstack
114:type StackT C.stack_t
runtime/defs_freebsd.go
120:type SigaltstackT C.struct_sigaltstack
122:type StackT C.stack_t
runtime/defs_netbsd.go
112:type SigaltstackT C.struct_sigaltstack
116:type StackT C.stack_t
122:type McontextT C.mcontext_t
123:type UcontextT C.ucontext_t
runtime/defs_openbsd.go
107:type TforkT C.struct___tfork
109:type SigaltstackT C.struct_sigaltstack
115:type StackT C.stack_t
121:type KeventT C.struct_kevent
runtime/defs_solaris.go
134:type SemT C.sem_t
136:type SigaltstackT C.struct_sigaltstack
138:type StackT C.stack_t
runtime/mfinal_test.go
68: t.Errorf("#%d: finalizer for type %T didn't run", i, tt.finalizer)
runtime/race/testdata/mop_test.go
1515:type DeferT int
1545:type AddrT struct {
runtime/signal_darwin.go
9:type sigTabT struct {
runtime/signal_dragonfly.go
7:type sigTabT struct {
runtime/signal_freebsd.go
7:type sigTabT struct {
runtime/signal_linux.go
9:type sigTabT struct {
runtime/signal_nacl.go
7:type sigTabT struct {
runtime/signal_netbsd.go
7:type sigTabT struct {
runtime/signal_openbsd.go
7:type sigTabT struct {
runtime/signal_plan9.go
7:type sigTabT struct {
runtime/signal_solaris.go
7:type sigTabT struct {
text/template/exec.go
487: // Unless it's an interface, need to get to a value of type *T to guarantee
unicode/letter_test.go
116:type caseT struct {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment