()
| 33 | } |
| 34 | |
| 35 | get layoutView(): View { |
| 36 | let result: View; |
| 37 | |
| 38 | if (this._content) { |
| 39 | let first = true; |
| 40 | this._content._eachLayoutView((child) => { |
| 41 | if (first) { |
| 42 | first = false; |
| 43 | result = child; |
| 44 | } else { |
| 45 | throw new Error('More than one layout child inside a ContentView'); |
| 46 | } |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | return result; |
| 51 | } |
| 52 | |
| 53 | get _childrenCount(): number { |
| 54 | return this._content ? 1 : 0; |
no test coverage detected