- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for BlankNode (0.13 sec)
-
src/cmd/compile/internal/walk/complit.go
} a := ir.NewIndexExpr(base.Pos, var_, ir.NewInt(base.Pos, k)) k++ if isBlank { return ir.BlankNode, r } return a, r } case ir.OSTRUCTLIT: splitnode = func(rn ir.Node) (ir.Node, ir.Node) { r := rn.(*ir.StructKeyExpr) if r.Sym().IsBlank() || isBlank { return ir.BlankNode, r.Value } ir.SetPos(r) return ir.NewSelectorExpr(base.Pos, ir.ODOT, var_, r.Sym()), r.Value }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:03:54 UTC 2023 - 19.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
failed := false for i := range lhs { result := rtyp.Field(i).Type assignType(i, result) if lhs[i].Type() == nil || result == nil { failed = true } else if lhs[i] != ir.BlankNode && !types.Identical(lhs[i].Type(), result) { mismatched = true } } if mismatched && !failed { RewriteMultiValueCall(stmt, r) } return } for i, r := range rhs {
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/compare.go
// We still need to use cmpl and cmpr, in case they contain // an expression which might panic. See issue 23837. a1 := typecheck.Stmt(ir.NewAssignStmt(base.Pos, ir.BlankNode, cmpl)) a2 := typecheck.Stmt(ir.NewAssignStmt(base.Pos, ir.BlankNode, cmpr)) init.Append(a1, a2) } return finishCompare(n, expr, init) } func walkCompareInterface(n *ir.BinaryExpr, init *ir.Nodes) ir.Node { n.Y = cheapExpr(n.Y, init)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
if len(concreteCases) > 0 { var clauses []typeClause for _, c := range concreteCases { as := ir.NewAssignListStmt(c.pos, ir.OAS2, []ir.Node{ir.BlankNode, s.okName}, // _, ok = []ir.Node{ir.NewTypeAssertExpr(c.pos, s.srcName, c.typ.Type())}) // iface.(type) nif := ir.NewIfStmt(c.pos, s.okName, []ir.Node{c.jmp}, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
rhs = ta } rhs.SetType(toType) rhs.SetTypecheck(1) res := typecheck.TempAt(base.Pos, ir.CurFunc, toType) as := ir.NewAssignListStmt(base.Pos, ir.OAS2DOTTYPE, []ir.Node{res, ir.BlankNode}, []ir.Node{rhs}) init.Append(as) return res } // Returns the data word (the second word) used to represent conv.X in // an interface. func dataWord(conv *ir.ConvExpr, init *ir.Nodes) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
if s.StaticAssign(a, aoff, v, v.Type()) { return } var lhs ir.Node if ir.IsBlank(a) { // Don't use NameOffsetExpr with blank (#43677). lhs = ir.BlankNode } else { lhs = ir.NewNameOffsetExpr(pos, a, aoff, v.Type()) } s.append(ir.NewAssignStmt(pos, lhs, v)) } switch r.Op() { case ir.ONAME: r := r.(*ir.Name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0)