Skip to content

Commit c354960

Browse files
committed
Js.log -> Console.log
1 parent fd1e7b8 commit c354960

File tree

190 files changed

+543
-543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+543
-543
lines changed

tests/analysis_tests/tests-reanalyze/deadcode/expected/deadcode.txt

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

tests/analysis_tests/tests-reanalyze/deadcode/src/DeadExn.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ let eToplevel = Etoplevel
99

1010
let eInside = Inside.Einside
1111

12-
Js.log(eInside)
12+
Console.log(eInside)
1313

tests/analysis_tests/tests-reanalyze/deadcode/src/DeadRT.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ let rec emitModuleAccessPath = moduleAccessPath =>
88
| Kaboom => ""
99
}
1010

11-
let () = Js.log(Kaboom)
11+
let () = Console.log(Kaboom)
1212

tests/analysis_tests/tests-reanalyze/deadcode/src/DeadTest.res

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let _ = Js.log(ImmutableArray.fromArray)
1+
let _ = Console.log(ImmutableArray.fromArray)
22
let fortytwo = 42
33

44
@genType
@@ -66,11 +66,11 @@ module MM: {
6666
}
6767

6868
let _ = {
69-
Js.log(MM.x)
69+
Console.log(MM.x)
7070
44
7171
}
7272

73-
let () = Js.log(DeadValueTest.valueAlive)
73+
let () = Console.log(DeadValueTest.valueAlive)
7474

7575
let rec unusedRec = () => unusedRec()
7676

@@ -95,7 +95,7 @@ and bar = () => foo()
9595

9696
let withDefaultValue = (~paramWithDefault=3, y) => paramWithDefault + y
9797

98-
let () = Js.log(DeadRT.Root("xzz"))
98+
let () = Console.log(DeadRT.Root("xzz"))
9999

100100
module type LocalDynamicallyLoadedComponent2 = module type of DynamicallyLoadedComponent
101101

@@ -107,7 +107,7 @@ let zzz = {
107107
let a3 = 3
108108
}
109109

110-
let () = Js.log(<DynamicallyLoadedComponent s="" />)
110+
let () = Console.log(<DynamicallyLoadedComponent s="" />)
111111

112112
let second = 1
113113

@@ -116,9 +116,9 @@ let deadRef = ref(12)
116116
@react.component
117117
let make = (~s) => React.string(s)
118118

119-
let () = Js.log(make)
119+
let () = Console.log(make)
120120

121-
let theSideEffectIsLogging = Js.log(123)
121+
let theSideEffectIsLogging = Console.log(123)
122122

123123
let stringLengthNoSideEffects = String.length("sdkdl")
124124

@@ -139,7 +139,7 @@ module WithInclude: {
139139
include T
140140
}
141141

142-
Js.log(WithInclude.A)
142+
Console.log(WithInclude.A)
143143

144144
@dead
145145
let funWithInnerVars = () => {

tests/analysis_tests/tests-reanalyze/deadcode/src/ModuleExceptionBug.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ module Dep = {
55
exception MyOtherException
66

77
let ddjdj = 34
8-
Js.log(ddjdj)
8+
Console.log(ddjdj)

tests/analysis_tests/tests-reanalyze/deadcode/src/Newton.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ let fPrimed = x => 3.0 * x * x - 4.0 * x - 11.0
2828

2929
let result = newton(~f, ~fPrimed, ~initial=5.0, ~threshold=0.0003)
3030

31-
Js.log2(result, f(result))
31+
Console.log2(result, f(result))
3232

tests/analysis_tests/tests-reanalyze/deadcode/src/OptArg.res

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ let foo = (~x=1, ~y=2, ~z=3, w) => x + y + z + w
22

33
let bar = (~x=?, ~y, ~z=?, w) => y + w
44

5-
Js.log(foo(~x=3, 4))
5+
Console.log(foo(~x=3, 4))
66

7-
Js.log(bar(~y=3, 4))
7+
Console.log(bar(~y=3, 4))
88

99
let threeArgs = (~a=1, ~b=2, ~c=3, d) => a + b + c + d
1010

11-
Js.log(threeArgs(~a=4, ~c=7, 1))
12-
Js.log(threeArgs(~a=4, 1))
11+
Console.log(threeArgs(~a=4, ~c=7, 1))
12+
Console.log(threeArgs(~a=4, 1))
1313

1414
let twoArgs = (~a=1, ~b=2, c) => a + b + c
1515

16-
Js.log(1 |> twoArgs)
16+
Console.log(1 |> twoArgs)
1717

1818
let oneArg = (~a=1, ~z, b) => a + b
1919

2020
let wrapOneArg = (~a=?, n) => oneArg(~a?, ~z=33, n)
2121

22-
Js.log(wrapOneArg(~a=3, 44))
22+
Console.log(wrapOneArg(~a=3, 44))
2323

2424
let fourArgs = (~a=1, ~b=2, ~c=3, ~d=4, n) => a + b + c + d + n
2525

2626
let wrapfourArgs = (~a=?, ~b=?, ~c=?, n) => fourArgs(~a?, ~b?, ~c?, n)
2727

28-
Js.log(wrapfourArgs(~a=3, ~c=44, 44))
29-
Js.log(wrapfourArgs(~b=4, ~c=44, 44))
28+
Console.log(wrapfourArgs(~a=3, ~c=44, 44))
29+
Console.log(wrapfourArgs(~b=4, ~c=44, 44))
3030

tests/analysis_tests/tests-reanalyze/deadcode/src/RepeatedLabel.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ type tabState = {
1111

1212
let userData = ({a, b}): userData => {a: a, b: b}
1313

14-
Js.log(userData)
14+
Console.log(userData)
1515

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Js.log(DeadExn.Etoplevel)
1+
Console.log(DeadExn.Etoplevel)
22

tests/analysis_tests/tests-reanalyze/deadcode/src/TestOptArg.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Js.log(OptArg.bar(~z=3, ~y=3, 4))
1+
Console.log(OptArg.bar(~z=3, ~y=3, 4))
22

33
let foo = (~x=3, y) => x + y
44

55
let bar = () => foo(~x=12, 3)
66

7-
Js.log(bar)
7+
Console.log(bar)
88

99
let notSuppressesOptArgs = (~x=1, ~y=2, ~z=3, w) => x + y + z + w
1010

0 commit comments

Comments
 (0)