(node: Node, input: string, params: Params)
| 12 | |
| 13 | // Note: mutates node by materializing the values of the param references it contains |
| 14 | export function checkParams(node: Node, input: string, params: Params): void { |
| 15 | for (const [name, param] of findParams(node, params, input)) { |
| 16 | param.value = params[name]; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | export function findParams(body: Node, params: Params, input: string): [name: string, node: ParamReference][] { |
| 21 | const matches: [string, ParamReference][] = []; |
no test coverage detected