- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for goTypeName (0.43 sec)
-
src/go/types/typexpr.go
} typ = Typ[Invalid] } // TODO(gri) what is the correct call below? check.recordTypeAndValue(e, typexpr, typ, nil) return typ } // goTypeName returns the Go type name for typ and // removes any occurrences of "types." from that name. func goTypeName(typ Type) string { return strings.ReplaceAll(fmt.Sprintf("%T", typ), "types.", "") } // typInternal drives type checking of types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typexpr.go
} typ = Typ[Invalid] } // TODO(gri) what is the correct call below? check.recordTypeAndValue(e, typexpr, typ, nil) return typ } // goTypeName returns the Go type name for typ and // removes any occurrences of "types2." from that name. func goTypeName(typ Type) string { return strings.ReplaceAll(fmt.Sprintf("%T", typ), "types2.", "") } // typInternal drives type checking of types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
func (w *typeWriter) error(msg string) { if w.ctxt != nil { panic(msg) } w.buf.WriteString("<" + msg + ">") } func (w *typeWriter) typ(typ Type) { if w.seen[typ] { w.error("cycle to " + goTypeName(typ)) return } w.seen[typ] = true defer delete(w.seen, typ) switch t := typ.(type) { case nil: w.error("nil") case *Basic: // exported basic types go into package unsafe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/go/types/typestring.go
func (w *typeWriter) error(msg string) { if w.ctxt != nil { panic(msg) } w.buf.WriteString("<" + msg + ">") } func (w *typeWriter) typ(typ Type) { if w.seen[typ] { w.error("cycle to " + goTypeName(typ)) return } w.seen[typ] = true defer delete(w.seen, typ) switch t := typ.(type) { case nil: w.error("nil") case *Basic: // exported basic types go into package unsafe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0)