File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ const JUMP_TO_STEP_BLOCK = {
6060 } ) ;
6161 } ,
6262 /**
63- * mrcOnMove is called when an EventBlock is moved.
64- */
63+ * mrcOnMove is called when a JumpToStepBlock is moved.
64+ */
6565 mrcOnMove : function ( this : JumpToStepBlock , _reason : string [ ] ) : void {
6666 this . checkBlockPlacement ( ) ;
6767 } ,
@@ -73,14 +73,14 @@ const JUMP_TO_STEP_BLOCK = {
7373
7474 const rootBlock : Blockly . Block | null = this . getRootBlock ( ) ;
7575 if ( rootBlock . type === MRC_STEPS ) {
76- // This block is within a class method definition .
76+ // This block is within a steps block .
7777 const stepsBlock = rootBlock as StepsBlock ;
78- // Add the method's parameter names to legalStepNames.
78+ // Add the step names to legalStepNames.
7979 legalStepNames . push ( ...stepsBlock . mrcGetStepNames ( ) ) ;
8080 }
8181
8282 if ( legalStepNames . includes ( this . getFieldValue ( FIELD_STEP_NAME ) ) ) {
83- // If this blocks's parameter name is in legalParameterNames , it's good.
83+ // If this blocks's step name is in legalStepNames , it's good.
8484 this . setWarningText ( null , WARNING_ID_NOT_IN_STEP ) ;
8585 this . mrcHasWarning = false ;
8686 } else {
You can’t perform that action at this time.
0 commit comments