All files / transpiler/logic/analysis/types TBinaryOperatorLevel.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
/**
 * The binary-operator levels of the C-Next expression grammar, in precedence
 * order from tightest to loosest.
 *
 * An analyzer that inspects operand pairs selects the levels its rule governs:
 * MISRA Rule 10.4 skips `shift` (a shift count is promoted independently, so
 * the usual arithmetic conversions do not apply), and MISRA Rule 10.1's
 * Boolean-operand check skips `equality` (comparing two bools is permitted).
 */
type TBinaryOperatorLevel =
  | "multiplicative"
  | "additive"
  | "shift"
  | "bitwiseAnd"
  | "bitwiseXor"
  | "bitwiseOr"
  | "relational"
  | "equality";
 
export default TBinaryOperatorLevel;