dart-lang / code_builder

A fluent API for generating valid Dart source code
https://pub.dev/packages/code_builder
BSD 3-Clause "New" or "Revised" License
423 stars 66 forks source link

Add missing operator and assignment expressions #427

Closed techouse closed 9 months ago

techouse commented 10 months ago

I have recently struggled to clean up a package that I maintain using Expression operators instead of using Code blocks full of strings, i.e. Code('$a ^ $b') and have discovered that quite a few operators are missing from the Expression class. So I've added all the missing operators and assignments found on https://dart.dev/language/operators.