File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 10421042 var color = hue ;
10431043 var anchor = $ ( "<a>" ) . append ( helpContents ) . addClass ( "highlight" ) ;
10441044 var locsArray = ffi . toArray ( locs ) ;
1045+ console . log ( {
1046+ message : "Getting source location in `highlight`" ,
1047+ srcloc,
1048+ locsArray,
1049+ documents
1050+ } )
10451051 var positions = locsArray
10461052 . map ( function ( loc ) {
10471053 return Position . fromPyretSrcloc ( runtime , srcloc , loc , documents ) ;
10881094 if ( CPO . blocksIDE ) {
10891095 if ( positions . length > 0 ) {
10901096 var snapColor = hueToSnapColor ( color ) ;
1091- CPO . blocksIDE . flashSpriteScripts (
1092- positions [ 0 ] . from . line + 1 , // CPO is 0-based, Snap is 1-based
1093- positions [ 0 ] . to . line + 1 ,
1097+ console . log ( positions [ 0 ] . from ) ;
1098+ console . log ( positions [ 0 ] . to ) ;
1099+ CPO . blocksIDE . flashSpriteScriptAt (
1100+ locsArray [ 0 ] . dict [ 'start-char' ] + 1 ,
10941101 undefined ,
10951102 snapColor ) ;
1103+ console . log ( {
1104+ message : 'flash sprite position' ,
1105+ index : locsArray [ 0 ] . dict [ 'start-char' ] + 1 ,
1106+ snapColor
1107+ } )
10961108 }
10971109 } else {
10981110 if ( positions [ 0 ] !== undefined )
You can’t perform that action at this time.
0 commit comments