- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for branchStmt (0.21 sec)
-
src/cmd/compile/internal/syntax/nodes_test.go
{"AssignStmt", `x @:= y`}, {"AssignStmt", `x, ok @:= f()`}, {"AssignStmt", `x@++`}, {"AssignStmt", `a[i]@--`}, {"BranchStmt", `@break`}, {"BranchStmt", `@break L`}, {"BranchStmt", `@continue`}, {"BranchStmt", `@continue L`}, {"BranchStmt", `@fallthrough`}, {"BranchStmt", `@goto L`}, {"CallStmt", `@defer f()`}, {"CallStmt", `@go f()`}, {"ReturnStmt", `@return`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 18:45:06 UTC 2023 - 8.7K bytes - Viewed (0) -
src/go/types/labels.go
func (check *Checker) blockBranches(all *Scope, parent *block, lstmt *ast.LabeledStmt, list []ast.Stmt) []*ast.BranchStmt { b := &block{parent: parent, lstmt: lstmt} var ( varDeclPos token.Pos fwdJumps, badJumps []*ast.BranchStmt ) // All forward jumps jumping over a variable declaration are possibly // invalid (they may still jump out of the block and be ok).
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/types2/labels.go
func (check *Checker) blockBranches(all *Scope, parent *block, lstmt *syntax.LabeledStmt, list []syntax.Stmt) []*syntax.BranchStmt { b := &block{parent, lstmt, nil} var ( varDeclPos syntax.Pos fwdJumps, badJumps []*syntax.BranchStmt ) // All forward jumps jumping over a variable declaration are possibly // invalid (they may still jump out of the block and be ok).
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/branches.go
func (ls *labelScope) blockBranches(parent *block, ctxt targets, lstmt *LabeledStmt, start Pos, body []Stmt) []*BranchStmt { b := &block{parent: parent, start: start, lstmt: lstmt} var varPos Pos var varName Expr var fwdGotos, badGotos []*BranchStmt recordVarDecl := func(pos Pos, name Expr) { varPos = pos varName = name // Any existing forward goto jumping over the variable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Jun 26 00:21:29 UTC 2022 - 9.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
if call, ok := syntax.Unparen(s.X).(*syntax.CallExpr); ok && check.isPanic[call] { return true } case *syntax.ReturnStmt: return true case *syntax.BranchStmt: if s.Tok == syntax.Goto || s.Tok == syntax.Fallthrough { return true } case *syntax.BlockStmt: return check.isTerminatingList(s.List, "") case *syntax.IfStmt: if s.Else != nil &&
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/vendor/golang.org/x/tools/go/cfg/builder.go
b.current = label._goto _s = s.Stmt goto start // effectively: tailcall stmt(g, s.Stmt, label) case *ast.ReturnStmt: b.add(s) b.current = b.newBlock(KindUnreachable, s) case *ast.BranchStmt: b.branchStmt(s) case *ast.BlockStmt: b.stmtList(s.List) case *ast.IfStmt: if s.Init != nil { b.stmt(s.Init) } then := b.newBlock(KindIfThen, s) done := b.newBlock(KindIfDone, s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 11.4K bytes - Viewed (0) -
src/go/types/return.go
if call, ok := ast.Unparen(s.X).(*ast.CallExpr); ok && check.isPanic[call] { return true } case *ast.ReturnStmt: return true case *ast.BranchStmt: if s.Tok == token.GOTO || s.Tok == token.FALLTHROUGH { return true } case *ast.BlockStmt: return check.isTerminatingList(s.List, "") case *ast.IfStmt: if s.Else != nil &&
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/tokens.go
_Select // select _Struct // struct _Switch // switch _Type // type _Var // var // empty line comment to exclude it from .String tokenCount // ) const ( // for BranchStmt Break = _Break Continue = _Continue Fallthrough = _Fallthrough Goto = _Goto // for CallStmt Go = _Go Defer = _Defer )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
// 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: // case *SelectStmt: // helper nodes case *RangeClause: if n.Lhs != nil {
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
*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 { d.hasGoto[x.Label.Name] = true } case token.BREAK: stmt := d.breakTarget 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)