Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for IsVariadic (0.12 sec)

  1. src/go/internal/gccgoimporter/parser.go

    	var list []*types.Var
    	isVariadic := false
    
    	p.expect('(')
    	for p.tok != ')' && p.tok != scanner.EOF {
    		if len(list) > 0 {
    			p.expect(',')
    		}
    		par, variadic := p.parseParam(pkg)
    		list = append(list, par)
    		if variadic {
    			if isVariadic {
    				p.error("... not on final argument")
    			}
    			isVariadic = true
    		}
    	}
    	p.expect(')')
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (k <type 28>) String () <type -16>;
    >; Implements (u <type 26>) <type -15>; AssignableTo (u <type 26>) <type -15>; Bits () <type -11>; ChanDir () <type 29 "ChanDir" <type -11>
     func (d <type 29>) String () <type -16>;
    >; IsVariadic () <type -15>; Elem () <type 26>; Field (i <type -11>) <type 30 "StructField" <type 31 struct { Name <type -16>; PkgPath <type -16>; Type <type 26>; Tag <type 32 "StructTag" <type -16>
     func (tag <type 32>) Get (key <type -16>) <type -16>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  3. src/text/template/funcs.go

    	}
    
    	if err := goodFunc(name, typ); err != nil {
    		return reflect.Value{}, err
    	}
    	numIn := typ.NumIn()
    	var dddType reflect.Type
    	if typ.IsVariadic() {
    		if len(args) < numIn-1 {
    			return reflect.Value{}, fmt.Errorf("wrong number of args for %s: got %d want at least %d", name, len(args), numIn-1)
    		}
    		dddType = typ.In(numIn - 1).Elem()
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. src/text/template/exec.go

    	}
    	// Now the ... args.
    	if typ.IsVariadic() {
    		argType := typ.In(typ.NumIn() - 1).Elem() // Argument is a slice.
    		for ; i < len(args); i++ {
    			argv[i] = s.evalArg(dot, argType, args[i])
    		}
    	}
    	// Add final value if necessary.
    	if !isMissing(final) {
    		t := typ.In(typ.NumIn() - 1)
    		if typ.IsVariadic() {
    			if numIn-1 < numFixed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/func.go

    	return n
    }
    
    // FixVariadicCall rewrites calls to variadic functions to use an
    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    	vi := fntype.NumParams() - 1
    	vt := fntype.Param(vi).Type
    
    	args := call.Args
    	extra := args[vi:]
    	slice := MakeDotArgs(call.Pos(), vt, extra)
    	for i := range extra {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/abi.go

    		tailcall = false
    	}
    
    	var tail ir.Node
    	call := ir.NewCallExpr(base.Pos, ir.OCALL, f.Nname, nil)
    	call.Args = ir.ParamNames(fn.Type())
    	call.IsDDD = fn.Type().IsVariadic()
    	tail = call
    	if tailcall {
    		tail = ir.NewTailCallStmt(base.Pos, call)
    	} else if fn.Type().NumResults() > 0 {
    		n := ir.NewReturnStmt(base.Pos, nil)
    		n.Results = []ir.Node{call}
    		tail = n
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/runtime/mfinal.go

    		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. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

          getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
    }
    
    void TFRFuncOp::print(OpAsmPrinter &p) {
      function_interface_impl::printFunctionOp(
          p, *this, /*isVariadic=*/false, getFunctionTypeAttrName(),
          getArgAttrsAttrName(), getResAttrsAttrName());
    }
    
    }  // namespace TFR
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  9. src/internal/abi/type.go

    		uadd += unsafe.Sizeof(UncommonType{})
    	}
    	return (*[1 << 17]*Type)(addChecked(unsafe.Pointer(t), uadd, "outCount > 0"))[t.InCount : t.InCount+outCount : t.InCount+outCount]
    }
    
    func (t *FuncType) IsVariadic() bool {
    	return t.OutCount&(1<<15) != 0
    }
    
    type PtrType struct {
    	Type
    	Elem *Type // pointer element (pointed at) type
    }
    
    type StructField struct {
    	Name   Name    // name is always non-empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top