Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for typeOff (0.34 sec)

  1. src/cmd/compile/internal/typecheck/iexport.go

    //     type Alias struct {
    //         Tag  byte // 'A'
    //         Pos  Pos
    //         Type typeOff
    //     }
    //
    //     // "Automatic" declaration of each typeparam
    //     type TypeParam struct {
    //         Tag        byte // 'P'
    //         Pos        Pos
    //         Implicit   bool
    //         Constraint typeOff
    //     }
    //
    // typeOff means a uvarint that either indicates a predeclared type,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/runtime/plugin.go

    	syms = make(map[string]any, len(md.ptab))
    	for _, ptab := range md.ptab {
    		symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name)
    		t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler?
    		var val any
    		valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val))
    		(*valp)[0] = unsafe.Pointer(t)
    
    		name := symName.Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeref.go

    )
    
    // TypeRef is the implementation of TypeRef for an unstructured object.
    // This is especially usefully when the schema is not known or available.
    type TypeRef struct {
    	celObjectType *types.Type
    	celTypeType   *types.Type
    }
    
    func (r *TypeRef) HasTrait(trait int) bool {
    	return common.ObjectTraits|trait != 0
    }
    
    // TypeName returns the name of this TypeRef.
    func (r *TypeRef) TypeName() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package inspector
    
    // This file defines func typeOf(ast.Node) uint64.
    //
    // The initial map-based implementation was too slow;
    // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196
    
    import (
    	"go/ast"
    	"math"
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    // construction syntax.
    type ObjectVal struct {
    	typeRef TypeRef
    	fields  map[string]ref.Val
    }
    
    // NewObjectVal creates an ObjectVal by its TypeRef and its fields.
    func NewObjectVal(typeRef TypeRef, fields map[string]ref.Val) *ObjectVal {
    	return &ObjectVal{
    		typeRef: typeRef,
    		fields:  fields,
    	}
    }
    
    var _ ref.Val = (*ObjectVal)(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h.pump

    struct Types0 {};
    
    // Type lists of length 1, 2, 3, and so on.
    
    template <typename T1>
    struct Types1 {
      typedef T1 Head;
      typedef Types0 Tail;
    };
    
    $range i 2..n
    
    $for i [[
    $range j 1..i
    $range k 2..i
    template <$for j, [[typename T$j]]>
    struct Types$i {
      typedef T1 Head;
      typedef Types$(i-1)<$for k, [[T$k]]> Tail;
    };
    
    
    ]]
    
    }  // namespace internal
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h.pump

    struct Types0 {};
    
    // Type lists of length 1, 2, 3, and so on.
    
    template <typename T1>
    struct Types1 {
      typedef T1 Head;
      typedef Types0 Tail;
    };
    
    $range i 2..n
    
    $for i [[
    $range j 1..i
    $range k 2..i
    template <$for j, [[typename T$j]]>
    struct Types$i {
      typedef T1 Head;
      typedef Types$(i-1)<$for k, [[T$k]]> Tail;
    };
    
    
    ]]
    
    }  // namespace internal
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go

    	if name == "nonExisting" {
    		return nil, false
    	}
    	return m.TypeRef.Field(name)
    }
    
    func (m *mockTypeResolverForOptional) Resolve(name string) (common.TypeRef, bool) {
    	r, ok := m.mockTypeResolver.Resolve(name)
    	if ok {
    		return &mockTypeRefForOptional{TypeRef: r}, ok
    	}
    	return nil, false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/reflect/type_test.go

    		{"func(func(int, int))", reflect.TypeOf(func(func(int, int)) {}), false},
    		{"int64", reflect.TypeOf(int64(1)), false},
    		{"uint64", reflect.TypeOf(uint64(1)), false},
    		{"*[4]int", reflect.TypeOf(&[4]int{}), true},
    		{"chan int64", reflect.TypeOf(make(chan int64)), false},
    		{"map[int]int", reflect.TypeOf(make(map[int]int)), true},
    		{"string", reflect.TypeOf(""), true},
    		{"[]int", reflect.TypeOf([]int{}), true},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionsStorageTest.groovy

        def "favor exact same type over assignable"() {
            given:
            storage.add typeOf(Integer), 'int', 23
            storage.add typeOf(Number), 'num', 42
            storage.add new TypeOf<List<String>>() {}, 'stringList', ['string']
    
            expect:
            storage.findByType(typeOf(Number)) == 42
            storage.findByType(new TypeOf<List<String>>() {}) == ['string']
        }
    
        def "get schema"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top