blockly 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ export declare class CodeGenerator {
32
32
  * legitimately appear in a function definition (or comment), and it must
33
33
  * not confuse the regular expression parser.
34
34
  */
35
- protected FUNCTION_NAME_PLACEHOLDER_: string;
35
+ FUNCTION_NAME_PLACEHOLDER_: string;
36
36
  FUNCTION_NAME_PLACEHOLDER_REGEXP_: RegExp;
37
37
  /**
38
38
  * Arbitrary code to inject into locations that risk causing infinite loops.
@@ -191,7 +191,7 @@ export declare class CodeGenerator {
191
191
  * @returns The actual name of the new function. This may differ from
192
192
  * desiredName if the former has already been taken by the user.
193
193
  */
194
- protected provideFunction_(desiredName: string, code: string[] | string): string;
194
+ provideFunction_(desiredName: string, code: string[] | string): string;
195
195
  /**
196
196
  * Hook for code to run before code generation starts.
197
197
  * Subclasses may override this, e.g. to initialise the database of variable
package/dart.d.ts CHANGED
@@ -4,4 +4,25 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export enum Order {
8
+ ATOMIC = 0, // 0 "" ...
9
+ UNARY_POSTFIX = 1, // expr++ expr-- () [] . ?.
10
+ UNARY_PREFIX = 2, // -expr !expr ~expr ++expr --expr
11
+ MULTIPLICATIVE = 3, // * / % ~/
12
+ ADDITIVE = 4, // + -
13
+ SHIFT = 5, // << >>
14
+ BITWISE_AND = 6, // &
15
+ BITWISE_XOR = 7, // ^
16
+ BITWISE_OR = 8, // |
17
+ RELATIONAL = 9, // >= > <= < as is is!
18
+ EQUALITY = 10, // == !=
19
+ LOGICAL_AND = 11, // &&
20
+ LOGICAL_OR = 12, // ||
21
+ IF_NULL = 13, // ??
22
+ CONDITIONAL = 14, // expr ? expr : expr
23
+ CASCADE = 15, // ..
24
+ ASSIGNMENT = 16, // = *= /= ~/= %= += -= <<= >>= &= ^= |=
25
+ NONE = 99, // (...)
26
+ }
27
+
7
28
  export declare const dartGenerator: any;
package/javascript.d.ts CHANGED
@@ -4,4 +4,42 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export enum Order {
8
+ ATOMIC = 0, // 0 "" ...
9
+ NEW = 1.1, // new
10
+ MEMBER = 1.2, // . []
11
+ FUNCTION_CALL = 2, // ()
12
+ INCREMENT = 3, // ++
13
+ DECREMENT = 3, // --
14
+ BITWISE_NOT = 4.1, // ~
15
+ UNARY_PLUS = 4.2, // +
16
+ UNARY_NEGATION = 4.3, // -
17
+ LOGICAL_NOT = 4.4, // !
18
+ TYPEOF = 4.5, // typeof
19
+ VOID = 4.6, // void
20
+ DELETE = 4.7, // delete
21
+ AWAIT = 4.8, // await
22
+ EXPONENTIATION = 5.0, // **
23
+ MULTIPLICATION = 5.1, // *
24
+ DIVISION = 5.2, // /
25
+ MODULUS = 5.3, // %
26
+ SUBTRACTION = 6.1, // -
27
+ ADDITION = 6.2, // +
28
+ BITWISE_SHIFT = 7, // << >> >>>
29
+ RELATIONAL = 8, // < <= > >=
30
+ IN = 8, // in
31
+ INSTANCEOF = 8, // instanceof
32
+ EQUALITY = 9, // == != === !==
33
+ BITWISE_AND = 10, // &
34
+ BITWISE_XOR = 11, // ^
35
+ BITWISE_OR = 12, // |
36
+ LOGICAL_AND = 13, // &&
37
+ LOGICAL_OR = 14, // ||
38
+ CONDITIONAL = 15, // ?:
39
+ ASSIGNMENT = 16, // = += -= **= *= /= %= <<= >>= ...
40
+ YIELD = 17, // yield
41
+ COMMA = 18, // ,
42
+ NONE = 99, // (...)
43
+ }
44
+
7
45
  export declare const javascriptGenerator: any;
package/lua.d.ts CHANGED
@@ -4,4 +4,19 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export enum Order {
8
+ ATOMIC = 0, // literals
9
+ // The next level was not explicit in documentation and inferred by Ellen.
10
+ HIGH = 1, // Function calls, tables[]
11
+ EXPONENTIATION = 2, // ^
12
+ UNARY = 3, // not # - ~
13
+ MULTIPLICATIVE = 4, // * / %
14
+ ADDITIVE = 5, // + -
15
+ CONCATENATION = 6, // ..
16
+ RELATIONAL = 7, // < > <= >= ~= ==
17
+ AND = 8, // and
18
+ OR = 9, // or
19
+ NONE = 99,
20
+ }
21
+
7
22
  export declare const luaGenerator: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "Blockly is a library for building visual programming editors.",
5
5
  "keywords": [
6
6
  "blockly"
package/php.d.ts CHANGED
@@ -4,4 +4,44 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export enum Order {
8
+ ATOMIC = 0, // 0 "" ...
9
+ CLONE = 1, // clone
10
+ NEW = 1, // new
11
+ MEMBER = 2.1, // []
12
+ FUNCTION_CALL = 2.2, // ()
13
+ POWER = 3, // **
14
+ INCREMENT = 4, // ++
15
+ DECREMENT = 4, // --
16
+ BITWISE_NOT = 4, // ~
17
+ CAST = 4, // (int) (float) (string) (array) ...
18
+ SUPPRESS_ERROR = 4, // @
19
+ INSTANCEOF = 5, // instanceof
20
+ LOGICAL_NOT = 6, // !
21
+ UNARY_PLUS = 7.1, // +
22
+ UNARY_NEGATION = 7.2, // -
23
+ MULTIPLICATION = 8.1, // *
24
+ DIVISION = 8.2, // /
25
+ MODULUS = 8.3, // %
26
+ ADDITION = 9.1, // +
27
+ SUBTRACTION = 9.2, // -
28
+ STRING_CONCAT = 9.3, // .
29
+ BITWISE_SHIFT = 10, // << >>
30
+ RELATIONAL = 11, // < <= > >=
31
+ EQUALITY = 12, // == != === !== <> <=>
32
+ REFERENCE = 13, // &
33
+ BITWISE_AND = 13, // &
34
+ BITWISE_XOR = 14, // ^
35
+ BITWISE_OR = 15, // |
36
+ LOGICAL_AND = 16, // &&
37
+ LOGICAL_OR = 17, // ||
38
+ IF_NULL = 18, // ??
39
+ CONDITIONAL = 19, // ?:
40
+ ASSIGNMENT = 20, // = += -= *= /= %= <<= >>= ...
41
+ LOGICAL_AND_WEAK = 21, // and
42
+ LOGICAL_XOR = 22, // xor
43
+ LOGICAL_OR_WEAK = 23, // or
44
+ NONE = 99, // (...)
45
+ }
46
+
7
47
  export declare const phpGenerator: any;
package/python.d.ts CHANGED
@@ -4,4 +4,28 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export enum Order {
8
+ ATOMIC = 0, // 0 "" ...
9
+ COLLECTION = 1, // tuples, lists, dictionaries
10
+ STRING_CONVERSION = 1, // `expression...`
11
+ MEMBER = 2.1, // . []
12
+ FUNCTION_CALL = 2.2, // ()
13
+ EXPONENTIATION = 3, // **
14
+ UNARY_SIGN = 4, // + -
15
+ BITWISE_NOT = 4, // ~
16
+ MULTIPLICATIVE = 5, // * / // %
17
+ ADDITIVE = 6, // + -
18
+ BITWISE_SHIFT = 7, // << >>
19
+ BITWISE_AND = 8, // &
20
+ BITWISE_XOR = 9, // ^
21
+ BITWISE_OR = 10, // |
22
+ RELATIONAL = 11, // in, not in, is, is not, >, >=, <>, !=, ==
23
+ LOGICAL_NOT = 12, // not
24
+ LOGICAL_AND = 13, // and
25
+ LOGICAL_OR = 14, // or
26
+ CONDITIONAL = 15, // if else
27
+ LAMBDA = 16, // lambda
28
+ NONE = 99, // (...)
29
+ }
30
+
7
31
  export declare const pythonGenerator: any;