(param: ParamReference)
| 7 | export type ParamReference = MemberExpression & {property: Identifier | (Literal & {value: string}); value: string}; |
| 8 | |
| 9 | function getParamName(param: ParamReference): string { |
| 10 | return param.property.type === "Identifier" ? param.property.name : param.property.value; |
| 11 | } |
| 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 { |