Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for BlockStmt (0.18 sec)

  1. 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)
  2. src/go/types/stmt.go

    package types
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    	"internal/buildcfg"
    	. "internal/types/errors"
    	"sort"
    )
    
    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf._Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stmt.go

    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"internal/buildcfg"
    	. "internal/types/errors"
    	"sort"
    )
    
    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *syntax.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf.Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. 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)
  5. src/go/types/api_test.go

    		for node, scope := range info.Scopes {
    			kind := "<unknown node kind>"
    			switch node.(type) {
    			case *ast.File:
    				kind = "file"
    			case *ast.FuncType:
    				kind = "func"
    			case *ast.BlockStmt:
    				kind = "block"
    			case *ast.IfStmt:
    				kind = "if"
    			case *ast.SwitchStmt:
    				kind = "switch"
    			case *ast.TypeSwitchStmt:
    				kind = "type switch"
    			case *ast.CaseClause:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/ssa.go

    	// then this code is dead. Stop here.
    	if s.curBlock == nil && n.Op() != ir.OLABEL {
    		return
    	}
    
    	s.stmtList(n.Init())
    	switch n.Op() {
    
    	case ir.OBLOCK:
    		n := n.(*ir.BlockStmt)
    		s.stmtList(n.List)
    
    	case ir.OFALL: // no-op
    
    	// Expression statements
    	case ir.OCALLFUNC:
    		n := n.(*ir.CallExpr)
    		if ir.IsIntrinsicCall(n) {
    			s.intrinsicCall(n)
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top