Added forgotten member of operator
This commit is contained in:
parent
e23888844b
commit
3034995a58
|
@ -336,6 +336,7 @@ Here are all operators and their types and names in order of operator precedence
|
|||
| `++` | Unary (Prefix) | Prefix Increment *Operator* |
|
||||
| `-` | Unary (Prefix) | Negate *Operator* |
|
||||
| `!` | Unary (Prefix) | Boolean NOT *Operator* |
|
||||
| `.` | Binary | Member of *Operator* |
|
||||
| `>>` | Binary | Right Shift *Operator* |
|
||||
| `<<` | Binary | Left Shift *Operator* |
|
||||
| `^` | Binary | Bitwise XOR *Operator* |
|
||||
|
|
|
@ -22,6 +22,7 @@ fn test_func(arg1: int, arg2: unsigned = 10) -> fixed {
|
|||
}
|
||||
|
||||
fn test_func2() -> Point {
|
||||
Point.points;
|
||||
test++;
|
||||
test--;
|
||||
--test;
|
||||
|
|
|
@ -257,6 +257,7 @@ class BinaryOperatorEnum(Enum):
|
|||
BitwiseXOR = "^"
|
||||
LeftShift = "<<"
|
||||
RightShift = ">>"
|
||||
MemberOf = "."
|
||||
Assignment = "="
|
||||
AdditionAssignment = "+="
|
||||
SubtractionAssignment = "-="
|
||||
|
@ -375,6 +376,7 @@ _Operator_Precedence: tuple[
|
|||
PrefixUnaryOperatorEnum.Increment,
|
||||
PrefixUnaryOperatorEnum.Negate,
|
||||
PrefixUnaryOperatorEnum.BooleanNOT,
|
||||
BinaryOperatorEnum.MemberOf,
|
||||
BinaryOperatorEnum.RightShift,
|
||||
BinaryOperatorEnum.LeftShift,
|
||||
BinaryOperatorEnum.BitwiseXOR,
|
||||
|
|
Loading…
Reference in New Issue