(parts: Condition[], type: string)
| 1865 | ); |
| 1866 | |
| 1867 | const buildCondition = (parts: Condition[], type: string): Condition => { |
| 1868 | if (type === "AndCondition") { |
| 1869 | return { |
| 1870 | type: "AndCondition", |
| 1871 | left: parts[0]!, |
| 1872 | right: parts[1]!, |
| 1873 | } as AndCondition; |
| 1874 | } else if (type === "OrCondition") { |
| 1875 | return { |
| 1876 | type: "OrCondition", |
| 1877 | left: parts[0]!, |
| 1878 | right: parts[1]!, |
| 1879 | } as OrCondition; |
| 1880 | } else { |
| 1881 | return { |
| 1882 | type: "XorCondition", |
| 1883 | left: parts[0]!, |
| 1884 | right: parts[1]!, |
| 1885 | } as XorCondition; |
| 1886 | } |
| 1887 | }; |
| 1888 | |
| 1889 | const early = |
| 1890 | earlyParts.length === 0 |
no outgoing calls
no test coverage detected