- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for SendStmt (0.33 sec)
-
src/cmd/compile/internal/types2/return.go
// is "". func (check *Checker) isTerminating(s syntax.Stmt, label string) bool { switch s := s.(type) { default: panic("unreachable") case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.SendStmt, *syntax.AssignStmt, *syntax.CallStmt: // no chance case *syntax.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Value) case *syntax.ExprStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
var dflt *ir.CommClause for _, cas := range cases { ir.SetPos(cas) n := cas.Comm if n == nil { dflt = cas continue } switch n.Op() { case ir.OSEND: n := n.(*ir.SendStmt) n.Value = typecheck.NodAddr(n.Value) n.Value = typecheck.Expr(n.Value) case ir.OSELRECV2: n := n.(*ir.AssignListStmt) if !ir.IsBlank(n.Lhs[0]) { n.Lhs[0] = typecheck.NodAddr(n.Lhs[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/go/types/return.go
// is "". func (check *Checker) isTerminating(s ast.Stmt, label string) bool { switch s := s.(type) { default: panic("unreachable") case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt, *ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt, *ast.RangeStmt: // no chance case *ast.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Name) case *ast.ExprStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
// case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt: // case *ExprStmt: case *SendStmt: m = n.Chan // case *DeclStmt: case *AssignStmt: m = n.Lhs // case *BranchStmt: // case *CallStmt: // case *ReturnStmt: // case *IfStmt: // case *ForStmt: // case *SwitchStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go
case *ast.AssignStmt, *ast.BadStmt, *ast.DeclStmt, *ast.DeferStmt, *ast.EmptyStmt, *ast.ExprStmt, *ast.GoStmt, *ast.IncDecStmt, *ast.ReturnStmt, *ast.SendStmt: // no statements inside case *ast.BlockStmt: for _, stmt := range x.List { d.findLabels(stmt) } case *ast.BranchStmt: switch x.Tok { case token.GOTO: if x.Label != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 7.6K bytes - Viewed (0) -
src/go/ast/ast.go
Stmt Stmt } // An ExprStmt node represents a (stand-alone) expression // in a statement list. // ExprStmt struct { X Expr // expression } // A SendStmt node represents a send statement. SendStmt struct { Chan Expr Arrow token.Pos // position of "<-" Value Expr } // An IncDecStmt node represents an increment or decrement statement. IncDecStmt struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
return 1 << nRangeStmt case *ast.ReturnStmt: return 1 << nReturnStmt case *ast.SelectStmt: return 1 << nSelectStmt case *ast.SelectorExpr: return 1 << nSelectorExpr case *ast.SendStmt: return 1 << nSendStmt case *ast.SliceExpr: return 1 << nSliceExpr case *ast.StarExpr: return 1 << nStarExpr case *ast.StructType: return 1 << nStructType case *ast.SwitchStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
tok(n.Return, len("return"))) case *ast.SelectStmt: children = append(children, tok(n.Select, len("select"))) case *ast.SelectorExpr: // nop case *ast.SendStmt: children = append(children, tok(n.Arrow, len("<-"))) case *ast.SliceExpr: children = append(children, tok(n.Lbrack, len("[")), tok(n.Rbrack, len("]"))) case *ast.StarExpr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 15.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/walk.go
case *EmptyStmt: // nothing to do case *LabeledStmt: w.node(n.Label) w.node(n.Stmt) case *BlockStmt: w.stmtList(n.List) case *ExprStmt: w.node(n.X) case *SendStmt: w.node(n.Chan) w.node(n.Value) case *DeclStmt: w.declList(n.DeclList) case *AssignStmt: w.node(n.Lhs) if n.Rhs != nil { w.node(n.Rhs) } case *BranchStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:55:04 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0)