Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sliceElemRType (0.11 sec)

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

    func chanRType(pos src.XPos, typ *types.Type) ir.Node {
    	return kindRType(pos, typ, types.TCHAN)
    }
    
    // sliceElemRType asserts that typ is a slice type, and returns an
    // expression that yields the *runtime._type value representing typ's
    // element type.
    func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node {
    	base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ)
    	return TypePtrAt(pos, typ.Elem())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top