Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for doPrintln (0.11 sec)

  1. src/fmt/print.go

    	p := newPrinter()
    	p.doPrintln(a)
    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    // Appendln formats using the default formats for its operands, appends the result
    // to the byte slice, and returns the updated slice. Spaces are always added
    // between operands and a newline is appended.
    func Appendln(b []byte, a ...any) []byte {
    	p := newPrinter()
    	p.doPrintln(a)
    	b = append(b, p.buf...)
    	p.free()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    		}
    
    		// builtin: OLEN, OCAP, etc.
    		switch l.BuiltinOp {
    		default:
    			base.Fatalf("unknown builtin %v", l)
    
    		case ir.OAPPEND, ir.ODELETE, ir.OMAKE, ir.OMAX, ir.OMIN, ir.OPRINT, ir.OPRINTLN, ir.ORECOVER:
    			n.SetOp(l.BuiltinOp)
    			n.Fun = nil
    			n.SetTypecheck(0) // re-typechecking new op is OK, not a loop
    			return typecheck(n, top)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    		n := n.(*ir.BinaryExpr)
    		return walkCompare(n, init)
    
    	case ir.OANDAND, ir.OOROR:
    		n := n.(*ir.LogicalExpr)
    		return walkLogical(n, init)
    
    	case ir.OPRINT, ir.OPRINTLN:
    		return walkPrint(n.(*ir.CallExpr), init)
    
    	case ir.OPANIC:
    		n := n.(*ir.UnaryExpr)
    		return mkcall("gopanic", nil, init, n.X)
    
    	case ir.ORECOVERFP:
    		return walkRecoverFP(n.(*ir.CallExpr), init)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/typecheck.go

    		n := n.(*ir.ConvExpr)
    		return tcConv(n)
    
    	case ir.OMAKE:
    		n := n.(*ir.CallExpr)
    		return tcMake(n)
    
    	case ir.ONEW:
    		n := n.(*ir.UnaryExpr)
    		return tcNew(n)
    
    	case ir.OPRINT, ir.OPRINTLN:
    		n := n.(*ir.CallExpr)
    		return tcPrint(n)
    
    	case ir.OPANIC:
    		n := n.(*ir.UnaryExpr)
    		return tcPanic(n)
    
    	case ir.ORECOVER:
    		n := n.(*ir.CallExpr)
    		return tcRecover(n)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/builtin.go

    	// Hoist all the argument evaluation up before the lock.
    	walkExprListCheap(nn.Args, init)
    
    	// For println, add " " between elements and "\n" at the end.
    	if nn.Op() == ir.OPRINTLN {
    		s := nn.Args
    		t := make([]ir.Node, 0, len(s)*2)
    		for i, n := range s {
    			if i != 0 {
    				t = append(t, ir.NewString(base.Pos, " "))
    			}
    			t = append(t, n)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/order.go

    		o.popTemp(t)
    
    	case ir.OCOPY:
    		n := n.(*ir.BinaryExpr)
    		t := o.markTemp()
    		n.X = o.expr(n.X, nil)
    		n.Y = o.expr(n.Y, nil)
    		o.out = append(o.out, n)
    		o.popTemp(t)
    
    	case ir.OPRINT, ir.OPRINTLN, ir.ORECOVERFP:
    		n := n.(*ir.CallExpr)
    		t := o.markTemp()
    		o.call(n)
    		o.out = append(o.out, n)
    		o.popTemp(t)
    
    	// Special: order arguments to inner call but not call itself.
    	case ir.ODEFER, ir.OGO:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
Back to top