Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 210 for gotype (0.19 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/ir/type.go

    func TypeNode(t *types.Type) Node {
    	if n := t.Obj(); n != nil {
    		if n.Type() != t {
    			base.Fatalf("type skew: %v has type %v, but expected %v", n, n.Type(), t)
    		}
    		return n.(*Name)
    	}
    	return newTypeNode(t)
    }
    
    // A DynamicType represents a type expression whose exact type must be
    // computed dynamically.
    type DynamicType struct {
    	miniExpr
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/reflect/type.go

    func typeOffFor(t *abi.Type, off aTypeOff) *abi.Type {
    	return toRType(t).typeOff(off)
    }
    
    func (t *interfaceType) typeOff(off aTypeOff) *abi.Type {
    	return toRType(&t.Type).typeOff(off)
    }
    
    func (t *interfaceType) common() *abi.Type {
    	return &t.Type
    }
    
    func (t *interfaceType) uncommon() *abi.UncommonType {
    	return t.Uncommon()
    }
    
    // mapType represents a map type.
    type mapType struct {
    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. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/DumpbinBinaryInfo.groovy

                // 000 0105673E ABS    notype       Static       | @comp.id
                // 001 80000191 ABS    notype       Static       | @feat.00
                // 002 00000000 SECT1  notype       Static       | .drectve
                // 005 00000000 SECT2  notype       Static       | .debug$S
                // 008 00000000 SECT3  notype       Static       | .debug$T
                // 00B 00000000 SECT4  notype       Static       | .text$mn
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. 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)
  7. subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/NotationParserBuilderSpec.groovy

            and:
            def parser = NotationParserBuilder.toType(String.class).fromCharSequence(converter).toComposite()
    
            expect:
            parser.parseNotation(new StringBuilder("12")) == "[12]"
        }
    
        def "can add a converter that converts CharSequence notations when the target type is String"() {
            def parser = NotationParserBuilder.toType(String.class).fromCharSequence().toComposite()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/fix/gotypes_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func init() {
    	addTestCases(gotypesTests, gotypes)
    }
    
    var gotypesTests = []testCase{
    	{
    		Name: "gotypes.0",
    		In: `package main
    
    import "golang.org/x/tools/go/types"
    import "golang.org/x/tools/go/exact"
    
    var _ = exact.Kind
    
    func f() {
    	_ = exact.MakeBool(true)
    }
    `,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  9. src/net/sockopt_linux.go

    )
    
    func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    	if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 00:33:27 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  10. src/net/sockopt_bsd.go

    		}
    	}
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW && supportsIPv4map() {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    	if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX {
    		// Allow broadcast.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top