Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for FuncType (0.14 sec)

  1. src/cmd/cgo/ast.go

    		f.walk(&n.Value, ctxExpr, visit)
    
    	case *ast.ArrayType:
    		f.walk(&n.Len, ctxExpr, visit)
    		f.walk(&n.Elt, ctxType, visit)
    	case *ast.StructType:
    		f.walk(n.Fields, ctxField, visit)
    	case *ast.FuncType:
    		if tparams := funcTypeTypeParams(n); tparams != nil {
    			f.walk(tparams, ctxParam, visit)
    		}
    		f.walk(n.Params, ctxParam, visit)
    		if n.Results != nil {
    			f.walk(n.Results, ctxParam, visit)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	// Types
    	case *ast.ArrayType:
    		a.apply(n, "Len", nil, n.Len)
    		a.apply(n, "Elt", nil, n.Elt)
    
    	case *ast.StructType:
    		a.apply(n, "Fields", nil, n.Fields)
    
    	case *ast.FuncType:
    		if tparams := n.TypeParams; tparams != nil {
    			a.apply(n, "TypeParams", nil, tparams)
    		}
    		a.apply(n, "Params", nil, n.Params)
    		a.apply(n, "Results", nil, n.Results)
    
    	case *ast.InterfaceType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/reflect/abi.go

    	println()
    }
    
    func dumpPtrBitMap(b abi.IntArgRegBitmap) {
    	for i := 0; i < intArgRegs; i++ {
    		x := 0
    		if b.Get(i) {
    			x = 1
    		}
    		print(" ", x)
    	}
    }
    
    func newAbiDesc(t *funcType, rcvr *abi.Type) abiDesc {
    	// We need to add space for this argument to
    	// the frame so that it can spill args into it.
    	//
    	// The size of this space is just the sum of the sizes
    	// of each register-allocated type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/runtime/syscall_windows.go

    		cdecl = false
    	}
    
    	if fn._type == nil || (fn._type.Kind_&abi.KindMask) != abi.Func {
    		panic("compileCallback: expected function with one uintptr-sized result")
    	}
    	ft := (*functype)(unsafe.Pointer(fn._type))
    
    	// Check arguments and construct ABI translation.
    	var abiMap abiDesc
    	for _, t := range ft.InSlice() {
    		abiMap.assignArg(t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/deadcode.go

    	switch decodetypeKind(arch, p) {
    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/cmd/link/internal/wasm/asm.go

    func writeTypeSec(ctxt *ld.Link, types []*wasmFuncType) {
    	sizeOffset := writeSecHeader(ctxt, sectionType)
    
    	writeUleb128(ctxt.Out, uint64(len(types)))
    
    	for _, t := range types {
    		ctxt.Out.WriteByte(0x60) // functype
    		writeUleb128(ctxt.Out, uint64(len(t.Params)))
    		for _, v := range t.Params {
    			ctxt.Out.WriteByte(byte(v))
    		}
    		writeUleb128(ctxt.Out, uint64(len(t.Results)))
    		for _, v := range t.Results {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. src/runtime/mfinal.go

    			removefinalizer(e.data)
    		})
    		return
    	}
    
    	if ftyp.Kind_&abi.KindMask != abi.Func {
    		throw("runtime.SetFinalizer: second argument is " + toRType(ftyp).string() + ", not a function")
    	}
    	ft := (*functype)(unsafe.Pointer(ftyp))
    	if ft.IsVariadic() {
    		throw("runtime.SetFinalizer: cannot pass " + toRType(etyp).string() + " to finalizer " + toRType(ftyp).string() + " because dotdotdot")
    	}
    	if ft.InCount != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    		*ast.FuncLit,
    		*ast.CompositeLit,
    		*ast.IndexExpr,
    		*ast.SliceExpr,
    		*ast.TypeAssertExpr,
    		*ast.StarExpr,
    		*ast.KeyValueExpr,
    		*ast.ArrayType,
    		*ast.StructType,
    		*ast.FuncType,
    		*ast.InterfaceType,
    		*ast.MapType,
    		*ast.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/go/parser/parser_test.go

    	{name: "chan2", format: "package main; var x «<-chan »int"},
    	{name: "interface", format: "package main; var x «interface { M() «int» }»", scope: true, scopeMultiplier: 2}, // Scopes: InterfaceType, FuncType
    	{name: "map", format: "package main; var x «map[int]»int"},
    	{name: "slicelit", format: "package main; var x = «[]any{«»}»", parseMultiplier: 2},             // Parser nodes: UnaryExpr, CompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"FuncDecl.Type", Field, 0},
    		{"FuncLit", Type, 0},
    		{"FuncLit.Body", Field, 0},
    		{"FuncLit.Type", Field, 0},
    		{"FuncType", Type, 0},
    		{"FuncType.Func", Field, 0},
    		{"FuncType.Params", Field, 0},
    		{"FuncType.Results", Field, 0},
    		{"FuncType.TypeParams", Field, 18},
    		{"GenDecl", Type, 0},
    		{"GenDecl.Doc", Field, 0},
    		{"GenDecl.Lparen", Field, 0},
    		{"GenDecl.Rparen", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top