summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/indent-inside-ternary-operator.m
blob: ff979acf9dc2a026abea7937d488e81ef249cd0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
flag
       ? [Cmpnt Cmpnt:(isChildActionSheet ? TypeBack : TypeCancel)]
       : nil;


[[BottomSheetItem alloc]
 iconName:selected
 ? g.re
          .at
          : g
          .re
          .at
   builder:nil
      handler:^{
   }
]


[[BottomSheetItem alloc]
 iconName:selected
 ? iconName : g
          .re
          .at
   builder:nil
      handler:^{
   }
]

(event
  ?   [FSBottomSheetActionCellItemVariant
        action:AKAction<> :: actionFromSenderlessBlock(^{
  auto const strongSelf = weakSelf;
})]
  : nil);


[[ViewController alloc] strategy: (strategy
   ? [QuestionMarkStmt new]
   : [ColonStmt new])
toolbox: _one];

[[ViewController alloc] strategy: (strategy
   ?: [SourceStrategy new])
toolbox: _two];



flag1
?   ( flag2
          ? ( flag3
             ?   [ViewController selector1:^{
  NSLog(@"selector1");
}]
             :  [ViewController selector2:^(){
  NSLog(@"selector2");
}] )
    :   ( result3  )
  )
    :  (  flag5
    ? ( flag
            ? result4
        : [ViewController preSelector:flag selector3:{
          .x = 10,
        }])
    :   (  flag6
         ? [ViewController preSelector:flag selector3:^{
        NSLog(@"selector3");
      }]
        : ( result7   )
        )
        );


flag1
?   result1
            :  (
              flag5
    );



showButton ? Action<>::actionFromBlock(^(Component *component) {
          return nil;
        }) : nil;

showButton
? Action<>::actionFromBlock(^(Component *component) {
          return nil;
        })
         : nil;

         showButton
? Action<>::actionFromBlock(^(Component *component) {
          return nil;
        }) : nil;


showButton
    ? Action<>::actionFromBlock([](Component *component) {
          return nil;
        })
    : nil;