Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for varType (0.12 sec)

  1. src/go/types/struct.go

    	// (go.dev/issue/25627).
    	addInvalid := func(ident *ast.Ident) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    	for _, f := range list.List {
    		typ = check.varType(f.Type)
    		tag = check.tag(f.Tag)
    		if len(f.Names) > 0 {
    			// named fields
    			for _, name := range f.Names {
    				add(name, false)
    			}
    		} else {
    			// embedded field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/struct.go

    	for i, f := range e.FieldList {
    		// Fields declared syntactically with the same type (e.g.: a, b, c T)
    		// share the same type expression. Only check type if it's a new type.
    		if i == 0 || f.Type != prev {
    			typ = check.varType(f.Type)
    			prev = f.Type
    		}
    		tag = ""
    		if i < len(e.TagList) {
    			tag = check.tag(e.TagList[i])
    		}
    		if f.Name != nil {
    			// named field
    			add(f.Name, false)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. test/typeparam/issue47708.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type FooType[T any] interface {
    	Foo(BarType[T]) string
    }
    type BarType[T any] interface {
    	Bar(FooType[T]) string
    }
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // type Baz[T any] T
    // func (l Baz[T]) Foo(v BarType[T]) string {
    // 	return v.Bar(l)
    // }
    // type Bob[T any] T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 934 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    func buildTestEnv() (*cel.Env, error) {
    	fooType := common.SchemaDeclType(simpleMapSchema("foo", spec.StringProperty()), true).MaybeAssignTypeName("fooType")
    	barType := common.SchemaDeclType(simpleMapSchema("bar", spec.Int64Property()), true).MaybeAssignTypeName("barType")
    
    	env, err := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true).Extend(
    		environment.VersionedOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. test/typeparam/issue47710.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type FooType[t any] interface {
    	Foo(BarType[t])
    }
    type BarType[t any] interface {
    	Int(IntType[t]) FooType[int]
    }
    
    type IntType[t any] int
    
    func (n IntType[t]) Foo(BarType[t]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 398 bytes
    - Viewed (0)
  6. src/internal/syscall/windows/registry/export_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build windows
    
    package registry
    
    func (k Key) SetValue(name string, valtype uint32, data []byte) error {
    	return k.setValue(name, valtype, data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 22:38:00 UTC 2021
    - 312 bytes
    - Viewed (0)
  7. src/internal/syscall/windows/registry/syscall.go

    //sys	regEnumValue(key syscall.Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegEnumValueW
    //sys	regDeleteValue(key syscall.Handle, name *uint16) (regerrno error) = advapi32.RegDeleteValueW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/internal/syscall/windows/registry/zsyscall_windows.go

    func regEnumValue(key syscall.Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) {
    	r0, _, _ := syscall.Syscall9(procRegEnumValueW.Addr(), 8, uintptr(key), uintptr(index), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(valtype)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(buflen)), 0)
    	if r0 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4K bytes
    - Viewed (0)
Back to top