Skip to content

Commit 0855587

Browse files
authored
Update caseblock2.ts : annotations
updated annotations
1 parent ea4bb5d commit 0855587

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

caseblock2.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ namespace switchcase {
5252
*/
5353
//% block="case $match do $handler"
5454
//% blockId=switchcase_case_block
55-
//% group="Control"
55+
//% group="Core"
5656
//% weight=90
57-
//% draggableParameters
58-
//% draggableStatement=true
57+
//% draggableParameters=reporter
58+
//% draggableStatement=reporter
5959
export function caseBlock(name: string, match: any, handler: () => void): void {
6060
//Placeholder for CodeGen
6161
//currentSwitchCase.addCase(match, handler)
@@ -80,9 +80,9 @@ namespace switchcase {
8080
*/
8181
//% block="[Advanced/Test/Debug] switch $name matches case $match?"
8282
//% blockId=switchcase_case_block_value
83-
//% group="Control"
83+
//% group="Advanced"
8484
//% weight=80
85-
//% draggableParameters
85+
//% draggableParameters=reporter
8686
export function caseBlockValue(name: string, match: any): boolean {
8787
//return match === switchValue || match == switchValue;
8888
let cxt = switchcase.createSwitch(name);
@@ -100,7 +100,7 @@ namespace switchcase {
100100
//% blockId=switchcase_default_case_block
101101
//% group="Control"
102102
//% weight=70
103-
//% draggableStatement=true
103+
//% draggableStatement=enabled
104104
export function defaultCaseBlock(name: string, handler: () => void): void {
105105

106106
let cxt = switchcase.createSwitch(name);

0 commit comments

Comments
 (0)