mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +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 commitd503fbb409) * fix: Correct errors in `HSV_SATURATION`, `HSV_VALUE` accessors (#7297) * fix: Correct errors in HSV_SATURATION, HSV_VALUE accessors Fix the comment / message errors noted in https://github.com/google/blockly/pull/7249#issuecomment-1638645810 * chore: Add renamings for HSV_SATURATION, HSV_VALUE (cherry picked from commit1bc4f67d78) * release: Update version number to 10.0.2 --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
export enum Order {
|
|
ATOMIC = 0, // 0 "" ...
|
|
CLONE = 1, // clone
|
|
NEW = 1, // new
|
|
MEMBER = 2.1, // []
|
|
FUNCTION_CALL = 2.2, // ()
|
|
POWER = 3, // **
|
|
INCREMENT = 4, // ++
|
|
DECREMENT = 4, // --
|
|
BITWISE_NOT = 4, // ~
|
|
CAST = 4, // (int) (float) (string) (array) ...
|
|
SUPPRESS_ERROR = 4, // @
|
|
INSTANCEOF = 5, // instanceof
|
|
LOGICAL_NOT = 6, // !
|
|
UNARY_PLUS = 7.1, // +
|
|
UNARY_NEGATION = 7.2, // -
|
|
MULTIPLICATION = 8.1, // *
|
|
DIVISION = 8.2, // /
|
|
MODULUS = 8.3, // %
|
|
ADDITION = 9.1, // +
|
|
SUBTRACTION = 9.2, // -
|
|
STRING_CONCAT = 9.3, // .
|
|
BITWISE_SHIFT = 10, // << >>
|
|
RELATIONAL = 11, // < <= > >=
|
|
EQUALITY = 12, // == != === !== <> <=>
|
|
REFERENCE = 13, // &
|
|
BITWISE_AND = 13, // &
|
|
BITWISE_XOR = 14, // ^
|
|
BITWISE_OR = 15, // |
|
|
LOGICAL_AND = 16, // &&
|
|
LOGICAL_OR = 17, // ||
|
|
IF_NULL = 18, // ??
|
|
CONDITIONAL = 19, // ?:
|
|
ASSIGNMENT = 20, // = += -= *= /= %= <<= >>= ...
|
|
LOGICAL_AND_WEAK = 21, // and
|
|
LOGICAL_XOR = 22, // xor
|
|
LOGICAL_OR_WEAK = 23, // or
|
|
NONE = 99, // (...)
|
|
}
|
|
|
|
export declare const phpGenerator: any;
|