Neil Fraser
c9b9144a50
Make explicit that names and IDs are conflated
...
This is potentially dangerous code. And ID could theoretically collide with a name.
2021-05-27 21:30:26 -07:00
Neil Fraser
43b65d2aa1
Factor out procedure population from generators
...
Also fix bug in Lua generator where variables were not populated in the nameDB (only language with no variable initialization).
2021-05-27 21:30:26 -07:00
Neil Fraser
9869269ce2
Add procedures to name DB in init
...
This enables the generator for any block to see all variable names and procedure names in the whole program, including those that haven’t generated yet.
2021-05-27 21:30:26 -07:00
Neil Fraser
17f9209f2f
Add missing extern
2021-05-27 21:30:26 -07:00
Neil Fraser
ecca5bf274
Use Object.values rather than loop
...
Only for JS, Lua, and PHP. Dart and Python need extra logic to split out import statements.
Also use ‘this’ instead of fully qualified names in generators.
2021-05-27 21:30:26 -07:00
Neil Fraser
d919b0af21
Update JSDoc from Array.<> to Array<>
...
Same with Object.
2021-05-27 21:30:26 -07:00
Neil Fraser
b50cb5779f
Set generator’s isInitialized to false in finish
...
Previously isInitialized would remain true after first generation.
Also move common init/finish code to parent class.
2021-05-27 21:30:26 -07:00
Neil Fraser
5d2c48e1ab
Remove unused Blockly.Generator.NAME_TYPE
2021-05-27 21:30:26 -07:00
Neil Fraser
a385f3c2a6
Enable extraction of names from name DB.
...
Also gets rid of hacky name_realm contatination.
2021-05-27 21:30:26 -07:00
Neil Fraser
d519ab8f54
JSDoc improvements
2021-05-27 21:30:26 -07:00
Neil Fraser
2f2252f588
Rename variableDB_ to nameDB_
...
There is significant confusion in names and comments with regards to variables and procedures. `Blockly.Generator.prototype.variableDB_` is a Blockly.Names database, not a variable map. This rename introduces a getter and setter so deprecated references still work. This commit also fixes some comments which are either outright wrong or misleading regarding variable and procedure names.
2021-05-27 21:30:26 -07:00
Monica Kozbial
5344ad6c21
Add support for IAutoHideable ( #4855 )
2021-05-27 17:01:11 -07:00
Monica Kozbial
1cadbb94bd
Rename PluginManager and related elements ( #4857 )
...
* Rename PluginManager and related elements to use component instead of plugin
* Rename types to capabilities
2021-05-27 16:14:33 -07:00
translatewiki.net
a982628826
Localisation updates from https://translatewiki.net .
2021-05-27 15:34:08 +02:00
Beka Westberg
5ffd43824f
Change lastConnectionInRow to getPlaceForOrphanedOutput - Take 2 ( #4851 )
...
* Change lastConnectionInRow to getPlaceForOrphanedOutput
* PR comments
2021-05-26 09:16:33 -07:00
dependabot[bot]
dc02d7a58e
Bump webdriverio from 7.5.7 to 7.6.0 ( #4839 )
...
Bumps [webdriverio](https://github.com/webdriverio/webdriverio ) from 7.5.7 to 7.6.0.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.5.7...v7.6.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 15:56:23 -07:00
dependabot[bot]
3c51cb2bf0
Bump @blockly/dev-tools from 2.2.1 to 2.3.0 ( #4838 )
...
Bumps [@blockly/dev-tools](https://github.com/google/blockly-samples/tree/HEAD/plugins/dev-tools ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/google/blockly-samples/releases )
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/dev-tools@2.3.0/plugins/dev-tools )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 15:04:37 -07:00
dependabot[bot]
38e291f10d
Bump @blockly/block-test from 1.0.13 to 1.0.14 ( #4837 )
...
Bumps [@blockly/block-test](https://github.com/google/blockly-samples/tree/HEAD/plugins/block-test ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/google/blockly-samples/releases )
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/block-test@1.0.14/plugins/block-test )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 15:04:19 -07:00
translatewiki.net
3439c92a40
Localisation updates from https://translatewiki.net .
2021-05-24 13:56:46 +02:00
Neil Fraser
dd0314bc0b
Normalize comments
2021-05-19 09:57:14 -07:00
Neil Fraser
4436e2814d
Use localeCompare’s case insensitivity option
...
Variables and procedures now sorted using local rules, not Unicode code points. Verified that ’sensitivity’ survives Closure compiler without quotes.
2021-05-19 09:57:14 -07:00
Neil Fraser
707b42e79b
Rename ‘type’ to ‘realm’ within Blockly.Names
...
Elsewhere ’type’ refers to int/float/string when referencing variables. This change is local and has no API effect.
2021-05-19 09:57:14 -07:00
dependabot[bot]
894af81383
Bump google-closure-compiler from 20210406.0.0 to 20210505.0.0 ( #4834 )
...
Bumps [google-closure-compiler](https://github.com/google/closure-compiler-npm ) from 20210406.0.0 to 20210505.0.0.
- [Release notes](https://github.com/google/closure-compiler-npm/releases )
- [Commits](https://github.com/google/closure-compiler-npm/compare/v20210406.0.0...v20210505.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 08:05:16 -07:00
dependabot[bot]
b7dc454234
Bump eslint from 7.25.0 to 7.26.0 ( #4833 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 08:04:42 -07:00
dependabot[bot]
c2c6245028
Bump @blockly/theme-dark from 1.0.5 to 1.0.6 ( #4835 )
...
Bumps [@blockly/theme-dark](https://github.com/google/blockly-samples/tree/HEAD/plugins/theme-dark ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/google/blockly-samples/releases )
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/theme-dark@1.0.6/plugins/theme-dark )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 08:04:12 -07:00
dependabot[bot]
7bc040747c
Bump @blockly/theme-modern from 2.1.15 to 2.1.16 ( #4836 )
...
Bumps [@blockly/theme-modern](https://github.com/google/blockly-samples/tree/HEAD/plugins/theme-modern ) from 2.1.15 to 2.1.16.
- [Release notes](https://github.com/google/blockly-samples/releases )
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/theme-modern@2.1.16/plugins/theme-modern )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 08:03:56 -07:00
dependabot[bot]
e6369540ea
Bump concurrently from 6.0.2 to 6.1.0 ( #4816 )
...
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently ) from 6.0.2 to 6.1.0.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases )
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v6.0.2...v6.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 18:15:04 -07:00
dependabot[bot]
b738df84fc
Bump webdriverio from 7.5.3 to 7.5.7 ( #4815 )
...
Bumps [webdriverio](https://github.com/webdriverio/webdriverio ) from 7.5.3 to 7.5.7.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.5.3...v7.5.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 18:14:44 -07:00
dependabot[bot]
d0a88d174a
Bump gulp-replace from 1.1.2 to 1.1.3 ( #4813 )
...
Bumps [gulp-replace](https://github.com/lazd/gulp-replace ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/lazd/gulp-replace/releases )
- [Commits](https://github.com/lazd/gulp-replace/compare/v1.1.2...v1.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 18:14:14 -07:00
dependabot[bot]
5bba186f29
Bump mocha from 8.3.2 to 8.4.0 ( #4814 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.3.2 to 8.4.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v8.3.2...v8.4.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 18:13:21 -07:00
translatewiki.net
4672e0b9b0
Localisation updates from https://translatewiki.net .
2021-05-17 13:05:24 +02:00
Rachel Fenichel
d1aedd9cd5
Merge pull request #4798 from BeksOmega/fix/get-def-procedures
...
Fix getDefinition not working for modified/new procedures
2021-05-11 09:08:48 -07:00
Beka Westberg
75319312c1
Revert "Move ProcedureBlock to interface"
...
This reverts commit 918bdc2359 .
2021-05-10 15:34:36 -07:00
Beka Westberg
8a00303aa7
Revert "Rename to IProcedureBlock"
...
This reverts commit c8a065fa13 .
2021-05-10 15:33:12 -07:00
translatewiki.net
2714417b86
Localisation updates from https://translatewiki.net .
2021-05-10 14:00:53 +02:00
Beka Westberg
c8a065fa13
Rename to IProcedureBlock
2021-05-08 07:57:38 -07:00
Monica Kozbial
6259579c64
Add positioning helpers for trashcan and zoom controls ( #4807 )
2021-05-07 17:13:48 -07:00
dependabot[bot]
681049d54e
Bump gulp-replace from 1.1.1 to 1.1.2 ( #4805 )
...
Bumps [gulp-replace](https://github.com/lazd/gulp-replace ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/lazd/gulp-replace/releases )
- [Commits](https://github.com/lazd/gulp-replace/compare/v1.1.1...v1.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 16:56:12 -07:00
dependabot[bot]
9923366f43
Bump webdriverio from 7.5.1 to 7.5.3 ( #4804 )
...
Bumps [webdriverio](https://github.com/webdriverio/webdriverio ) from 7.5.1 to 7.5.3.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.5.1...v7.5.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 16:55:51 -07:00
Beka Westberg
918bdc2359
Move ProcedureBlock to interface
2021-05-06 12:22:40 -07:00
Beka Westberg
9fbf06c5df
PR Comments
2021-04-27 15:59:25 -07:00
dependabot[bot]
5c5e2791d5
Bump eslint from 7.23.0 to 7.25.0 ( #4802 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.23.0 to 7.25.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.23.0...v7.25.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 09:03:38 -07:00
dependabot[bot]
11942bcdf8
Bump webdriverio from 7.4.6 to 7.5.1 ( #4801 )
...
Bumps [webdriverio](https://github.com/webdriverio/webdriverio ) from 7.4.6 to 7.5.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.4.6...v7.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 09:02:51 -07:00
dependabot[bot]
dfaeef2cef
Bump @blockly/block-test from 1.0.12 to 1.0.13 ( #4800 )
...
Bumps [@blockly/block-test](https://github.com/google/blockly-samples/tree/HEAD/plugins/block-test ) from 1.0.12 to 1.0.13.
- [Release notes](https://github.com/google/blockly-samples/releases )
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/block-test@1.0.13/plugins/block-test )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 09:01:54 -07:00
dependabot[bot]
1e9ef1344b
Bump gulp-replace from 1.0.0 to 1.1.1 ( #4799 )
...
Bumps [gulp-replace](https://github.com/lazd/gulp-replace ) from 1.0.0 to 1.1.1.
- [Release notes](https://github.com/lazd/gulp-replace/releases )
- [Commits](https://github.com/lazd/gulp-replace/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 09:00:19 -07:00
Beka Westberg
43e95af14e
Fix getDefinition being too restrictive
2021-04-25 14:46:51 -07:00
Monica Kozbial
5139057664
Merge consecutive viewport change events ( #4792 )
2021-04-23 10:56:52 -07:00
Beka Westberg
2cfd62a229
Add better error messages to insertion marker ( #4791 )
2021-04-22 11:13:09 -07:00
Sam El-Husseini
f2f878db8c
Fix multiple strict require warnings ( #4793 )
2021-04-21 16:46:04 -07:00
Sam El-Husseini
d83279008b
Remove dark theme in favour of @blockly/theme-dark ( #4697 )
...
* Remove dark theme in favour of @blockly/theme-dark
2021-04-21 13:33:59 -07:00