Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newTypeWriter (0.19 sec)

  1. 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)
  2. 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