(input: IExpressionOperand, context: T)
| 36 | } |
| 37 | |
| 38 | render(input: IExpressionOperand, context: T): any { |
| 39 | return this.expressionParser.exec(input.value, context); |
| 40 | // return Object.keys(input).reduce((acc, key) => { |
| 41 | // const value = input[key]; |
| 42 | // if (typeof value !== 'object' || ![OperandTypeEnums.Literal, OperandTypeEnums.Expression].includes(value?.type)) { |
| 43 | // throw Error('Object Value Must Be A IOperand Object!'); |
| 44 | // } |
| 45 | // switch (value.type) { |
| 46 | // case OperandTypeEnums.Literal: |
| 47 | // acc[key] = value.value; |
| 48 | // break; |
| 49 | // case OperandTypeEnums.Expression: |
| 50 | // acc[key] = this.expressionParser.exec(value.value, context); |
| 51 | // break; |
| 52 | // default: |
| 53 | // throw Error('Object Value Must Be A IOperand Object!'); |
| 54 | // } |
| 55 | // return acc; |
| 56 | // }, {}); |
| 57 | } |
| 58 | |
| 59 | // renderByRegex(input: string, context: T): string { |
| 60 | // let result = input; |
no test coverage detected