Add static type support for blocks - #75
Conversation
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
|
My sense is that the exact set of types that you want are probably going to be fairly specific to the language that is going to be generated and the potential subset of types that the particular Blockly app developer wants to support in their app. Consequently, I think you might want to specify an interface/API that the Blockly app developer has to support and your code uses that to generate the types. That's still somewhat independent of the three basic UI choices that you mention above. Also note that you (and/or the Blockly app developer) might also want to support " |
|
I built a version of this for my own project, but it's tailored closely to how that codebase works. It doesn't generalize well enough to belong in the plugin, so I'm closing this PR. |



Draft demo for static type support.
Open questions
fieldVar_that they contain?setCheck)Current behaviour
Set type in init: