- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasUniquePos (0.31 sec)
-
src/cmd/compile/internal/typecheck/stmt.go
callPos := base.Pos as := ir.NewAssignListStmt(callPos, ir.OAS2, make([]ir.Node, len(argps)), make([]ir.Node, len(argps))) for i, argp := range argps { arg := *argp pos := callPos if ir.HasUniquePos(arg) { pos = arg.Pos() } // tmp := arg tmp := TempAt(pos, ir.CurFunc, arg.Type()) init.Append(Stmt(ir.NewDecl(pos, ir.ODCL, tmp))) tmp.Defn = as as.Lhs[i] = tmp
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
// that n's position is not unique (e.g., if n is an ONAME). func (o *orderState) mapKeyTemp(outerPos src.XPos, t *types.Type, n ir.Node) ir.Node { pos := outerPos if ir.HasUniquePos(n) { pos = n.Pos() } // Most map calls need to take the address of the key. // Exception: map*_fast* calls. See golang.org/issue/19015. alg := mapfast(t) if alg == mapslow { return o.addrTemp(n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
func (s *state) expr(n ir.Node) *ssa.Value { return s.exprCheckPtr(n, true) } func (s *state) exprCheckPtr(n ir.Node, checkPtrOK bool) *ssa.Value { if ir.HasUniquePos(n) { // ONAMEs and named OLITERALs have the line number // of the decl, not the use. See issue 14742. s.pushLine(n.Pos()) defer s.popLine() } s.stmtList(n.Init()) switch n.Op() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)