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:
committed by
Commit Queue
parent
54b3ca9ea0
commit
e4c8b49dcc
@@ -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,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',
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user