- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 105 for SelectorExpr (0.41 sec)
-
src/cmd/compile/internal/syntax/nodes_test.go
{"CompositeLit", `T@{}`}, {"CompositeLit", `struct{x, y int}@{}`}, {"KeyValueExpr", `"foo"@: true`}, {"KeyValueExpr", `"a"@: b`}, {"FuncLit", `@func (){}`}, {"ParenExpr", `@(x)`}, {"SelectorExpr", `a@.b`}, {"IndexExpr", `a@[i]`}, {"SliceExpr", `a@[:]`}, {"SliceExpr", `a@[i:]`}, {"SliceExpr", `a@[:j]`}, {"SliceExpr", `a@[i:j]`}, {"SliceExpr", `a@[i:j:k]`}, {"AssertExpr", `x@.(T)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 18:45:06 UTC 2023 - 8.7K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
// that picks the correct abbrev. func pvacfgvisit(pvacfg *pvacfgnode, abbrevs map[string]int) ast.Stmt { r := &ast.IfStmt{Cond: &ast.BinaryExpr{ Op: token.EQL, X: &ast.SelectorExpr{X: &ast.Ident{Name: "v"}, Sel: &ast.Ident{Name: "Tag"}}, Y: &ast.Ident{Name: "DW_TAG_variable"}}} r.Body = &ast.BlockStmt{List: []ast.Stmt{ pvacfgvisitnode(pvacfg, "DW_TAG_variable", []*pvacfgnode{}, abbrevs), }}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
// don't resolve ident yet - it may be a parameter or field name if p.tok == token.PERIOD { // ident is a package name p.next() p.resolve(ident) sel := p.parseIdent() return &ast.SelectorExpr{ident, sel} } return ident } func (p *parser) parseArrayType(ellipsisOk bool) ast.Expr { if p.trace { defer un(trace(p, "ArrayType")) } lbrack := p.expect(token.LBRACK)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
func checkCopyLocksCallExpr(pass *analysis.Pass, ce *ast.CallExpr) { var id *ast.Ident switch fun := ce.Fun.(type) { case *ast.Ident: id = fun case *ast.SelectorExpr: id = fun.Sel } if fun, ok := pass.TypesInfo.Uses[id].(*types.Builtin); ok { switch fun.Name() { case "new", "len", "cap", "Sizeof", "Offsetof", "Alignof": return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
var itabTypeField *types.Field // boundedDotPtr returns a selector expression representing ptr.field // 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 }
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/cmd/compile/internal/typecheck/subr.go
} // AddImplicitDots finds missing fields in obj.field that // will give the shortest unique addressing and // modifies the tree with missing field names. func AddImplicitDots(n *ir.SelectorExpr) *ir.SelectorExpr { n.X = typecheck(n.X, ctxType|ctxExpr) t := n.X.Type() if t == nil { return n } if n.X.Op() == ir.OTYPE { return n } s := n.Sel if s == nil { return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go
continue } expr := exprStmt.X if isMethodCall(info, expr, "testing", "T", "Parallel") { call, _ := expr.(*ast.CallExpr) if call == nil { continue } x, _ := call.Fun.(*ast.SelectorExpr) if x == nil { continue } id, _ := x.X.(*ast.Ident) if id == nil { continue } if info.Uses[id] == tObj { afterParallel = true } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 18:06:31 UTC 2024 - 10.8K bytes - Viewed (0) -
src/internal/fuzz/encoding.go
} s, err := strconv.Unquote(lit.Value) if err != nil { return nil, err } return []byte(s), nil } var idType *ast.Ident if selector, ok := call.Fun.(*ast.SelectorExpr); ok { xIdent, ok := selector.X.(*ast.Ident) if !ok || xIdent.Name != "math" { return nil, fmt.Errorf("invalid selector type") } switch selector.Sel.Name { case "Float64frombits":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 16:39:12 UTC 2022 - 11K bytes - Viewed (0)