- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 7,737 for check2 (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go
case "//go:debug": if check.file == nil { check.pass.Reportf(pos, "//go:debug directive only valid in Go source files") } else if check.file.Name.Name != "main" && !strings.HasSuffix(check.filename, "_test.go") { check.pass.Reportf(pos, "//go:debug directive only valid in package main or test") } else if !check.inHeader {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
if ident.Value == "main" && check.pkg.name == "main" { check.error(ident, InvalidMainDecl, "cannot declare main - must be func") return } check.declare(check.pkg.scope, ident, obj, nopos) check.objMap[obj] = d obj.setOrder(uint32(len(check.objMap))) } // filename returns a filename suitable for debugging output. func (check *Checker) filename(fileNo int) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
test/reorder.go
i := 0 i, x[i] = 1, 100 _ = i check(x, 100, 2, 3) } func p2() { x := []int{1, 2, 3} i := 0 x[i], i = 100, 1 _ = i check(x, 100, 2, 3) } func p3() { x := []int{1, 2, 3} y := x gx = x x[1], y[0] = f(0), f(1) check(x, 2, 1, 3) } func p4() { x := []int{1, 2, 3} y := x gx = x x[1], y[0] = gx[0], gx[1] check(x, 2, 1, 3) } func p5() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jan 16 23:19:26 UTC 2021 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api.go
// Package types2 declares the data types and implements // the algorithms for type-checking of Go packages. Use // Config.Check to invoke the type checker for a package. // Alternatively, create a new type checker with NewChecker // and invoke it incrementally by calling Checker.Files. // // Type-checking consists of several interdependent phases: // // Name resolution maps each identifier (syntax.Name) in the program to the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/const.go
if !math.IsInf(f, 0) { return constant.MakeFloat64(f) } return nil } // representable checks that a constant operand is representable in the given // basic type. func (check *Checker) representable(x *operand, typ *Basic) { v, code := check.representation(x, typ) if code != 0 { check.invalidConversion(code, x, typ) x.mode = invalid return } assert(v != nil) x.val = v }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 7.5K bytes - Viewed (0) -
releasenotes/notes/check-disabled-status.yaml
lei-tang <******@****.***> 1686256325 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 08 20:32:05 UTC 2023 - 176 bytes - Viewed (0) -
src/go/types/conversions.go
// may be set to the cause for the failure. // The check parameter may be nil if convertibleTo is invoked through an // exported API call, i.e., when all methods have been type-checked. func (x *operand) convertibleTo(check *Checker, T Type, cause *string) bool { // "x is assignable to T" if ok, _ := x.assignableTo(check, T, cause); ok { return true } origT := T V := Unalias(x.typ)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go
for _, check := range checks { // no-op the check if we've specified we want to exclude the check if excluded.Has(check.Name()) { excluded.Delete(check.Name()) fmt.Fprintf(&individualCheckOutput, "[+]%s excluded: ok\n", check.Name()) continue } if err := check.Check(r); err != nil { slis.ObserveHealthcheck(context.Background(), check.Name(), name, slis.Error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 10.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
func (check *Checker) objDecl(obj Object, def *TypeName) { if check.conf.Trace && obj.Type() == nil { if check.indent == 0 { fmt.Println() // empty line between top-level objects for readability } check.trace(obj.Pos(), "-- checking %s (%s, objPath = %s)", obj, obj.color(), pathString(check.objPath)) check.indent++ defer func() { check.indent--
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/go/types/api.go
// Package types declares the data types and implements // the algorithms for type-checking of Go packages. Use // [Config.Check] to invoke the type checker for a package. // Alternatively, create a new type checker with [NewChecker] // and invoke it incrementally by calling [Checker.Files]. // // Type-checking consists of several interdependent phases: // // Name resolution maps each identifier ([ast.Ident]) in the program
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0)