Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Update emitter.dart (#429)
Browse files Browse the repository at this point in the history
* Update emitter.dart

Add a newline after lambdas.

* Rev version

* Fix typo
  • Loading branch information
mosuem authored Sep 25, 2023
1 parent 84dd158 commit d839123
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.7.0

* Add a newline after lambdas.

## 4.6.0

* Add support for named arguments in `enum` classes
Expand Down
2 changes: 1 addition & 1 deletion lib/src/emitter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d839123

Please sign in to comment.