(region: IRegion)
| 553 | } |
| 554 | |
| 555 | public static isValid(region: IRegion) { |
| 556 | if (region == null) { |
| 557 | return false; |
| 558 | } |
| 559 | if (region.rows != null && (region.rows[0] < 0 || region.rows[1] < 0)) { |
| 560 | return false; |
| 561 | } |
| 562 | if (region.cols != null && (region.cols[0] < 0 || region.cols[1] < 0)) { |
| 563 | return false; |
| 564 | } |
| 565 | return true; |
| 566 | } |
| 567 | |
| 568 | public static isRegionValidForTable(region: IRegion, numRows: number, numCols: number) { |
| 569 | if (numRows === 0 || numCols === 0) { |
no outgoing calls
no test coverage detected