kswoll / WootzJs

C# to Javascript Compiler implemented via Roslyn
MIT License
110 stars 21 forks source link

Support for Assignment Operators #6

Closed Danielku15 closed 10 years ago

Danielku15 commented 10 years ago

It seems several C# / JavaScript Assignment operators are not implemented:

int a = 3;
int b = 0;
a >>= b;
a <<= b;
a |= b;
a &= b;
a ^= b;
  1. The enum JsBinaryOperator is missing the equivalents.
  2. Idioms.ToBinaryOperator is missing the mapping.
  3. JSBinaryOperators.GetToken is missing the textual mapping.
kswoll commented 10 years ago

Thanks for the report! Fixed. (new unit tests in NumberTests)