Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit d839123

Browse files
authored
Update emitter.dart (#429)
* Update emitter.dart Add a newline after lambdas. * Rev version * Fix typo
1 parent 84dd158 commit d839123

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.7.0
2+
3+
* Add a newline after lambdas.
4+
15
## 4.6.0
26

37
* Add support for named arguments in `enum` classes

lib/src/emitter.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class DartEmitter extends Object
164164
for (var m in spec.methods) {
165165
visitMethod(m, out);
166166
if (_isLambdaMethod(m)) {
167-
out.write(';');
167+
out.writeln(';');
168168
}
169169
out.writeln();
170170
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: code_builder
2-
version: 4.6.0
2+
version: 4.7.0
33
description: >-
44
A fluent, builder-based library for generating valid Dart code
55
repository: https://github.com/dart-lang/code_builder

0 commit comments

Comments
 (0)