smalruby / smalruby3-gui

Smalruby 3.0 GUI project forked from LLK/scratch-gui
https://smalruby.jp/smalruby3-gui
BSD 3-Clause "New" or "Revised" License
21 stars 17 forks source link

stop self.when, when is one of reserve word and self.when is special. #309

Closed takaokouji closed 1 year ago

takaokouji commented 1 year ago
takaokouji commented 1 year ago

残りは以下。使っていない拡張機能なのであとまわしにします。

tk2002mac:smalruby3-gui kouji$ git grep -n '()}\.when(' src/lib/ruby-generator
src/lib/ruby-generator/boost.js:73:        return `${Generator.spriteName()}.when(:boost_color, ${color}) do\n`;
src/lib/ruby-generator/boost.js:90:        return `${Generator.spriteName()}.when(:boost_tilted, ${tiltdirectionany}) do\n`;
src/lib/ruby-generator/ev3.js:19:        return `${Generator.spriteName()}.when(:ev3_button_pressed, ${port}) do\n`;
src/lib/ruby-generator/ev3.js:55:        return `${Generator.spriteName()}.when(:ev3_distance_gt, ${distance}) do\n`;
src/lib/ruby-generator/ev3.js:61:        return `${Generator.spriteName()}.when(:ev3_brightness_gt, ${distance}) do\n`;
src/lib/ruby-generator/gdx_for.js:15:        return `${Generator.spriteName()}.when(:gdx_for_gesture, ${gesture}) do\n`;
src/lib/ruby-generator/gdx_for.js:26:        return `${Generator.spriteName()}.when(:gdx_force_sensor, ${pushPull}) do\n`;
src/lib/ruby-generator/gdx_for.js:41:        return `${Generator.spriteName()}.when(:gdx_for_tilted, ${tilt}) do\n`;
src/lib/ruby-generator/makeymakey.js:15:        return `${Generator.spriteName()}.when(:makey_key_pressed, ${key}) do\n`;
src/lib/ruby-generator/makeymakey.js:26:        return `${Generator.spriteName()}.when(:makey_pressed_in_oder, ${sequence}) do\n`;