- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 38 for CommClause (0.15 sec)
-
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
case ast.SEND: children = append(children, tok(n.Begin, len("chan<-"))) case ast.RECV | ast.SEND: children = append(children, tok(n.Begin, len("chan"))) } case *ast.CommClause: if n.Comm == nil { children = append(children, tok(n.Case, len("default"))) } else { children = append(children, tok(n.Case, len("case"))) }
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/go/types/labels.go
} case *ast.CaseClause: blockBranches(nil, s.Body) case *ast.SwitchStmt: stmtBranches(s.Body) case *ast.TypeSwitchStmt: stmtBranches(s.Body) case *ast.CommClause: blockBranches(nil, s.Body) case *ast.SelectStmt: stmtBranches(s.Body) case *ast.ForStmt: stmtBranches(s.Body) case *ast.RangeStmt: stmtBranches(s.Body) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/walk.go
case *RangeClause: if n.Lhs != nil { w.node(n.Lhs) } w.node(n.X) case *CaseClause: if n.Cases != nil { w.node(n.Cases) } w.stmtList(n.Body) case *CommClause: if n.Comm != nil { w.node(n.Comm) } w.stmtList(n.Body) default: panic(fmt.Sprintf("internal error: unknown node type %T", n)) } w.v.Visit(nil) }
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/go/ast/walk.go
} if n.Tag != nil { Walk(v, n.Tag) } Walk(v, n.Body) case *TypeSwitchStmt: if n.Init != nil { Walk(v, n.Init) } Walk(v, n.Assign) Walk(v, n.Body) case *CommClause: if n.Comm != nil { Walk(v, n.Comm) } walkList(v, n.Body) case *SelectStmt: Walk(v, n.Body) case *ForStmt: if n.Init != nil { Walk(v, n.Init) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go
KindRangeDone // block after RangeStmt KindRangeLoop // head of RangeStmt KindSelectCaseBody // body of SelectStmt KindSelectDone // block after SelectStmt KindSelectAfterCase // block after a CommClause KindSwitchCaseBody // body of CaseClause KindSwitchDone // block after {Type.}SwitchStmt KindSwitchNextCase // secondary expression of a multi-expression CaseClause )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
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/syntax/printer.go
p.print(newline) for i, c := range list { p.printCaseClause(c, i+1 == len(list)) p.print(newline) } } p.print(_Rbrace) } func (p *printer) printSelectBody(list []*CommClause) { p.print(_Lbrace) if len(list) > 0 { p.print(newline) for i, c := range list { p.printCommClause(c, i+1 == len(list)) p.print(newline) } } p.print(_Rbrace) }
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/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go
case *ast.TypeSwitchStmt: for _, c := range s.Body.List { cc := c.(*ast.CaseClause) forEachLastStmt(cc.Body, onLast) } case *ast.SelectStmt: for _, c := range s.Body.List { cc := c.(*ast.CommClause) forEachLastStmt(cc.Body, onLast) } default: onLast(s) } } // litStmts returns all statements from the function body of a function // literal. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 10.3K bytes - Viewed (0) -
src/go/types/stmt.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// TODO(gri) probably ok to bail out after first error (and simplify this code) } else { first = c } } } } func (check *Checker) multipleSelectDefaults(list []*syntax.CommClause) { var first *syntax.CommClause for _, c := range list { if c.Comm == nil { if first != nil { check.errorf(c, DuplicateDefault, "multiple defaults (first at %s)", first.Pos())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0)