mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Format short blocks and loops on a single line.
This commit is contained in:
@@ -65,51 +65,27 @@
|
||||
// {
|
||||
// switch f1
|
||||
// case 0 {
|
||||
// if f2
|
||||
// {
|
||||
// rf := f3
|
||||
// }
|
||||
// if not(f2)
|
||||
// {
|
||||
// rf := f1
|
||||
// }
|
||||
// }
|
||||
// default {
|
||||
// rf := 3
|
||||
// if f2 { rf := f3 }
|
||||
// if not(f2) { rf := f1 }
|
||||
// }
|
||||
// default { rf := 3 }
|
||||
// }
|
||||
// function g(g1, g2, g3) -> rg
|
||||
// {
|
||||
// switch g1
|
||||
// case 0 {
|
||||
// if g2
|
||||
// {
|
||||
// rg := g3
|
||||
// }
|
||||
// if not(g2)
|
||||
// {
|
||||
// rg := g1
|
||||
// }
|
||||
// }
|
||||
// default {
|
||||
// rg := 3
|
||||
// if g2 { rg := g3 }
|
||||
// if not(g2) { rg := g1 }
|
||||
// }
|
||||
// default { rg := 3 }
|
||||
// }
|
||||
// function h(h1, h2, h3) -> rh
|
||||
// {
|
||||
// switch h1
|
||||
// case 1 {
|
||||
// if h2
|
||||
// {
|
||||
// rh := h3
|
||||
// }
|
||||
// if not(h2)
|
||||
// {
|
||||
// rh := h1
|
||||
// }
|
||||
// }
|
||||
// default {
|
||||
// rh := 3
|
||||
// if h2 { rh := h3 }
|
||||
// if not(h2) { rh := h1 }
|
||||
// }
|
||||
// default { rh := 3 }
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user