From e56a7308676cc367ca80ea08ee110d9670dc9825 Mon Sep 17 00:00:00 2001 From: Nate VanBuskirk Date: Tue, 9 Sep 2025 18:50:55 -0500 Subject: [PATCH] Update and rename case.ts to caseblock.ts tabbing set to 2 spaces, was 4, and added import statements for `./classes/SwitchContext` and `./classes/SwitchManager` --- case.ts | 31 ------------------------------- caseblock.ts | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 31 deletions(-) delete mode 100644 case.ts create mode 100644 caseblock.ts diff --git a/case.ts b/case.ts deleted file mode 100644 index da2cd2a..0000000 --- a/case.ts +++ /dev/null @@ -1,31 +0,0 @@ - - - -namespace switchcase { - - /** - * Case Block Container - */ - //% block="case $match" - //% blockId=switchcase_case_block - //% group="Control" - //% weight=90 - //% draggableParameters - //% draggableStatement=true - export function caseBlock(match: any): void { - //Placeholder for CodeGen - } - - /** - * Default-Case Block Container - */ - //% block="default case" - //% blockId=switchcase_default_case_block - //% group="Control" - //% weight=80 - //% draggableStatement=true - export function defaultCaseBlock(): void { - //Placeholder for CodeGen - } - -} diff --git a/caseblock.ts b/caseblock.ts new file mode 100644 index 0000000..2a54160 --- /dev/null +++ b/caseblock.ts @@ -0,0 +1,32 @@ +import {SwitchContext} from './classes/SwitchContext' +import {SwitchManager} from './classes/SwitchManager' + + +namespace switchcase { + + /** + * Case Block Container + */ + //% block="case $match" + //% blockId=switchcase_case_block + //% group="Control" + //% weight=90 + //% draggableParameters + //% draggableStatement=true + export function caseBlock(match: any): void { + //Placeholder for CodeGen + } + + /** + * Default-Case Block Container + */ + //% block="default case" + //% blockId=switchcase_default_case_block + //% group="Control" + //% weight=80 + //% draggableStatement=true + export function defaultCaseBlock(): void { + //Placeholder for CodeGen + } + +}