(condition, yes, no)
| 162 | |
| 163 | export class Conditional extends Expression { |
| 164 | constructor(condition, yes, no) { |
| 165 | super(); |
| 166 | |
| 167 | this.condition = condition; |
| 168 | this.yes = yes; |
| 169 | this.no = no; |
| 170 | } |
| 171 | |
| 172 | evaluate(scope, lookupFunctions) { |
| 173 | return (!!this.condition.evaluate(scope, lookupFunctions)) ? this.yes.evaluate(scope, lookupFunctions) : this.no.evaluate(scope, lookupFunctions); |
nothing calls this directly
no outgoing calls
no test coverage detected