Skip to content

Commit 75bd389

Browse files
authored
Pass language version to DartFormatter(). (#1317)
Looks like I missed one constructor call when I fixed the others in: #1307
1 parent f59cd79 commit 75bd389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pkgs/web_socket_conformance_tests/bin/generate_server_wrappers.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Future<StreamChannel<Object?>> startServer() async => spawnHybridUri(Uri(
3737

3838
void main() async {
3939
final files = await Directory('lib/src').list().toList();
40-
final formatter = DartFormatter();
40+
final formatter = DartFormatter(
41+
languageVersion: DartFormatter.latestLanguageVersion);
4142

4243
files.where((file) => file.path.endsWith('_server.dart')).forEach((file) {
4344
final vmPath = file.path.replaceAll('_server.dart', '_server_vm.dart');

0 commit comments

Comments
 (0)