Skip to content

Commit e22dbed

Browse files
committed
commit new output
1 parent 9953817 commit e22dbed

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
DeprecatedStuff.res: File did not need migration
1+
@send
2+
external slice: (string, ~from: int, ~to_: int) => string = "slice"
3+
4+
@send
5+
external shift: array<'a> => option<'a> = "shift"
6+
7+
module Constants = {
8+
let otherThing = [2, 3]
9+
}
10+
11+
let deprecatedThing = [1, 2]
12+
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
DeprecatedStuff.resi: File did not need migration
1+
@deprecated({
2+
reason: "Use `String.slice` instead",
3+
migrate: String.slice(
4+
~start=%insert.labelledArgument("from"),
5+
~end=%insert.labelledArgument("to_"),
6+
),
7+
})
8+
@send
9+
external slice: (string, ~from: int, ~to_: int) => string = "slice"
10+
11+
@send
12+
@deprecated({
13+
reason: "Use `Array.shift` instead.",
14+
migrate: Array.shift(),
15+
})
16+
external shift: array<'a> => option<'a> = "shift"
17+
18+
module Constants: {
19+
let otherThing: array<int>
20+
}
21+
22+
@deprecated({
23+
reason: "Use `otherThing` instead.",
24+
migrate: DeprecatedStuff.Constants.otherThing,
25+
})
26+
let deprecatedThing: array<int>
27+

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This file is autogenerated so it can be type checked.
2+
// It's the migrated version of src/migrate/StdlibMigration_Int.res.
13
let result = Int.bitwiseAnd(1, 2)
24
let result = Int.bitwiseOr(1, 2)
35
let result = Int.bitwiseXor(1, 2)

0 commit comments

Comments
 (0)