definition: |
goShowExprBranch :: Int -> GoExprBranch -> String goShowExprBranch n (GoExprDefault stats) = (indent n) ++ "default:\n" ++ (concatMap (showGoStat (n+1)) stats) goShowExprBranch n (GoExprBranch exprs stats) = (indent n) ++ "case " ++ (showGoCommaList showGoExpr exprs) ++ ":\n" ++ (concatMap (showGoStat (n+1)) stats) |
demand: |
argument 2 |
deterministic: |
deterministic operation |
documentation: |
Shows a Go expression branch as a String in Go Syntax. @param n - number of spaces to indent @param branch - branch to show |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,{GoExprDefault}) |-> _ || (_,{GoExprBranch}) |-> _} |
name: |
goShowExprBranch |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
Prelude.Int -> Language.Go.Types.GoExprBranch -> String |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |