From 3fa46f45fe6963ea2e5a97e6d0de5a4c54b9e2a9 Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Thu, 13 Jun 2024 17:07:24 -0700 Subject: [PATCH] chore: tsdoc for generator exceptions (#8214) * chore: tsdoc for generator exceptions * chore: missed a period --- core/generator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/generator.ts b/core/generator.ts index 7bb509f8b..869e29a6a 100644 --- a/core/generator.ts +++ b/core/generator.ts @@ -295,8 +295,8 @@ export class CodeGenerator { * @param name The name of the input. * @param outerOrder The maximum binding strength (minimum order value) of any * operators adjacent to "block". - * @returns Generated code or '' if no blocks are connected or the specified - * input does not exist. + * @returns Generated code or '' if no blocks are connected. + * @throws ReferenceError if the specified input does not exist. */ valueToCode(block: Block, name: string, outerOrder: number): string { if (isNaN(outerOrder)) { @@ -381,6 +381,7 @@ export class CodeGenerator { * @param block The block containing the input. * @param name The name of the input. * @returns Generated code or '' if no blocks are connected. + * @throws ReferenceError if the specified input does not exist. */ statementToCode(block: Block, name: string): string { const targetBlock = block.getInputTargetBlock(name);