- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 122 for Sel (0.05 sec)
-
src/go/types/resolver_test.go
t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) return false } return false } return true } return true }) } for id, obj := range uses {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
// and omits nil-pointer checks for ptr. func boundedDotPtr(pos src.XPos, ptr ir.Node, field *types.Field) *ir.SelectorExpr { sel := ir.NewSelectorExpr(pos, ir.ODOTPTR, ptr, field.Sym) sel.Selection = field sel.SetType(field.Type) sel.SetTypecheck(1) sel.SetBounded(true) // guaranteed not to fault return sel } func runtimeField(name string, offset int64, typ *types.Type) *types.Field {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/runtime/race/testdata/select_test.go
x = 1 }) _ = x } func TestNoRaceSelect5(t *testing.T) { test := func(sel, needSched bool) { var x int _ = x ch := make(chan bool) c1 := make(chan bool) done := make(chan bool, 2) go func() { if needSched { runtime.Gosched() } // println(1) x = 1 if sel { select { case ch <- true: case <-c1: } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 05:25:54 UTC 2020 - 4.1K bytes - Viewed (0) -
src/go/types/methodset_test.go
return } for i, m := range methods { sel := ms.At(i) if got, want := sel.Obj().Name(), m.name; got != want { t.Errorf("%s [method %d]: got name = %q at, want %q", src, i, got, want) } if got, want := sel.Index(), m.index; !sameSlice(got, want) { t.Errorf("%s [method %d]: got index = %v, want %v", src, i, got, want) } if got, want := sel.Indirect(), m.indirect; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 08 15:27:57 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
if obj == nil { t.Errorf("%s: unresolved qualified identifier %s", x.Pos(), x.Value) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", s.Sel.Pos(), s.Sel.Value) return false } return false } return true } return true }) } for id, obj := range uses {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go
// context.With{Cancel,Timeout,Deadline}. func isContextWithCancel(info *types.Info, n ast.Node) bool { sel, ok := n.(*ast.SelectorExpr) if !ok { return false } switch sel.Sel.Name { case "WithCancel", "WithTimeout", "WithDeadline": default: return false } if x, ok := sel.X.(*ast.Ident); ok { if pkgname, ok := info.Uses[x].(*types.PkgName); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 9K bytes - Viewed (0) -
src/crypto/internal/nistec/p256_asm_s390x.s
DATA p256<>+0x20(SB)/8, $0x0c0d0e0f1c1d1e1f // SEL d1 d0 d1 d0 DATA p256<>+0x28(SB)/8, $0x0c0d0e0f1c1d1e1f // SEL d1 d0 d1 d0 DATA p256<>+0x30(SB)/8, $0x0000000010111213 // SEL 0 d1 d0 0 DATA p256<>+0x38(SB)/8, $0x1415161700000000 // SEL 0 d1 d0 0 DATA p256<>+0x40(SB)/8, $0x18191a1b1c1d1e1f // SEL d1 d0 d1 d0 DATA p256<>+0x48(SB)/8, $0x18191a1b1c1d1e1f // SEL d1 d0 d1 d0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 55.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/sigchanyzer.go
return obj.Name() == "Notify" && obj.Pkg().Path() == "os/signal" } switch fun := call.Fun.(type) { case *ast.SelectorExpr: return check(fun.Sel) case *ast.Ident: if fun, ok := findDecl(fun).(*ast.SelectorExpr); ok { return check(fun.Sel) } return false default: return false } } func findDecl(arg *ast.Ident) ast.Node { if arg.Obj == nil { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/fix/cftype.go
pkg, ok := t.X.(*ast.Ident) if !ok { return } dst := pkg.Name + "." + t.Sel.Name src := typeof[c.Args[0]] if badType(dst) && src == "*unsafe.Pointer" || dst == "unsafe.Pointer" && strings.HasPrefix(src, "*") && badType(src[1:]) { c.Args[0] = &ast.CallExpr{ Fun: &ast.SelectorExpr{X: &ast.Ident{Name: "unsafe"}, Sel: &ast.Ident{Name: "Pointer"}}, Args: []ast.Expr{c.Args[0]}, } changed = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0) -
src/go/parser/testdata/resolution/resolution.src
// license that can be found in the LICENSE file. package resolution func f /* =@fdecl */(n /* =@narg */ ast.Node) bool { if n /* =@ninit */, ok /* =@ok */ := n /* @narg */ .(*ast.SelectorExpr); ok /* @ok */ { sel = n /* @ninit */ } } type c /* =@cdecl */ map[token.Pos]resolvedObj func (v /* =@vdecl */ c /* @cdecl */) Visit(node /* =@nodearg */ ast.Node) (w /* =@w */ ast.Visitor) {} const ( basic /* =@basic */ = iota
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 16 21:19:23 UTC 2021 - 1.5K bytes - Viewed (0)