Skip to content

Commit e18e217

Browse files
authored
Merge pull request #4 from seriussoft/seriussoft-patch-3
Update and rename case.ts to caseblock.ts
2 parents 94a5730 + d58a98c commit e18e217

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

case.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

caseblock.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import {SwitchContext} from './classes/SwitchContext'
2+
import {SwitchManager} from './classes/SwitchManager'
3+
4+
5+
namespace switchcase {
6+
7+
/**
8+
* Case Block Container
9+
*/
10+
//% block="case $match"
11+
//% blockId=switchcase_case_block
12+
//% group="Control"
13+
//% weight=90
14+
//% draggableParameters
15+
//% draggableStatement=true
16+
export function caseBlock(match: any): void {
17+
//Placeholder for CodeGen
18+
}
19+
20+
/**
21+
* Default-Case Block Container
22+
*/
23+
//% block="default case"
24+
//% blockId=switchcase_default_case_block
25+
//% group="Control"
26+
//% weight=80
27+
//% draggableStatement=true
28+
export function defaultCaseBlock(): void {
29+
//Placeholder for CodeGen
30+
}
31+
32+
}

0 commit comments

Comments
 (0)