Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 4.10.1-wip

## 4.10.0

* Add `Library.docs` to support emitting doc comments on libraries.
Expand Down
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: code_builder
version: 4.10.0
description: >-
A fluent, builder-based library for generating valid Dart code
version: 4.10.1-wip
description: A fluent, builder-based library for generating valid Dart code.
repository: https://github.com/dart-lang/code_builder

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ^3.0.0

dependencies:
built_collection: ^5.0.0
Expand All @@ -18,7 +17,7 @@ dev_dependencies:
build: ^2.0.0
build_runner: ^2.0.3
built_value_generator: ^8.0.0
dart_flutter_team_lints: ^1.0.0
dart_flutter_team_lints: ^2.0.0
dart_style: ^2.3.4
source_gen: ^1.0.0
test: ^1.16.0
2 changes: 1 addition & 1 deletion test/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ final DartFormatter _dartfmt = DartFormatter();
String _format(String source) {
try {
return _dartfmt.format(source);
} on FormatException catch (_) {
} on FormatterException catch (_) {
return _dartfmt.formatStatement(source);
}
}
Expand Down
5 changes: 4 additions & 1 deletion test/specs/extension_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ void main() {
equalsDart(r'''
extension type Foo._(int bar) {
Foo(this.bar);
factory Foo.named(int baz) { return Foo(baz); }

factory Foo.named(int baz) {
return Foo(baz);
}
}
'''),
);
Expand Down