Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for gotype (0.15 sec)

  1. src/cmd/compile/internal/walk/switch.go

    // A typeSwitch walks a type switch.
    type typeSwitch struct {
    	// Temporary variables (i.e., ONAMEs) used by type switch dispatch logic:
    	srcName  ir.Node // value being type-switched on
    	hashName ir.Node // type hash of the value being type-switched on
    	okName   ir.Node // boolean used for comma-ok type assertions
    	itabName ir.Node // itab value to use for first word of non-empty interface
    }
    
    type typeClause struct {
    	hash uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/expr.go

    func walkDotType(n *ir.TypeAssertExpr, init *ir.Nodes) ir.Node {
    	n.X = walkExpr(n.X, init)
    	// Set up interface type addresses for back end.
    	if !n.Type().IsInterface() && !n.X.Type().IsEmptyInterface() {
    		n.ITab = reflectdata.ITabAddrAt(base.Pos, n.Type(), n.X.Type())
    	}
    	if n.X.Type().IsInterface() && n.Type().IsInterface() && !n.Type().IsEmptyInterface() {
    		// This kind of conversion needs a runtime call. Allocate
    		// a descriptor for that call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. src/encoding/gob/type.go

    var (
    	types                = make(map[reflect.Type]gobType, 32)
    	idToTypeSlice        = make([]gobType, 1, firstUserId)
    	builtinIdToTypeSlice [firstUserId]gobType // set in init() after builtins are established
    )
    
    func idToType(id typeId) gobType {
    	if id < 0 || int(id) >= len(idToTypeSlice) {
    		return nil
    	}
    	return idToTypeSlice[id]
    }
    
    func builtinIdToType(id typeId) gobType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/internal/reflectlite/type.go

    	}
    	return s[i+1:]
    }
    
    func toRType(t *abi.Type) rtype {
    	return rtype{t}
    }
    
    func elem(t *abi.Type) *abi.Type {
    	et := t.Elem()
    	if et != nil {
    		return et
    	}
    	panic("reflect: Elem of invalid type " + toRType(t).String())
    }
    
    func (t rtype) Elem() Type {
    	return toType(elem(t.common()))
    }
    
    func (t rtype) In(i int) Type {
    	tt := t.Type.FuncType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/convert.go

    	if n.Type().SoleComponent() == nil {
    		return n
    	}
    	// Keep in sync with cmd/compile/internal/types/type.go:Type.SoleComponent.
    	for {
    		switch {
    		case n.Type().IsStruct():
    			if n.Type().Field(0).Sym.IsBlank() {
    				// Treat blank fields as the zero value as the Go language requires.
    				n = typecheck.TempAt(base.Pos, ir.CurFunc, n.Type().Field(0).Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  6. maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

         *
         * @param parser The XML parser
         * @param toType The target type
         * @return Converted instance of the target type
         */
        private Object parse(final MXParser parser, final TypeLiteral<?> toType) throws Exception {
            parser.require(XmlPullParser.START_TAG, null, null);
    
            final Class<?> rawType = toType.getRawType();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 18 00:24:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/registry/registry_test.go

    	if gottype != test.Type {
    		t.Errorf("want %s value type %v, got %v", test.Name, test.Type, gottype)
    		return
    	}
    	// read full data
    	gotsize, gottype, err = k.GetValue(test.Name, make([]byte, size))
    	if err != nil {
    		t.Errorf("GetValue(%s, [%d]byte) failed: %v", test.Name, size, err)
    		return
    	}
    	if gotsize != size {
    		t.Errorf("want %s value size of %d, got %v", test.Name, size, gotsize)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

        46: 0000000000404050     0 NOTYPE  GLOBAL DEFAULT   25 __data_start
        47: 0000000000404198     0 NOTYPE  GLOBAL DEFAULT   26 _end
        48: 0000000000404060     0 NOTYPE  GLOBAL DEFAULT   26 __bss_start
        49: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND _ZNSt8ios_base4I[...]
        50: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND _ZNSolsEi@GLIBCXX_3.4
        51: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/node/graph_test.go

    		desc        string
    		fromType    vertexType
    		toType      vertexType
    		toNamespace string
    		toName      string
    		start       *Graph
    		expect      *Graph
    	}{
    		{
    			// single edge from a configmap to a node, will delete edge and orphaned configmap
    			desc:        "edges and source orphans are deleted, destination orphans are preserved",
    			fromType:    configMapVertexType,
    			toType:      nodeVertexType,
    			toNamespace: "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  10. src/net/net_fake.go

    	if !ok {
    		return wrapErr(syscall.ECONNREFUSED)
    	}
    	ln := lni.(*netFD)
    	if ln.sotype != fd.sotype {
    		return wrapErr(syscall.EPROTOTYPE)
    	}
    	if ln.incoming == nil {
    		return wrapErr(syscall.ECONNREFUSED)
    	}
    
    	peer := &netFD{
    		family:      ln.family,
    		sotype:      ln.sotype,
    		net:         ln.net,
    		laddr:       ln.laddr,
    		raddr:       fd.laddr,
    		isConnected: true,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top