- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for funcType (0.12 sec)
-
src/internal/abi/type.go
if t.Kind() != Array { return nil } return (*ArrayType)(unsafe.Pointer(t)) } // FuncType returns t cast to a *FuncType, or nil if its tag does not match. func (t *Type) FuncType() *FuncType { if t.Kind() != Func { return nil } return (*FuncType)(unsafe.Pointer(t)) } // InterfaceType returns t cast to a *InterfaceType, or nil if its tag does not match.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/internal/reflectlite/type.go
} func (t rtype) NumIn() int { tt := t.Type.FuncType() if tt == nil { panic("reflect: NumIn of non-func type") } return int(tt.InCount) } func (t rtype) NumOut() int { tt := t.Type.FuncType() if tt == nil { panic("reflect: NumOut of non-func type") } return tt.NumOut() } func (t rtype) Out(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) -
src/reflect/type.go
return ti.(Type) } var funcTypes []Type var funcTypesMutex sync.Mutex func initFuncTypes(n int) Type { funcTypesMutex.Lock() defer funcTypesMutex.Unlock() if n >= len(funcTypes) { newFuncTypes := make([]Type, n+1) copy(newFuncTypes, funcTypes) funcTypes = newFuncTypes } if funcTypes[n] != nil { return funcTypes[n] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
continue } return n.Pos() // types // case *ArrayType: // case *SliceType: // case *DotsType: // case *StructType: // case *Field: // case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt: // case *ExprStmt: case *SendStmt: m = n.Chan // case *DeclStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/runtime/type.go
type interfacetype = abi.InterfaceType type maptype = abi.MapType type arraytype = abi.ArrayType type chantype = abi.ChanType type slicetype = abi.SliceType type functype = abi.FuncType type ptrtype = abi.PtrType type name = abi.Name type structtype = abi.StructType func pkgPath(n name) string { if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 { return "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 12.7K bytes - Viewed (0) -
src/internal/reflectlite/reflect_mirror_test.go
"go/parser" "go/token" "io/fs" "os" "path/filepath" "runtime" "strings" "sync" "testing" ) var typeNames = []string{ "uncommonType", "arrayType", "chanType", "funcType", "interfaceType", "ptrType", "sliceType", "structType", } type visitor struct { m map[string]map[string]bool } func newVisitor() visitor { v := visitor{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
break } // Add the result type, if any. if name.FuncType.Result != nil { rtype := p.rewriteUnsafe(name.FuncType.Result.Go) if rtype != name.FuncType.Result.Go { needsUnsafe = true } sb.WriteString(gofmt(rtype)) result = true } // Add the second result type, if any. if twoResults { if name.FuncType.Result == nil { // An explicit void result looks odd but it
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
func (t *Type) ResultsTuple() *Type { return t.funcType().resultsTuple } // Recvs returns a slice of receiver parameters of signature type t. // The returned slice always has length 0 or 1. func (t *Type) Recvs() []*Field { return t.funcType().recvs() } // Params returns a slice of regular parameters of signature type t. func (t *Type) Params() []*Field { return t.funcType().params() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
} p.want(_Rbrack) return x } // If context != "", type parameters are not permitted. func (p *parser) funcType(context string) ([]*Field, *FuncType) { if trace { defer p.trace("funcType")() } typ := new(FuncType) typ.pos = p.pos() var tparamList []*Field if p.got(_Lbrack) { if context != "" { // accept but complain
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/signature.go
// ---------------------------------------------------------------------------- // Implementation // funcType type-checks a function or method type. func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []*syntax.Field, ftyp *syntax.FuncType) { check.openScope(ftyp, "function") check.scope.isFunc = true check.recordScope(ftyp, check.scope) sig.scope = check.scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:33:05 UTC 2024 - 12.6K bytes - Viewed (0)