Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for endsInFallthrough (0.13 sec)

  1. src/cmd/compile/internal/walk/switch.go

    	for _, ncase := range sw.Cases {
    		for _, v := range ncase.List {
    			if v.Op() != ir.OLITERAL {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    // endsInFallthrough reports whether stmts ends with a "fallthrough" statement.
    func endsInFallthrough(stmts []ir.Node) (bool, src.XPos) {
    	if len(stmts) == 0 {
    		return false, src.NoXPos
    	}
    	i := len(stmts) - 1
    	return stmts[i].Op() == ir.OFALL, stmts[i].Pos()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
Back to top