mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
* 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
29 lines
795 B
TypeScript
29 lines
795 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
export enum Order {
|
|
ATOMIC = 0, // 0 "" ...
|
|
UNARY_POSTFIX = 1, // expr++ expr-- () [] . ?.
|
|
UNARY_PREFIX = 2, // -expr !expr ~expr ++expr --expr
|
|
MULTIPLICATIVE = 3, // * / % ~/
|
|
ADDITIVE = 4, // + -
|
|
SHIFT = 5, // << >>
|
|
BITWISE_AND = 6, // &
|
|
BITWISE_XOR = 7, // ^
|
|
BITWISE_OR = 8, // |
|
|
RELATIONAL = 9, // >= > <= < as is is!
|
|
EQUALITY = 10, // == !=
|
|
LOGICAL_AND = 11, // &&
|
|
LOGICAL_OR = 12, // ||
|
|
IF_NULL = 13, // ??
|
|
CONDITIONAL = 14, // expr ? expr : expr
|
|
CASCADE = 15, // ..
|
|
ASSIGNMENT = 16, // = *= /= ~/= %= += -= <<= >>= &= ^= |=
|
|
NONE = 99, // (...)
|
|
}
|
|
|
|
export declare const dartGenerator: any;
|