- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for newTypeWriter (0.24 sec)
-
src/go/types/typestring.go
func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) { newTypeWriter(buf, qf).typ(typ) } // WriteSignature writes the representation of the signature sig to buf, // without a leading "func" keyword. The [Qualifier] controls the printing // of package-level objects, and may be nil. func WriteSignature(buf *bytes.Buffer, sig *Signature, qf Qualifier) { newTypeWriter(buf, qf).signature(sig) } type typeWriter struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) { newTypeWriter(buf, qf).typ(typ) } // WriteSignature writes the representation of the signature sig to buf, // without a leading "func" keyword. The [Qualifier] controls the printing // of package-level objects, and may be nil. func WriteSignature(buf *bytes.Buffer, sig *Signature, qf Qualifier) { newTypeWriter(buf, qf).signature(sig) } type typeWriter struct {
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/cmd/compile/internal/types2/object.go
switch t := typ.(type) { case *Basic: // Don't print anything more for basic types since there's // no more information. return case *Named: if t.TypeParams().Len() > 0 { newTypeWriter(buf, qf).tParamList(t.TypeParams().list()) } } if tname.IsAlias() { buf.WriteString(" =") if alias, ok := typ.(*Alias); ok { // materialized? (gotypesalias=1) typ = alias.fromRHS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/go/types/object.go
switch t := typ.(type) { case *Basic: // Don't print anything more for basic types since there's // no more information. return case *Named: if t.TypeParams().Len() > 0 { newTypeWriter(buf, qf).tParamList(t.TypeParams().list()) } } if tname.IsAlias() { buf.WriteString(" =") if alias, ok := typ.(*Alias); ok { // materialized? (gotypesalias=1) typ = alias.fromRHS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/lookup.go
// check may be nil. func (check *Checker) funcString(f *Func, pkgInfo bool) string { buf := bytes.NewBufferString(f.name) var qf Qualifier if check != nil && !pkgInfo { qf = check.qualifier } w := newTypeWriter(buf, qf) w.pkgInfo = pkgInfo w.paramNames = false w.signature(f.typ.(*Signature)) return buf.String() } // assertableTo reports whether a value of type V can be asserted to have type T.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 19.8K bytes - Viewed (0) -
src/go/types/lookup.go
// check may be nil. func (check *Checker) funcString(f *Func, pkgInfo bool) string { buf := bytes.NewBufferString(f.name) var qf Qualifier if check != nil && !pkgInfo { qf = check.qualifier } w := newTypeWriter(buf, qf) w.pkgInfo = pkgInfo w.paramNames = false w.signature(f.typ.(*Signature)) return buf.String() } // assertableTo reports whether a value of type V can be asserted to have type T.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 19.9K bytes - Viewed (0) -
src/go/types/unify.go
tparams := make(typeParamsById, len(u.handles)) i := 0 for tpar := range u.handles { tparams[i] = tpar i++ } sort.Sort(tparams) var buf bytes.Buffer w := newTypeWriter(&buf, nil) w.byte('[') for i, x := range tparams { if i > 0 { w.string(", ") } w.typ(x) w.string(": ") w.typ(u.at(x)) } w.byte(']') return buf.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
tparams := make(typeParamsById, len(u.handles)) i := 0 for tpar := range u.handles { tparams[i] = tpar i++ } sort.Sort(tparams) var buf bytes.Buffer w := newTypeWriter(&buf, nil) w.byte('[') for i, x := range tparams { if i > 0 { w.string(", ") } w.typ(x) w.string(": ") w.typ(u.at(x)) } w.byte(']') return buf.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0)