Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for BlockStmt (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/go/ast/walk.go

    		Walk(v, n.Call)
    
    	case *DeferStmt:
    		Walk(v, n.Call)
    
    	case *ReturnStmt:
    		walkList(v, n.Results)
    
    	case *BranchStmt:
    		if n.Label != nil {
    			Walk(v, n.Label)
    		}
    
    	case *BlockStmt:
    		walkList(v, n.List)
    
    	case *IfStmt:
    		if n.Init != nil {
    			Walk(v, n.Init)
    		}
    		Walk(v, n.Cond)
    		Walk(v, n.Body)
    		if n.Else != nil {
    			Walk(v, n.Else)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top