TortureCtors.dart 586 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /** Block dartdoc for blockDoc. */
  2. void blockDoc() {}
  3. /// Line doc kept.
  4. // Plain comment also kept?
  5. void mixedDoc() {}
  6. // Only plain.
  7. void plainDoc() {}
  8. extension type Meters(double value) {
  9. double get km => value / 1000;
  10. void report() {
  11. print(km);
  12. }
  13. }
  14. class Action {
  15. @override
  16. (int, String) reduce() => (1, 'a');
  17. void caller() {
  18. this.own();
  19. super.parent();
  20. generic<int>(5);
  21. final t = reduce();
  22. }
  23. }
  24. enum Flag { on, off }
  25. void flagUse(Flag f) {
  26. final v = Flag.on;
  27. switch (f) {
  28. case Flag.off:
  29. use(v);
  30. default:
  31. break;
  32. }
  33. }