@@ -130,7 +130,7 @@ const LISTS_CREATE_WITH = {
130130 this . updateShape_ ( ) ;
131131 this . setOutput ( true , 'Array' ) ;
132132 this . setMutator (
133- new MutatorIcon ( [ 'lists_create_with_item' ] , this as unknown as BlockSvg )
133+ new MutatorIcon ( [ 'lists_create_with_item' ] , this as unknown as BlockSvg ) ,
134134 ) ; // BUG(#6905)
135135 this . setTooltip ( Msg [ 'LISTS_CREATE_WITH_TOOLTIP' ] ) ;
136136 } ,
@@ -182,16 +182,16 @@ const LISTS_CREATE_WITH = {
182182 */
183183 decompose : function (
184184 this : CreateWithBlock ,
185- workspace : Workspace
185+ workspace : Workspace ,
186186 ) : ContainerBlock {
187187 const containerBlock = workspace . newBlock (
188- 'lists_create_with_container'
188+ 'lists_create_with_container' ,
189189 ) as ContainerBlock ;
190190 ( containerBlock as BlockSvg ) . initSvg ( ) ;
191191 let connection = containerBlock . getInput ( 'STACK' ) ! . connection ;
192192 for ( let i = 0 ; i < this . itemCount_ ; i ++ ) {
193193 const itemBlock = workspace . newBlock (
194- 'lists_create_with_item'
194+ 'lists_create_with_item' ,
195195 ) as ItemBlock ;
196196 ( itemBlock as BlockSvg ) . initSvg ( ) ;
197197 if ( ! itemBlock . previousConnection ) {
@@ -209,7 +209,7 @@ const LISTS_CREATE_WITH = {
209209 */
210210 compose : function ( this : CreateWithBlock , containerBlock : Block ) {
211211 let itemBlock : ItemBlock | null = containerBlock . getInputTargetBlock (
212- 'STACK'
212+ 'STACK' ,
213213 ) as ItemBlock ;
214214 // Count number of inputs.
215215 const connections : Connection [ ] = [ ] ;
@@ -242,7 +242,7 @@ const LISTS_CREATE_WITH = {
242242 */
243243 saveConnections : function ( this : CreateWithBlock , containerBlock : Block ) {
244244 let itemBlock : ItemBlock | null = containerBlock . getInputTargetBlock (
245- 'STACK'
245+ 'STACK' ,
246246 ) as ItemBlock ;
247247 let i = 0 ;
248248 while ( itemBlock ) {
@@ -265,7 +265,7 @@ const LISTS_CREATE_WITH = {
265265 this . removeInput ( 'EMPTY' ) ;
266266 } else if ( ! this . itemCount_ && ! this . getInput ( 'EMPTY' ) ) {
267267 this . appendDummyInput ( 'EMPTY' ) . appendField (
268- Msg [ 'LISTS_CREATE_EMPTY_TITLE' ]
268+ Msg [ 'LISTS_CREATE_EMPTY_TITLE' ] ,
269269 ) ;
270270 }
271271 // Add new inputs.
@@ -297,7 +297,7 @@ const LISTS_CREATE_WITH_CONTAINER = {
297297 init : function ( this : ContainerBlock ) {
298298 this . setStyle ( 'list_blocks' ) ;
299299 this . appendDummyInput ( ) . appendField (
300- Msg [ 'LISTS_CREATE_WITH_CONTAINER_TITLE_ADD' ]
300+ Msg [ 'LISTS_CREATE_WITH_CONTAINER_TITLE_ADD' ] ,
301301 ) ;
302302 this . appendStatementInput ( 'STACK' ) ;
303303 this . setTooltip ( Msg [ 'LISTS_CREATE_WITH_CONTAINER_TOOLTIP' ] ) ;
@@ -358,7 +358,7 @@ const LISTS_INDEXOF = {
358358 this . setTooltip ( ( ) => {
359359 return Msg [ 'LISTS_INDEX_OF_TOOLTIP' ] . replace (
360360 '%1' ,
361- this . workspace . options . oneBasedIndex ? '0' : '-1'
361+ this . workspace . options . oneBasedIndex ? '0' : '-1' ,
362362 ) ;
363363 } ) ;
364364 } ,
@@ -401,7 +401,7 @@ const LISTS_GETINDEX = {
401401 const isStatement = value === 'REMOVE' ;
402402 ( this . getSourceBlock ( ) as GetIndexBlock ) . updateStatement_ ( isStatement ) ;
403403 return undefined ;
404- }
404+ } ,
405405 ) ;
406406 this . appendValueInput ( 'VALUE' )
407407 . setCheck ( 'Array' )
@@ -568,7 +568,7 @@ const LISTS_GETINDEX = {
568568 this . appendValueInput ( 'AT' ) . setCheck ( 'Number' ) ;
569569 if ( Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ) {
570570 this . appendDummyInput ( 'ORDINAL' ) . appendField (
571- Msg [ 'ORDINAL_NUMBER_SUFFIX' ]
571+ Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ,
572572 ) ;
573573 }
574574 } else {
@@ -596,7 +596,7 @@ const LISTS_GETINDEX = {
596596 return null ;
597597 }
598598 return undefined ;
599- }
599+ } ,
600600 ) ;
601601 this . getInput ( 'AT' ) ! . appendField ( menu , 'WHERE' ) ;
602602 if ( Msg [ 'LISTS_GET_INDEX_TAIL' ] ) {
@@ -685,7 +685,7 @@ const LISTS_SETINDEX = {
685685 ' ' +
686686 Msg [ 'LISTS_INDEX_FROM_START_TOOLTIP' ] . replace (
687687 '%1' ,
688- this . workspace . options . oneBasedIndex ? '#1' : '#0'
688+ this . workspace . options . oneBasedIndex ? '#1' : '#0' ,
689689 ) ;
690690 }
691691 return tooltip ;
@@ -747,7 +747,7 @@ const LISTS_SETINDEX = {
747747 this . appendValueInput ( 'AT' ) . setCheck ( 'Number' ) ;
748748 if ( Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ) {
749749 this . appendDummyInput ( 'ORDINAL' ) . appendField (
750- Msg [ 'ORDINAL_NUMBER_SUFFIX' ]
750+ Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ,
751751 ) ;
752752 }
753753 } else {
@@ -775,7 +775,7 @@ const LISTS_SETINDEX = {
775775 return null ;
776776 }
777777 return undefined ;
778- }
778+ } ,
779779 ) ;
780780 this . moveInputBefore ( 'AT' , 'TO' ) ;
781781 if ( this . getInput ( 'ORDINAL' ) ) {
@@ -887,7 +887,7 @@ const LISTS_GETSUBLIST = {
887887 this . appendValueInput ( 'AT' + n ) . setCheck ( 'Number' ) ;
888888 if ( Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ) {
889889 this . appendDummyInput ( 'ORDINAL' + n ) . appendField (
890- Msg [ 'ORDINAL_NUMBER_SUFFIX' ]
890+ Msg [ 'ORDINAL_NUMBER_SUFFIX' ] ,
891891 ) ;
892892 }
893893 } else {
@@ -915,7 +915,7 @@ const LISTS_GETSUBLIST = {
915915 block . setFieldValue ( value , 'WHERE' + n ) ;
916916 return null ;
917917 }
918- }
918+ } ,
919919 ) ;
920920 this . getInput ( 'AT' + n ) ! . appendField ( menu , 'WHERE' + n ) ;
921921 if ( n === 1 ) {
0 commit comments