- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 98 for coll (0.16 sec)
-
src/cmd/compile/internal/types2/util.go
// hasDots reports whether the last argument in the call is followed by ... func hasDots(call *syntax.CallExpr) bool { return call.HasDots } // dddErrPos returns the node (poser) for reporting an invalid ... use in a call. func dddErrPos(call *syntax.CallExpr) *syntax.CallExpr { // TODO(gri) should use "..." instead of call position return call }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errorcalls_test.go
files, err := pkgFiles(".") if err != nil { t.Fatal(err) } for _, file := range files { syntax.Inspect(file, func(n syntax.Node) bool { call, _ := n.(*syntax.CallExpr) if call == nil { return true } selx, _ := call.Fun.(*syntax.SelectorExpr) if selx == nil { return true } if !(isName(selx.X, "check") && isName(selx.Sel, "errorf")) { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 21:57:36 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/issue25065/a.go
// 1. referenced in a method expression // 2. not called // 3. not converted to an interface // 4. is a value method but the reference is to the pointer method // // These cases avoid the call to makefuncsym from typecheckfunc, but we // still need to call makefuncsym somehow or the symbol will not be defined. package issue25065 type T int func (t T) M() {} func F() func(*T) { return (*T).M
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 619 bytes - Viewed (0) -
src/cmd/compile/internal/walk/closure.go
"cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/src" ) // directClosureCall rewrites a direct call of a function literal into // a normal function call with closure variables passed as arguments. // This avoids allocation of a closure object. // // For illustration, the following call: // // func(a int) { // println(byval) // byref++ // }(42) // // becomes: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0) -
src/cmd/go/internal/base/path.go
// UncachedCwd is appropriate to call early in program startup before flag parsing, // because the -C flag may change the current directory. func UncachedCwd() string { wd, err := os.Getwd() if err != nil { Fatalf("cannot determine current directory: %v", err) } return wd } // Cwd returns the current working directory at the time of the first call. func Cwd() string { cwdOnce.Do(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 19:17:27 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.cc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:07 UTC 2023 - 384 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/method/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 478 bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
// constructing fn, it must call FinishFuncBody to restore CurFunc. func DeclFunc(fn *ir.Func) { fn.DeclareParams(true) fn.Nname.Defn = fn Target.Funcs = append(Target.Funcs, fn) funcStack = append(funcStack, ir.CurFunc) ir.CurFunc = fn } // FinishFuncBody restores ir.CurFunc to its state before the last // call to DeclFunc. func FinishFuncBody() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8517_windows.go
getProcessHandleCount = kernel32.MustFindProc("GetProcessHandleCount") ) func processHandleCount(t *testing.T) int { const current_process = ^uintptr(0) var c uint32 r, _, err := getProcessHandleCount.Call(current_process, uintptr(unsafe.Pointer(&c))) if r == 0 { t.Fatal(err) } return int(c) } func test8517(t *testing.T) { c1 := processHandleCount(t) C.testHandleLeaks() c2 := processHandleCount(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 990 bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
return check.isTerminating(s.Stmt, s.Label.Value) case *syntax.ExprStmt: // calling the predeclared (possibly parenthesized) panic() function is terminating if call, ok := syntax.Unparen(s.X).(*syntax.CallExpr); ok && check.isPanic[call] { return true } case *syntax.ReturnStmt: return true case *syntax.BranchStmt: if s.Tok == syntax.Goto || s.Tok == syntax.Fallthrough { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0)