File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1042
1042
var color = hue ;
1043
1043
var anchor = $ ( "<a>" ) . append ( helpContents ) . addClass ( "highlight" ) ;
1044
1044
var locsArray = ffi . toArray ( locs ) ;
1045
+ console . log ( {
1046
+ message : "Getting source location in `highlight`" ,
1047
+ srcloc,
1048
+ locsArray,
1049
+ documents
1050
+ } )
1045
1051
var positions = locsArray
1046
1052
. map ( function ( loc ) {
1047
1053
return Position . fromPyretSrcloc ( runtime , srcloc , loc , documents ) ;
1088
1094
if ( CPO . blocksIDE ) {
1089
1095
if ( positions . length > 0 ) {
1090
1096
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 ,
1094
1101
undefined ,
1095
1102
snapColor ) ;
1103
+ console . log ( {
1104
+ message : 'flash sprite position' ,
1105
+ index : locsArray [ 0 ] . dict [ 'start-char' ] + 1 ,
1106
+ snapColor
1107
+ } )
1096
1108
}
1097
1109
} else {
1098
1110
if ( positions [ 0 ] !== undefined )
You can’t perform that action at this time.
0 commit comments