Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newTypeWriter (0.32 sec)

  1. src/go/types/format.go

    			buf.WriteByte(']')
    			arg = buf.String()
    		case Object:
    			arg = ObjectString(a, qf)
    		case Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			w.typ(a)
    			arg = buf.String()
    		case []Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			buf.WriteByte('[')
    			for i, x := range a {
    				if i > 0 {
    					buf.WriteString(", ")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/format.go

    			buf.WriteByte(']')
    			arg = buf.String()
    		case Object:
    			arg = ObjectString(a, qf)
    		case Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			w.typ(a)
    			arg = buf.String()
    		case []Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			buf.WriteByte('[')
    			for i, x := range a {
    				if i > 0 {
    					buf.WriteString(", ")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top