Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 168 for _typ (0.03 sec)

  1. src/go/types/typeset.go

    	if tset, _ := unionSets[utyp]; tset != nil {
    		return tset
    	}
    
    	// avoid infinite recursion (see also computeInterfaceTypeSet)
    	unionSets[utyp] = new(_TypeSet)
    
    	var allTerms termlist
    	for _, t := range utyp.terms {
    		var terms termlist
    		u := under(t.typ)
    		if ui, _ := u.(*Interface); ui != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/go/doc/exports.go

    }
    
    // copyConstType returns a copy of typ with position pos.
    // typ must be a valid constant type.
    // In practice, only (possibly qualified) identifiers are possible.
    func copyConstType(typ ast.Expr, pos token.Pos) ast.Expr {
    	switch typ := typ.(type) {
    	case *ast.Ident:
    		return &ast.Ident{Name: typ.Name, NamePos: pos}
    	case *ast.SelectorExpr:
    		if id, ok := typ.X.(*ast.Ident); ok {
    			// presumably a qualified identifier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  3. src/runtime/type.go

    		return
    	}
    	typehash := make(map[uint32][]*_type, len(firstmoduledata.typelinks))
    
    	modules := activeModules()
    	prev := modules[0]
    	for _, md := range modules[1:] {
    		// Collect types from the previous module into typehash.
    	collect:
    		for _, tl := range prev.typelinks {
    			var t *_type
    			if prev.typemap == nil {
    				t = (*_type)(unsafe.Pointer(prev.types + uintptr(tl)))
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/reflect/makefunc.go

    func MakeFunc(typ Type, fn func(args []Value) (results []Value)) Value {
    	if typ.Kind() != Func {
    		panic("reflect: call of MakeFunc with non-Func type")
    	}
    
    	t := typ.common()
    	ftyp := (*funcType)(unsafe.Pointer(t))
    
    	code := abi.FuncPCABI0(makeFuncStub)
    
    	// makeFuncImpl contains a stack map for use by the runtime
    	_, _, abid := funcLayout(ftyp, nil)
    
    	impl := &makeFuncImpl{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/runtime/unsafe.go

    	}
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeSlice
    func unsafeslice64(et *_type, ptr unsafe.Pointer, len64 int64) {
    	len := int(len64)
    	if int64(len) != len64 {
    		panicunsafeslicelen1(getcallerpc())
    	}
    	unsafeslice(et, ptr, len)
    }
    
    func unsafeslicecheckptr(et *_type, ptr unsafe.Pointer, len64 int64) {
    	unsafeslice64(et, ptr, len64)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/runtime/mbarrier.go

    func reflect_typedmemclr(typ *_type, ptr unsafe.Pointer) {
    	typedmemclr(typ, ptr)
    }
    
    //go:linkname reflect_typedmemclrpartial reflect.typedmemclrpartial
    func reflect_typedmemclrpartial(typ *_type, ptr unsafe.Pointer, off, size uintptr) {
    	if writeBarrier.enabled && typ.Pointers() {
    		// Pass nil for the type. ptr does not point to value of type typ,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/parser_test.go

    	"text/scanner"
    )
    
    var typeParserTests = []struct {
    	id, typ, want, underlying, methods string
    }{
    	{id: "foo", typ: "<type -1>", want: "int8"},
    	{id: "foo", typ: "<type 1 *<type -19>>", want: "*error"},
    	{id: "foo", typ: "<type 1 *any>", want: "unsafe.Pointer"},
    	{id: "foo", typ: "<type 1 \"Bar\" <type 2 *<type 1>>>", want: "foo.Bar", underlying: "*foo.Bar"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 20:35:55 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  8. src/runtime/export_debug_test.go

    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    	fv := (*funcval)(f.data)
    
    	a := efaceOf(&stackArgs)
    	if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
    		return nil, plainError("args must be a pointer or nil")
    	}
    	argp := a.data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/ureader.go

    		idx = dict.derived[idx].idx
    	} else {
    		where = &pr.typs[idx]
    	}
    
    	if typ := *where; typ != nil {
    		return typ
    	}
    
    	var typ types.Type
    	{
    		r := pr.tempReader(pkgbits.RelocType, idx, pkgbits.SyncTypeIdx)
    		r.dict = dict
    
    		typ = r.doTyp()
    		assert(typ != nil)
    		pr.retireReader(r)
    	}
    	// See comment in pkgReader.typIdx explaining how this happens.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/runtime/alg.go

    	y := *(*iface)(q)
    	return x.tab == y.tab && ifaceeq(x.tab, x.data, y.data)
    }
    func nilinterequal(p, q unsafe.Pointer) bool {
    	x := *(*eface)(p)
    	y := *(*eface)(q)
    	return x._type == y._type && efaceeq(x._type, x.data, y.data)
    }
    func efaceeq(t *_type, x, y unsafe.Pointer) bool {
    	if t == nil {
    		return true
    	}
    	eq := t.Equal
    	if eq == nil {
    		panic(errorString("comparing uncomparable type " + toRType(t).string()))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top