forked from google/blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demos): Update BlockFactory generator stub generator (google#7211)
Update the BlockFactory block generator function stub generator to apply recent changes in generator function best practices: - Use languageGenarator instead of Blockly.Language. - Put generator functions in .forBlock dictionary. - Accept (and use) a second argument that is the calling CodeGenerator object. - User Order.ATOMIC enum instead of ORDER_ATOMIC. Also: - Prefix (e.g.) javascriptGenerator and Order with "javascript.". - Use template literals where useful. - DRY up all the non-special field stub code generation.
- Loading branch information
Showing
1 changed file
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters