Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for FuncType (0.2 sec)

  1. 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)
  2. src/go/types/exprstring.go

    		}
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Elt)
    
    	case *ast.StructType:
    		buf.WriteString("struct{")
    		writeFieldList(buf, x.Fields.List, "; ", false)
    		buf.WriteByte('}')
    
    	case *ast.FuncType:
    		buf.WriteString("func")
    		writeSigExpr(buf, x)
    
    	case *ast.InterfaceType:
    		buf.WriteString("interface{")
    		writeFieldList(buf, x.Methods.List, "; ", true)
    		buf.WriteByte('}')
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. 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)
  4. src/reflect/export_test.go

    	var ft *abi.Type
    	var abid abiDesc
    	if rcvr != nil {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.common())), rcvr.common())
    	} else {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.(*rtype))), nil)
    	}
    	// Extract size information.
    	argSize = abid.stackCallArgsSize
    	retOffset = abid.retOffset
    	frametype = toType(ft)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/reflect/makefunc.go

    // The first three words of this type must be kept in sync with
    // methodValue and runtime.reflectMethodValue.
    // Any changes should be reflected in all three.
    type makeFuncImpl struct {
    	makeFuncCtxt
    	ftyp *funcType
    	fn   func([]Value) []Value
    }
    
    // MakeFunc returns a new function of the given [Type]
    // that wraps the function fn. When called, that new function
    // does the following:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/nodes.go

    	// func Receiver Name Type
    	FuncDecl struct {
    		Pragma     Pragma
    		Recv       *Field // nil means regular function
    		Name       *Name
    		TParamList []*Field // nil means no type parameters
    		Type       *FuncType
    		Body       *BlockStmt // nil means no body (forward declaration)
    		decl
    	}
    )
    
    type decl struct{ node }
    
    func (*decl) aDecl() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/cgo/out.go

    	// gcc has different packing requirements.
    	fmt.Fprintf(fgcc, "\t%s %v *_cgo_a = v;\n", ctype, p.packedAttribute())
    	if n.FuncType.Result != nil {
    		// Save the stack top for use below.
    		fmt.Fprintf(fgcc, "\tchar *_cgo_stktop = _cgo_topofstack();\n")
    	}
    	tr := n.FuncType.Result
    	if tr != nil {
    		fmt.Fprintf(fgcc, "\t__typeof__(_cgo_a->r) _cgo_r;\n")
    	}
    	fmt.Fprintf(fgcc, "\t_cgo_tsan_acquire();\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. src/reflect/type.go

    // chanType represents a channel type.
    type chanType = abi.ChanType
    
    // funcType represents a function type.
    //
    // A *rtype for each in and out parameter is stored in an array that
    // directly follows the funcType (and possibly its uncommonType). So
    // a function type with one method, one input, and one output is:
    //
    //	struct {
    //		funcType
    //		uncommonType
    //		[2]*rtype    // [0] is in, [1] is out
    //	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  10. 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)
Back to top