Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for appendSplitAnd (0.25 sec)

  1. src/go/build/constraint/expr.go

    			return x
    		}
    		return or(x1, y1)
    	}
    }
    
    // appendSplitAnd appends x to list while splitting apart any top-level && expressions.
    // For example, appendSplitAnd({W}, X && Y && Z) = {W, X, Y, Z}.
    func appendSplitAnd(list []Expr, x Expr) []Expr {
    	if x, ok := x.(*AndExpr); ok {
    		list = appendSplitAnd(list, x.X)
    		list = appendSplitAnd(list, x.Y)
    		return list
    	}
    	return append(list, x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top