Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for makeslice (0.15 sec)

  1. src/cmd/compile/internal/reflectdata/helpers.go

    // type, and returns an expression that yields the *runtime._type
    // value representing that slice type's element type.
    func MakeSliceElemRType(pos src.XPos, n *ir.MakeExpr) ir.Node {
    	assertOp2(n, ir.OMAKESLICE, ir.OMAKESLICECOPY)
    	if hasRType(n, n.RType, "RType") {
    		return n.RType
    	}
    	return sliceElemRType(pos, n.Type())
    }
    
    // RangeMapRType asserts that n is a "range" loop over a map value,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/go/types/methodset_test.go

    			sel := ms.At(i)
    			if got, want := sel.Obj().Name(), m.name; got != want {
    				t.Errorf("%s [method %d]: got name = %q at, want %q", src, i, got, want)
    			}
    			if got, want := sel.Index(), m.index; !sameSlice(got, want) {
    				t.Errorf("%s [method %d]: got index = %v, want %v", src, i, got, want)
    			}
    			if got, want := sel.Indirect(), m.indirect; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 08 15:27:57 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top