Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for BlockStmt (0.18 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    		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)
    		_else := done
    		if s.Else != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	case *ast.DeferStmt:
    		a.apply(n, "Call", nil, n.Call)
    
    	case *ast.ReturnStmt:
    		a.applyList(n, "Results")
    
    	case *ast.BranchStmt:
    		a.apply(n, "Label", nil, n.Label)
    
    	case *ast.BlockStmt:
    		a.applyList(n, "List")
    
    	case *ast.IfStmt:
    		a.apply(n, "Init", nil, n.Init)
    		a.apply(n, "Cond", nil, n.Cond)
    		a.apply(n, "Body", nil, n.Body)
    		a.apply(n, "Else", nil, n.Else)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/printer.go

    		p.print(_Return)
    		if n.Results != nil {
    			p.print(blank, n.Results)
    		}
    
    	case *BranchStmt:
    		p.print(n.Tok)
    		if n.Label != nil {
    			p.print(blank, n.Label)
    		}
    
    	case *BlockStmt:
    		p.print(_Lbrace)
    		if len(n.List) > 0 {
    			p.print(newline, indent)
    			p.printStmtList(n.List, true)
    			p.print(outdent, newline)
    		}
    		p.print(_Rbrace)
    
    	case *IfStmt:
    		p.print(_If, blank)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/fmt.go

    		n := n.(*AssignListStmt)
    		if n.Def && !complexinit {
    			fmt.Fprintf(s, "%.v := %.v", n.Lhs, n.Rhs)
    		} else {
    			fmt.Fprintf(s, "%.v = %.v", n.Lhs, n.Rhs)
    		}
    
    	case OBLOCK:
    		n := n.(*BlockStmt)
    		if len(n.List) != 0 {
    			fmt.Fprintf(s, "%v", n.List)
    		}
    
    	case ORETURN:
    		n := n.(*ReturnStmt)
    		fmt.Fprintf(s, "return %.v", n.Results)
    
    	case OTAILCALL:
    		n := n.(*TailCallStmt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/staticinit/sched.go

    		return false
    	}
    	if len(call.Body) != 2 || call.Body[0].Op() != ir.OBLOCK || call.Body[1].Op() != ir.OLABEL {
    		return false
    	}
    	label := call.Body[1].(*ir.LabelStmt).Label
    	block := call.Body[0].(*ir.BlockStmt)
    	list := block.List
    	var dcl *ir.Decl
    	if len(list) == 3 && list[0].Op() == ir.ODCL {
    		dcl = list[0].(*ir.Decl)
    		list = list[1:]
    	}
    	if len(list) != 2 ||
    		list[0].Op() != ir.OAS2 ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/typecheck.go

    	case ir.OAS2:
    		tcAssignList(n.(*ir.AssignListStmt))
    		return n
    
    	case ir.OBREAK,
    		ir.OCONTINUE,
    		ir.ODCL,
    		ir.OGOTO,
    		ir.OFALL:
    		return n
    
    	case ir.OBLOCK:
    		n := n.(*ir.BlockStmt)
    		Stmts(n.List)
    		return n
    
    	case ir.OLABEL:
    		if n.Sym().IsBlank() {
    			// Empty identifier is valid but useless.
    			// Eliminate now to simplify life later.
    			// See issues 7538, 11589, 11593.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/order.go

    		default:
    			base.Fatalf("order.stmt: %v", r.Op())
    		}
    
    		o.as2ok(n)
    		o.popTemp(t)
    
    	// Special: does not save n onto out.
    	case ir.OBLOCK:
    		n := n.(*ir.BlockStmt)
    		o.stmtList(n.List)
    
    	// Special: n->left is not an expression; save as is.
    	case ir.OBREAK,
    		ir.OCONTINUE,
    		ir.ODCL,
    		ir.OFALL,
    		ir.OGOTO,
    		ir.OLABEL,
    		ir.OTAILCALL:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/rulegen.go

    			u.node(node.Results)
    		}
    	case *ast.FieldList:
    		for _, field := range node.List {
    			u.node(field)
    		}
    	case *ast.Field:
    		u.node(node.Type)
    
    	// statements
    
    	case *ast.BlockStmt:
    		defer u.scoped()()
    		for _, stmt := range node.List {
    			u.node(stmt)
    		}
    	case *ast.DeclStmt:
    		u.node(node.Decl)
    	case *ast.IfStmt:
    		if node.Init != nil {
    			u.node(node.Init)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"BinaryExpr", Type, 0},
    		{"BinaryExpr.Op", Field, 0},
    		{"BinaryExpr.OpPos", Field, 0},
    		{"BinaryExpr.X", Field, 0},
    		{"BinaryExpr.Y", Field, 0},
    		{"BlockStmt", Type, 0},
    		{"BlockStmt.Lbrace", Field, 0},
    		{"BlockStmt.List", Field, 0},
    		{"BlockStmt.Rbrace", Field, 0},
    		{"BranchStmt", Type, 0},
    		{"BranchStmt.Label", Field, 0},
    		{"BranchStmt.Tok", Field, 0},
    		{"BranchStmt.TokPos", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		for node, scope := range info.Scopes {
    			var kind string
    			switch node.(type) {
    			case *syntax.File:
    				kind = "file"
    			case *syntax.FuncType:
    				kind = "func"
    			case *syntax.BlockStmt:
    				kind = "block"
    			case *syntax.IfStmt:
    				kind = "if"
    			case *syntax.SwitchStmt:
    				kind = "switch"
    			case *syntax.SelectStmt:
    				kind = "select"
    			case *syntax.CaseClause:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top