- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 70 for Sel (0.02 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go
var tname *types.TypeName switch fun := call.Fun.(type) { case *ast.Ident: tname, _ = pass.TypesInfo.Uses[fun].(*types.TypeName) case *ast.SelectorExpr: tname, _ = pass.TypesInfo.Uses[fun.Sel].(*types.TypeName) } if tname == nil { return } // In the conversion T(v) of a value v of type V to a target type T, we // look for types T0 in the type set of T and V0 in the type set of V, such
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
switch fdecl.Name.Value { case "m": dm = def syntax.Inspect(fdecl.Body, func(n syntax.Node) bool { if call, ok := n.(*syntax.CallExpr); ok { sel := call.Fun.(*syntax.SelectorExpr) use := info.Uses[sel.Sel].(*Func) selection := info.Selections[sel] if selection.Kind() != MethodVal { t.Errorf("Selection kind = %v, want %v", selection.Kind(), MethodVal) } if selection.Obj() != use {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
func TypeExpr(f *ast.File, pkg *types.Package, typ types.Type) ast.Expr { switch t := typ.(type) { case *types.Basic: switch t.Kind() { case types.UnsafePointer: return &ast.SelectorExpr{X: ast.NewIdent("unsafe"), Sel: ast.NewIdent("Pointer")} default: return ast.NewIdent(t.Name()) } case *types.Pointer: x := TypeExpr(f, pkg, t.Elem()) if x == nil { return nil } return &ast.UnaryExpr{ Op: token.MUL,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
if len(args) <= firstArg { // Skip calls without variadic args. return } args = args[firstArg:] if firstArg == 0 { if sel, ok := call.Args[0].(*ast.SelectorExpr); ok { if x, ok := sel.X.(*ast.Ident); ok { if x.Name == "os" && strings.HasPrefix(sel.Sel.Name, "Std") { pass.ReportRangef(call, "%s does not take io.Writer but has first arg %s", fn.FullName(), analysisutil.Format(pass.Fset, call.Args[0]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/internal/types/testdata/check/lookup2.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p import ( "go/ast" "math/big" ) // case sel pkg have message (examples for general lookup) // --------------------------------------------------------------------------------------------------------- // ok x.Foo == Foo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/struct.go
// *T is valid, but **T is not if op, _ := base.(*syntax.Operation); op == nil || ptrBase(op) == nil { return embeddedFieldIdent(e.X) } } case *syntax.SelectorExpr: return e.Sel case *syntax.IndexExpr: return embeddedFieldIdent(e.X) } return nil // invalid embedded field } func (check *Checker) declareInSet(oset *objset, pos syntax.Pos, obj Object) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
case ir.ODOT, ir.ODOTPTR: break } field := n.Selection if field == nil { base.Fatalf("usefield %v %v without paramfld", n.X.Type(), n.Sel) } if field.Sym != n.Sel { base.Fatalf("field inconsistency: %v != %v", field.Sym, n.Sel) } if !strings.Contains(field.Note, "go:\"track\"") { return } outer := n.X.Type() if outer.IsPtr() { outer = outer.Elem() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/go/types/struct.go
case *ast.Ident: return e case *ast.StarExpr: // *T is valid, but **T is not if _, ok := e.X.(*ast.StarExpr); !ok { return embeddedFieldIdent(e.X) } case *ast.SelectorExpr: return e.Sel case *ast.IndexExpr: return embeddedFieldIdent(e.X) case *ast.IndexListExpr: return embeddedFieldIdent(e.X) } return nil // invalid embedded field }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Body) case *CompositeLit: if n.Type != nil { Walk(v, n.Type) } walkList(v, n.Elts) case *ParenExpr: Walk(v, n.X) case *SelectorExpr: Walk(v, n.X) Walk(v, n.Sel) case *IndexExpr: Walk(v, n.X) Walk(v, n.Index) case *IndexListExpr: Walk(v, n.X) walkList(v, n.Indices) case *SliceExpr: Walk(v, n.X) if n.Low != nil { Walk(v, n.Low)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0)