- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for BlockStmt (0.14 sec)
-
src/cmd/internal/dwarf/putvarabbrevgen_test.go
Op: token.EQL, X: &ast.SelectorExpr{X: &ast.Ident{Name: "v"}, Sel: &ast.Ident{Name: "Tag"}}, Y: &ast.Ident{Name: "DW_TAG_variable"}}} r.Body = &ast.BlockStmt{List: []ast.Stmt{ pvacfgvisitnode(pvacfg, "DW_TAG_variable", []*pvacfgnode{}, abbrevs), }} r.Else = &ast.BlockStmt{List: []ast.Stmt{ pvacfgvisitnode(pvacfg, "DW_TAG_formal_parameter", []*pvacfgnode{}, abbrevs), }} return r }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
stmt } IfStmt struct { Init SimpleStmt Cond Expr Then *BlockStmt Else Stmt // either nil, *IfStmt, or *BlockStmt stmt } ForStmt struct { Init SimpleStmt // incl. *RangeClause Cond Expr Post SimpleStmt Body *BlockStmt stmt } SwitchStmt struct { Init SimpleStmt Tag Expr // incl. *TypeSwitchGuard
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/go/types/return.go
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 && check.isTerminating(s.Body, "") && check.isTerminating(s.Else, "") { return true }
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 *StructType: // case *Field: // 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:
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/compile/internal/types2/return.go
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 && check.isTerminating(s.Then, "") && check.isTerminating(s.Else, "") { return true }
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/types2/labels.go
package types2 import ( "cmd/compile/internal/syntax" . "internal/types/errors" ) // labels checks correct label use in body. func (check *Checker) labels(body *syntax.BlockStmt) { // set of all labels in this body all := NewScope(nil, body.Pos(), syntax.EndPos(body), "label") fwdJumps := check.blockBranches(all, nil, nil, body.List)
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/go/types/labels.go
package types import ( "go/ast" "go/token" . "internal/types/errors" ) // labels checks correct label use in body. func (check *Checker) labels(body *ast.BlockStmt) { // set of all labels in this body all := NewScope(nil, body.Pos(), body.End(), "label") fwdJumps := check.blockBranches(all, nil, nil, body.List) // If there are any forward jumps left, no label was found for
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/vendor/golang.org/x/tools/go/cfg/cfg.go
type BlockKind uint8 const ( KindInvalid BlockKind = iota // Stmt=nil KindUnreachable // unreachable block after {Branch,Return}Stmt / no-return call ExprStmt KindBody // function body BlockStmt KindForBody // body of ForStmt KindForDone // block after ForStmt KindForLoop // head of ForStmt KindForPost // post condition of ForStmt KindIfDone // block after IfStmt
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/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
case *ast.BadExpr: return 1 << nBadExpr case *ast.BadStmt: return 1 << nBadStmt case *ast.BasicLit: return 1 << nBasicLit case *ast.BinaryExpr: return 1 << nBinaryExpr case *ast.BlockStmt: return 1 << nBlockStmt case *ast.BranchStmt: return 1 << nBranchStmt case *ast.CallExpr: return 1 << nCallExpr case *ast.CaseClause: return 1 << nCaseClause case *ast.ChanType:
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/go/ast/example_test.go
// 19 . . . . Params: *ast.FieldList { // 20 . . . . . Opening: 3:10 // 21 . . . . . Closing: 3:11 // 22 . . . . } // 23 . . . } // 24 . . . Body: *ast.BlockStmt { // 25 . . . . Lbrace: 3:13 // 26 . . . . List: []ast.Stmt (len = 1) { // 27 . . . . . 0: *ast.ExprStmt { // 28 . . . . . . X: *ast.CallExpr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:44:50 UTC 2024 - 6.1K bytes - Viewed (0)