import { ensureValidParameterName } from '../../Shared/ParameterNameValidator'; import type { IFunctionCallArgument } from './IFunctionCallArgument'; export class FunctionCallArgument implements IFunctionCallArgument { constructor( public readonly parameterName: string, public readonly argumentValue: string, ) { ensureValidParameterName(parameterName); if (!argumentValue) { throw new Error(`missing argument value for "${parameterName}"`); } } }