google / blockly-android

Blockly for Android
Apache License 2.0
671 stars 209 forks source link

Adding Block.reshape(). Making Inputs immutable. #563

Closed AnmAtAnm closed 7 years ago

AnmAtAnm commented 7 years ago

reshape() updates the inputs and all connections with potentially new values, potentially changing the shape of the block. This method is designed be called by either the constructor or mutators.

This version has not been fully tested, but works well enough to replace the previous block construction implementation. All old tests pass, and there is no noticeable different in the UI.


This change is Reviewable