- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for SendStmt (0.21 sec)
-
src/go/parser/parser.go
if p.tok == token.CASE { p.next() lhs := p.parseList(false) if p.tok == token.ARROW { // SendStmt if len(lhs) > 1 { p.errorExpected(lhs[0].Pos(), "1 expression") // continue with first expression } arrow := p.pos p.next() rhs := p.parseRhs() comm = &ast.SendStmt{Chan: lhs[0], Arrow: arrow, Value: rhs} } else { // RecvStmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
if len(init) != 0 { ir.DumpList("ninit", init) base.Fatalf("ninit on select recv") } orderBlock(ncas.PtrInit(), o.free) case ir.OSEND: r := r.(*ir.SendStmt) if len(r.Init()) != 0 { ir.DumpList("ninit", r.Init()) base.Fatalf("ninit on select send") } // case c <- x // r->left is c, r->right is x, both are always evaluated.
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/syntax/printer.go
p.printDecl(n.DeclList) case *EmptyStmt: // nothing to print case *LabeledStmt: p.print(outdent, n.Label, _Colon, indent, newline, n.Stmt) case *ExprStmt: p.print(n.X) case *SendStmt: p.print(n.Chan, blank, _Arrow, blank, n.Value) case *AssignStmt: p.print(n.Lhs) if n.Rhs == nil { // TODO(gri) This is going to break the mayCombine // check once we enable that again.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
exprFmt(n.Y, s, nprec+1) case OANDAND, OOROR: n := n.(*LogicalExpr) exprFmt(n.X, s, nprec) fmt.Fprintf(s, " %v ", n.Op()) exprFmt(n.Y, s, nprec+1) case OSEND: n := n.(*SendStmt) exprFmt(n.Chan, s, nprec) fmt.Fprintf(s, " <- ") exprFmt(n.Value, s, nprec+1) case OADDSTR: n := n.(*AddStringExpr) for i, n1 := range n.List { if i != 0 { fmt.Fprint(s, " + ")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
b := new(BadExpr) b.pos = p.pos() return b } // ---------------------------------------------------------------------------- // Statements // SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl . func (p *parser) simpleStmt(lhs Expr, keyword token) SimpleStmt { if trace { defer p.trace("simpleStmt")() } if keyword == _For && p.tok == _Range {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
return tcDotType(n) case ir.OINDEX: n := n.(*ir.IndexExpr) return tcIndex(n) case ir.ORECV: n := n.(*ir.UnaryExpr) return tcRecv(n) case ir.OSEND: n := n.(*ir.SendStmt) return tcSend(n) case ir.OSLICEHEADER: n := n.(*ir.SliceHeaderExpr) return tcSliceHeader(n) case ir.OSTRINGHEADER: n := n.(*ir.StringHeaderExpr) return tcStringHeader(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) -
src/go/printer/nodes.go
} } else { p.linebreak(p.lineFor(s.Stmt.Pos()), 1, ignore, true) } p.stmt(s.Stmt, nextIsRBrace) case *ast.ExprStmt: const depth = 1 p.expr0(s.X, depth) case *ast.SendStmt: const depth = 1 p.expr0(s.Chan, depth) p.print(blank) p.setPos(s.Arrow) p.print(token.ARROW, blank) p.expr0(s.Value, depth) case *ast.IncDecStmt: const depth = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"SelectStmt.Select", Field, 0}, {"SelectorExpr", Type, 0}, {"SelectorExpr.Sel", Field, 0}, {"SelectorExpr.X", Field, 0}, {"SendStmt", Type, 0}, {"SendStmt.Arrow", Field, 0}, {"SendStmt.Chan", Field, 0}, {"SendStmt.Value", Field, 0}, {"SliceExpr", Type, 0}, {"SliceExpr.High", Field, 0}, {"SliceExpr.Lbrack", Field, 0}, {"SliceExpr.Low", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
doc/go1.17_spec.html
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt | FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt | DeferStmt . SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl . </pre> <h3 id="Terminating_statements">Terminating statements</h3> <p> A <i>terminating statement</i> interrupts the regular flow of control in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt | FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt | DeferStmt . SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl . </pre> <h3 id="Terminating_statements">Terminating statements</h3> <p> A <i>terminating statement</i> interrupts the regular flow of control in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1)