Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for FuncType (0.21 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/types2/expr.go

    		*syntax.IndexExpr,
    		*syntax.SliceExpr,
    		*syntax.AssertExpr,
    		*syntax.ListExpr,
    		//*syntax.StarExpr,
    		*syntax.KeyValueExpr,
    		*syntax.ArrayType,
    		*syntax.StructType,
    		*syntax.FuncType,
    		*syntax.InterfaceType,
    		*syntax.MapType,
    		*syntax.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
    - 51.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    
    	ft = simplify(ft)
    
    	// For a local name, discard the return type, so that it
    	// doesn't get confused with the top level return type.
    	if local == forLocalName {
    		if functype, ok := ft.(*FunctionType); ok {
    			functype.ForLocalName = true
    		}
    	}
    
    	// Any top-level qualifiers belong to the function type.
    	if mwq != nil {
    		a = mwq.Method
    		mwq.Method = ft
    		ft = mwq
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/dwarf.go

    	// Needed by the prettyprinter code for interface inspection.
    	for _, typ := range []string{
    		"type:internal/abi.Type",
    		"type:internal/abi.ArrayType",
    		"type:internal/abi.ChanType",
    		"type:internal/abi.FuncType",
    		"type:internal/abi.MapType",
    		"type:internal/abi.PtrType",
    		"type:internal/abi.SliceType",
    		"type:internal/abi.StructType",
    		"type:internal/abi.InterfaceType",
    		"type:internal/abi.ITab",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		}
    
    		// scope descriptions must match
    		for node, scope := range info.Scopes {
    			var kind string
    			switch node.(type) {
    			case *syntax.File:
    				kind = "file"
    			case *syntax.FuncType:
    				kind = "func"
    			case *syntax.BlockStmt:
    				kind = "block"
    			case *syntax.IfStmt:
    				kind = "if"
    			case *syntax.SwitchStmt:
    				kind = "switch"
    			case *syntax.SelectStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top