From d8391237750224b39684915d3676406394d4ae59 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 25 Sep 2023 13:50:35 +0200 Subject: [PATCH] Update emitter.dart (#429) * Update emitter.dart Add a newline after lambdas. * Rev version * Fix typo --- CHANGELOG.md | 4 ++++ lib/src/emitter.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6926dcc..862931d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.7.0 + +* Add a newline after lambdas. + ## 4.6.0 * Add support for named arguments in `enum` classes diff --git a/lib/src/emitter.dart b/lib/src/emitter.dart index 2a84a0b..79b0e0d 100644 --- a/lib/src/emitter.dart +++ b/lib/src/emitter.dart @@ -164,7 +164,7 @@ class DartEmitter extends Object for (var m in spec.methods) { visitMethod(m, out); if (_isLambdaMethod(m)) { - out.write(';'); + out.writeln(';'); } out.writeln(); } diff --git a/pubspec.yaml b/pubspec.yaml index 2a09384..03ba27c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: code_builder -version: 4.6.0 +version: 4.7.0 description: >- A fluent, builder-based library for generating valid Dart code repository: https://github.com/dart-lang/code_builder