Skip to content

Commit 929c5e3

Browse files
committed
formatting
1 parent e22dbed commit 929c5e3

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

runtime/Stdlib_Int.resi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -470,42 +470,42 @@ Int.shiftRightUnsigned(4, 1) == 2
470470
*/
471471
external shiftRightUnsigned: (int, int) => int = "%lsrint"
472472

473-
module Bitwise = {
473+
module Bitwise: {
474474
@deprecated({
475475
reason: "Use `Int.bitwiseAnd` instead",
476-
migrate: Int.bitwiseAnd()
476+
migrate: Int.bitwiseAnd(),
477477
})
478478
external land: (int, int) => int = "%andint"
479479
@deprecated({
480480
reason: "Use `Int.bitwiseOr` instead",
481-
migrate: Int.bitwiseOr()
481+
migrate: Int.bitwiseOr(),
482482
})
483483
external lor: (int, int) => int = "%orint"
484484
@deprecated({
485485
reason: "Use `Int.bitwiseXor` instead",
486-
migrate: Int.bitwiseXor()
486+
migrate: Int.bitwiseXor(),
487487
})
488488
external lxor: (int, int) => int = "%xorint"
489489

490490
@deprecated({
491491
reason: "Use `Int.shiftLeft` instead",
492-
migrate: Int.shiftLeft()
492+
migrate: Int.shiftLeft(),
493493
})
494494
external lsl: (int, int) => int = "%lslint"
495495
@deprecated({
496496
reason: "Use `Int.shiftRightUnsigned` instead",
497-
migrate: Int.shiftRightUnsigned()
497+
migrate: Int.shiftRightUnsigned(),
498498
})
499499
external lsr: (int, int) => int = "%lsrint"
500500
@deprecated({
501501
reason: "Use `Int.shiftRight` instead",
502-
migrate: Int.shiftRight()
502+
migrate: Int.shiftRight(),
503503
})
504504
external asr: (int, int) => int = "%asrint"
505505

506506
@deprecated({
507507
reason: "Use `Int.bitwiseNot` instead",
508-
migrate: Int.bitwiseNot()
508+
migrate: Int.bitwiseNot(),
509509
})
510510
let lnot: int => int
511511
}

tests/tools_tests/src/migrate/migrated/Migrated_StdlibMigration_Array.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,3 @@ let reduceRight2 = Array.reduceRight([1, 2, 3], 0, (acc, x) => acc + x)
168168

169169
let reduceRighti1 = [1, 2, 3]->Array.reduceRightWithIndex(0, (acc, x, i) => acc + x + i)
170170
let reduceRighti2 = Array.reduceRightWithIndex([1, 2, 3], 0, (acc, x, i) => acc + x + i)
171-

tests/tools_tests/src/migrate/migrated/Migrated_StdlibMigration_Int.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ let result = Int.shiftLeft(1, 2)
77
let result = Int.shiftRightUnsigned(1, 2)
88
let result = Int.shiftRight(1, 2)
99
let result = Int.bitwiseNot(0)
10-

tests/tools_tests/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ for file in src/migrate/StdlibMigration_*.res; do
4848
output="src/migrate/migrated/Migrated_$(basename $file)"
4949
echo "// This file is autogenerated so it can be type checked.
5050
// It's the migrated version of $file." > "$output" && cat "$expected_file" >> "$output"
51+
../../cli/rescript.js format "$output"
5152
done
5253

5354
warningYellow='\033[0;33m'

0 commit comments

Comments
 (0)