MCPcopy Create free account
hub / github.com/apitable/apitable / render

Method render

packages/core/src/automation_manager/input_parser.ts:38–57  ·  view source on GitHub ↗
(input: IExpressionOperand, context: T)

Source from the content-addressed store, hash-verified

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;

Callers 7

operand2PureValueFunction · 0.95
renderFunction · 0.45
createUseMessageFunction · 0.45
renderFunction · 0.45
getRuntimeActionInputMethod · 0.45

Calls 1

execMethod · 0.80

Tested by

no test coverage detected