UNPKG

@wildboar/rose

Version:
33 lines (32 loc) 924 B
/** * @summary recode * @description * * **This production was manually written in TypeScript.** * * ### ASN.1 Definition: * * ```asn1 * recode{OPERATION:operation, Code:code} OPERATION ::= { * ARGUMENT operation.&ArgumentType * OPTIONAL operation.&argumentTypeOptional * RESULT operation.&ResultType * OPTIONAL operation.&resultTypeOptional * RETURN RESULT operation.&returnResult * ERRORS {operation.&Errors} * LINKED {operation.&Linked} * SYNCHRONOUS operation.&synchronous * ALWAYS RESPONDS operation.&alwaysReturns * INVOKE PRIORITY {operation.&InvokePriority} * RESULT-PRIORITY {operation.&ResultPriority} * CODE code * } * ``` */ export function recode(operation, code) { return { ...operation, "&operationCode": code, }; } /* eslint-enable */