Searched defs:CaseClause (Results 1 – 6 of 6) sorted by relevance
179 type CaseClause struct { struct180 miniStmt181 Var *Name // declared variable for this case in type switch182 List Nodes // list of expressions for switch, early select192 RTypes Nodes194 Body Nodes471 func NewSwitchStmt(pos src.XPos, tag Node, cases []*CaseClause) *SwitchStmt {
1715 func copyCaseClauses(list []*CaseClause) []*CaseClause {1723 func doCaseClauses(list []*CaseClause, do func(Node) bool) bool {1731 func editCaseClauses(list []*CaseClause, edit func(Node) Node) {
88 func (check *Checker) isTerminatingSwitch(body []*syntax.CaseClause, label string) bool {168 func hasBreakCaseList(list []*syntax.CaseClause, label string, implicit bool) bool {
124 func (check *Checker) multipleSwitchDefaults(list []*syntax.CaseClause) {
705 CaseClause struct { struct706 Case token.Pos // position of "case" or "default" keyword707 List []Expr // list of expressions or types; nil means default case708 Colon token.Pos // position of ":"709 Body []Stmt // statement list; or nil779 func (s *CaseClause) Pos() token.Pos { return s.Case }831 func (s *CaseClause) End() token.Pos {865 func (*CaseClause) stmtNode() {}
444 CaseClause struct { struct445 Cases Expr // nil means default clause446 Body []Stmt447 Colon Pos448 node