Format benchmarks/.

Change-Id: I1362ada67a02b0ed352612fc29c727e94d8cd254
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394901
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Robert Nystrom
2024-11-18 10:06:01 +00:00
committed by Commit Queue
parent 54b3ca9ea0
commit e4c8b49dcc
106 changed files with 3873 additions and 2405 deletions
+2 -6
View File
@@ -2,13 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const const1 = <String, String>{
'0': '1',
};
const const1 = <String, String>{'0': '1'};
final final1 = <String, String>{
'0': '1',
};
final final1 = <String, String>{'0': '1'};
const const5 = <String, String>{
'0': '1',
+2 -6
View File
@@ -2,13 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const const1 = <String, String>{
'0': '1',
};
const const1 = <String, String>{'0': '1'};
final final1 = <String, String>{
'0': '1',
};
final final1 = <String, String>{'0': '1'};
const const5 = <String, String>{
'0': '1',
+6 -2
View File
@@ -30,8 +30,12 @@ void main() {
}
}
void generateMap(StringBuffer buffer, String name, int mapSize,
{bool isConst = true}) {
void generateMap(
StringBuffer buffer,
String name,
int mapSize, {
bool isConst = true,
}) {
final constOrFinal = isConst ? 'const' : 'final';
buffer.write('$constOrFinal $name = <String, String>{');
for (int i = 0; i < mapSize; i++) {