Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasBreakList (0.1 sec)

  1. src/cmd/compile/internal/types2/return.go

    		}
    	}
    
    	return false
    }
    
    func hasBreakList(list []syntax.Stmt, label string, implicit bool) bool {
    	for _, s := range list {
    		if hasBreak(s, label, implicit) {
    			return true
    		}
    	}
    	return false
    }
    
    func hasBreakCaseList(list []*syntax.CaseClause, label string, implicit bool) bool {
    	for _, s := range list {
    		if hasBreakList(s.Body, label, implicit) {
    			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)
  2. src/go/types/return.go

    			if s.Label.Name == label {
    				return true
    			}
    		}
    
    	case *ast.BlockStmt:
    		return hasBreakList(s.List, label, implicit)
    
    	case *ast.IfStmt:
    		if hasBreak(s.Body, label, implicit) ||
    			s.Else != nil && hasBreak(s.Else, label, implicit) {
    			return true
    		}
    
    	case *ast.CaseClause:
    		return hasBreakList(s.Body, label, implicit)
    
    	case *ast.SwitchStmt:
    		if label != "" && hasBreak(s.Body, label, false) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top