Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 73 for FuncType (0.19 sec)

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

    			}
    			continue // ignore
    		}
    
    		// The go/parser doesn't accept method type parameters but an ast.FuncType may have them.
    		if sig.tparams != nil {
    			var at positioner = f.Type
    			if ftyp, _ := f.Type.(*ast.FuncType); ftyp != nil && ftyp.TypeParams != nil {
    				at = ftyp.TypeParams
    			}
    			check.error(at, InvalidSyntaxTree, "methods cannot have type parameters")
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. src/go/types/signature.go

    // ----------------------------------------------------------------------------
    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.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: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. src/go/ast/ast.go

    		Incomplete bool       // true if (source) fields are missing in the Fields list
    	}
    
    	// Pointer types are represented via StarExpr nodes.
    
    	// A FuncType node represents a function type.
    	FuncType struct {
    		Func       token.Pos  // position of "func" keyword (token.NoPos if there is no "func")
    		TypeParams *FieldList // type parameters; or nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  10. 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)
Back to top