Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ifaceeq (0.24 sec)

  1. src/html/template/exec_test.go

    	{"eq .V1 .V2", "true", true},
    	{"eq .Ptr .Ptr", "true", true},
    	{"eq .Ptr .NilPtr", "false", true},
    	{"eq .NilPtr .NilPtr", "true", true},
    	{"eq .Iface1 .Iface1", "true", true},
    	{"eq .Iface1 .Iface2", "false", true},
    	{"eq .Iface2 .Iface2", "true", true},
    	{"eq .Map .Map", "true", true},        // Uncomparable types but nil is OK.
    	{"eq .Map nil", "true", true},         // Uncomparable types but nil is OK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    	{"eq .V1 .V2", "true", true},
    	{"eq .Ptr .Ptr", "true", true},
    	{"eq .Ptr .NilPtr", "false", true},
    	{"eq .NilPtr .NilPtr", "true", true},
    	{"eq .Iface1 .Iface1", "true", true},
    	{"eq .Iface1 .NilIface", "false", true},
    	{"eq .NilIface .NilIface", "true", true},
    	{"eq .NilIface .Iface1", "false", true},
    	{"eq .NilIface 0", "false", true},
    	{"eq 0 .NilIface", "false", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/type.go

    	case TCHAN,
    		TMAP,
    		TFUNC,
    		TUNSAFEPTR:
    		return true
    
    	case TARRAY:
    		// Array of 1 direct iface type can be direct.
    		return t.NumElem() == 1 && IsDirectIface(t.Elem())
    
    	case TSTRUCT:
    		// Struct with 1 field of direct iface type can be direct.
    		return t.NumFields() == 1 && IsDirectIface(t.Field(0).Type)
    	}
    
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  4. src/reflect/type.go

    	// methods along the way, or else V does not implement T.
    	// This lets us run the scan in overall linear time instead of
    	// the quadratic time  a naive search would require.
    	// See also ../runtime/iface.go.
    	if V.Kind() == abi.Interface {
    		v := (*interfaceType)(unsafe.Pointer(V))
    		i := 0
    		for j := 0; j < len(v.Methods); j++ {
    			tm := &t.Methods[i]
    			tmName := t.nameOff(tm.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.Complete()
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    	alias := NewAlias(obj, Typ[Int])
    	alias.Underlying() // must not panic
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.NumMethods() // unlike go/types, there is no Complete() method, so we complete implicitly
    }
    
    func TestNewAlias_Issue65455(t *testing.T) {
    	obj := NewTypeName(nopos, nil, "A", nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    		tdmap:    make(map[loader.Sym]loader.Sym),
    		rtmap:    make(map[loader.Sym]loader.Sym),
    	}
    	d.typeRuntimeEface = d.lookupOrDiag("type:runtime.eface")
    	d.typeRuntimeIface = d.lookupOrDiag("type:runtime.iface")
    
    	if ctxt.HeadType == objabi.Haix {
    		// Initial map used to store package size for each DWARF section.
    		dwsectCUSize = make(map[string]uint64)
    	}
    
    	// For ctxt.Diagnostic messages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top