Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for BlockStmt (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    // node, along with the number of call expressions encountered.
    func restOfBlock(stack []ast.Node) ([]ast.Stmt, int) {
    	var ncalls int
    	for i := len(stack) - 1; i >= 0; i-- {
    		if b, ok := stack[i].(*ast.BlockStmt); ok {
    			for j, v := range b.List {
    				if v == stack[i+1] {
    					return b.List[j:], ncalls
    				}
    			}
    			break
    		}
    
    		if _, ok := stack[i].(*ast.CallExpr); ok {
    			ncalls++
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. 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