mirror of
https://github.com/google/blockly.git
synced 2026-02-16 12:30:09 +01:00
fix(generators): Changes to exports and access controls for TypeScript compatibility (#7295)
* fix(generators): Add missing declarations for Order enums
* chore(generators): Remove spurious whitespace
* fix(generators): Make provideFunction_ etc. public
Remove the protected declaration on provideFunction_ and
FUNCTION_NAME_PLACEHOLDER_ so they can be used from generator
functions written in TypeScript.
Not strictly part of #7283, but closely related and required to
fixing the related issue google/blockly-samples#1785.
* chore(generators): format
(cherry picked from commit d503fbb409)
This commit is contained in:
committed by
Eric Blackmon
parent
20423346b8
commit
bd84ffaecd
38
typings/javascript.d.ts
vendored
38
typings/javascript.d.ts
vendored
@@ -4,4 +4,42 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
export enum Order {
|
||||
ATOMIC = 0, // 0 "" ...
|
||||
NEW = 1.1, // new
|
||||
MEMBER = 1.2, // . []
|
||||
FUNCTION_CALL = 2, // ()
|
||||
INCREMENT = 3, // ++
|
||||
DECREMENT = 3, // --
|
||||
BITWISE_NOT = 4.1, // ~
|
||||
UNARY_PLUS = 4.2, // +
|
||||
UNARY_NEGATION = 4.3, // -
|
||||
LOGICAL_NOT = 4.4, // !
|
||||
TYPEOF = 4.5, // typeof
|
||||
VOID = 4.6, // void
|
||||
DELETE = 4.7, // delete
|
||||
AWAIT = 4.8, // await
|
||||
EXPONENTIATION = 5.0, // **
|
||||
MULTIPLICATION = 5.1, // *
|
||||
DIVISION = 5.2, // /
|
||||
MODULUS = 5.3, // %
|
||||
SUBTRACTION = 6.1, // -
|
||||
ADDITION = 6.2, // +
|
||||
BITWISE_SHIFT = 7, // << >> >>>
|
||||
RELATIONAL = 8, // < <= > >=
|
||||
IN = 8, // in
|
||||
INSTANCEOF = 8, // instanceof
|
||||
EQUALITY = 9, // == != === !==
|
||||
BITWISE_AND = 10, // &
|
||||
BITWISE_XOR = 11, // ^
|
||||
BITWISE_OR = 12, // |
|
||||
LOGICAL_AND = 13, // &&
|
||||
LOGICAL_OR = 14, // ||
|
||||
CONDITIONAL = 15, // ?:
|
||||
ASSIGNMENT = 16, // = += -= **= *= /= %= <<= >>= ...
|
||||
YIELD = 17, // yield
|
||||
COMMA = 18, // ,
|
||||
NONE = 99, // (...)
|
||||
}
|
||||
|
||||
export declare const javascriptGenerator: any;
|
||||
|
||||
Reference in New Issue
Block a user