Skip to content

Commit 3005e56

Browse files
committed
latest vendored parser + libs
1 parent a43eb3b commit 3005e56

File tree

11 files changed

+822
-459
lines changed

11 files changed

+822
-459
lines changed

analysis/reanalyze/examples/deadcode/expected/deadcode.txt

Lines changed: 334 additions & 334 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,127 @@
11

22

33
Exception Analysis
4-
File "Exn.res", line 1, characters 5-11
4+
Exn.res:1:5-10
55
raises might raise Not_found (Exn.res:1:19) and is not annotated with @raises(Not_found)
66

77
Exception Analysis
8-
File "Exn.res", line 19, characters 5-29
8+
Exn.res:19:5-28
99
callsRaiseWithAnnotation might raise Not_found (Exn.res:19:31) and is not annotated with @raises(Not_found)
1010

1111
Exception Analysis
12-
File "Exn.res", line 22, characters 5-43
12+
Exn.res:22:5-42
1313
callsRaiseWithAnnotationAndIsAnnotated might raise Not_found (Exn.res:22:45) and is not annotated with @raises(Not_found)
1414

1515
Exception Analysis
16-
File "Exn.res", line 22, characters 5-43
16+
Exn.res:22:5-42
1717
callsRaiseWithAnnotationAndIsAnnotated might raise Not_found (Exn.res:22:45) and is annotated with redundant @raises(A)
1818

1919
Exception Analysis
20-
File "Exn.res", line 24, characters 5-6
20+
Exn.res:24:5
2121
z might raise Failure (Exn.res:24:8) and is not annotated with @raises(Failure)
2222

2323
Exception Analysis
24-
File "Exn.res", line 26, characters 5-20
24+
Exn.res:26:5-19
2525
incompleteMatch might raise Match_failure (Exn.res:27:2) and is not annotated with @raises(Match_failure)
2626

2727
Exception Analysis
28-
File "Exn.res", line 34, characters 5-14
28+
Exn.res:34:5-13
2929
twoRaises might raise [A (Exn.res:36:4), B (Exn.res:39:4)] and is not annotated with @raises([A, B])
3030

3131
Exception Analysis
32-
File "Exn.res", line 43, characters 5-15
32+
Exn.res:43:5-14
3333
sequencing might raise A (Exn.res:44:2) and is not annotated with @raises(A)
3434

3535
Exception Analysis
36-
File "Exn.res", line 50, characters 5-15
36+
Exn.res:50:5-14
3737
wrongCatch might raise B (Exn.res:51:6) and is not annotated with @raises(B)
3838

3939
Exception Analysis
40-
File "Exn.res", line 56, characters 5-16
40+
Exn.res:56:5-15
4141
wrongCatch2 might raise [C (Exn.res:57:24), Match_failure (Exn.res:57:2)] and is not annotated with @raises([C, Match_failure])
4242

4343
Exception Analysis
44-
File "Exn.res", line 64, characters 5-20
44+
Exn.res:64:5-19
4545
raise2Annotate3 might raise [A (Exn.res:66:4), B (Exn.res:69:4)] and is annotated with redundant @raises(C)
4646

4747
Exception Analysis
48-
File "Exn.res", line 75, characters 5-25
48+
Exn.res:75:5-24
4949
parse_json_from_file might raise Error (Exn.res:78:4) and is not annotated with @raises(Error)
5050

5151
Exception Analysis
52-
File "Exn.res", line 84, characters 5-12
52+
Exn.res:84:5-11
5353
reRaise might raise B (Exn.res:86:19) and is not annotated with @raises(B)
5454

5555
Exception Analysis
56-
File "Exn.res", line 95, characters 5-23
56+
Exn.res:95:5-22
5757
raiseInInternalLet might raise A (Exn.res:96:14) and is not annotated with @raises(A)
5858

5959
Exception Analysis
60-
File "Exn.res", line 100, characters 5-17
60+
Exn.res:100:5-16
6161
indirectCall might raise Not_found (Exn.res:100:31) and is not annotated with @raises(Not_found)
6262

6363
Exception Analysis
64-
File "Exn.res", line 148, characters 5-17
64+
Exn.res:148:5-16
6565
severalCases might raise Failure (Exn.res:150:13 Exn.res:151:13 Exn.res:152:15) and is not annotated with @raises(Failure)
6666

6767
Exception Analysis
68-
File "Exn.res", line 159, characters 32-57
68+
Exn.res:159:32-56
6969
String.uncapitalize_ascii does not raise and is annotated with redundant @doesNotRaise
7070

7171
Exception Analysis
72-
File "Exn.res", line 161, characters 32-64
72+
Exn.res:161:32-63
7373
String.uncapitalize_ascii does not raise and is annotated with redundant @doesNotRaise
7474

7575
Exception Analysis
76-
File "Exn.res", line 163, characters 47-72
76+
Exn.res:163:47-71
7777
String.uncapitalize_ascii does not raise and is annotated with redundant @doesNotRaise
7878

7979
Exception Analysis
80-
File "Exn.res", line 163, characters 47-80
80+
Exn.res:163:47-79
8181
expression does not raise and is annotated with redundant @doesNotRaise
8282

8383
Exception Analysis
84-
File "Exn.res", line 169, characters 51-56
84+
Exn.res:169:51-55
8585
expression does not raise and is annotated with redundant @doesNotRaise
8686

8787
Exception Analysis
88-
File "Exn.res", line 167, characters 25-57
88+
Exn.res:167:25-56
8989
String.uncapitalize_ascii does not raise and is annotated with redundant @doesNotRaise
9090

9191
Exception Analysis
92-
File "Exn.res", line 176, characters 5-24
92+
Exn.res:176:5-23
9393
redundantAnnotation raises nothing and is annotated with redundant @raises(Invalid_argument)
9494

9595
Exception Analysis
96-
File "Exn.res", line 178, characters 5-7
96+
Exn.res:178:5-6
9797
_x might raise A (Exn.res:178:9) and is not annotated with @raises(A)
9898

9999
Exception Analysis
100-
File "Exn.res", line 180, characters 5-6
100+
Exn.res:180:5
101101
_ might raise A (Exn.res:180:8) and is not annotated with @raises(A)
102102

103103
Exception Analysis
104-
File "Exn.res", line 182, characters 5-7
104+
Exn.res:182:5-6
105105
() might raise A (Exn.res:182:9) and is not annotated with @raises(A)
106106

107107
Exception Analysis
108-
File "Exn.res", line 184, characters 1-17
108+
Exn.res:184:1-16
109109
Toplevel expression might raise Not_found (Exn.res:184:0) and is not annotated with @raises(Not_found)
110110

111111
Exception Analysis
112-
File "Exn.res", line 186, characters 1-20
112+
Exn.res:186:1-19
113113
Toplevel expression might raise exit (Exn.res:186:7) and is not annotated with @raises(exit)
114114

115115
Exception Analysis
116-
File "Exn.res", line 196, characters 45-47
116+
Exn.res:196:45-46
117117
expression does not raise and is annotated with redundant @doesNotRaise
118118

119119
Exception Analysis
120-
File "Exn.res", line 196, characters 5-22
120+
Exn.res:196:5-21
121121
onResultPipeWrong might raise Assert_failure (Exn.res:196:48) and is not annotated with @raises(Assert_failure)
122122

123123
Exception Analysis
124-
File "ExnA.res", line 1, characters 5-8
124+
ExnA.res:1:5-7
125125
bar might raise Not_found (ExnA.res:1:16) and is not annotated with @raises(Not_found)
126126

127127
Analysis reported 31 issues (Exception Analysis:31)

analysis/reanalyze/examples/termination/expected/termination.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,69 +160,69 @@
160160

161161

162162
Error Termination
163-
File "TestCyberTruck.res", line 29, characters 28-40
163+
TestCyberTruck.res:29:28-39
164164
Possible infinite loop when calling alwaysLoop
165165
CallStack:
166166
1 alwaysLoop (TestCyberTruck.res 29)
167167

168168
Error Termination
169-
File "TestCyberTruck.res", line 40, characters 3-29
169+
TestCyberTruck.res:40:3-28
170170
Possible infinite loop when calling alwaysProgressWrongOrder
171171
CallStack:
172172
1 alwaysProgressWrongOrder (TestCyberTruck.res 39)
173173

174174
Error Hygiene
175-
File "TestCyberTruck.res", line 47, characters 15-25
175+
TestCyberTruck.res:47:15-24
176176
doNotAlias can only be called directly, or passed as labeled argument
177177

178178
Error Termination
179-
File "TestCyberTruck.res", line 68, characters 3-25
179+
TestCyberTruck.res:68:3-24
180180
Possible infinite loop when calling progressOnOneBranch
181181
CallStack:
182182
1 progressOnOneBranch (TestCyberTruck.res 64)
183183

184184
Error Termination
185-
File "TestCyberTruck.res", line 80, characters 48-64
185+
TestCyberTruck.res:80:48-63
186186
Possible infinite loop when calling parseFunction which is testParametricFunction
187187
CallStack:
188188
3 callParseFunction<parseFunction:testParametricFunction> (TestCyberTruck.res 79)
189189
2 testParametricFunction2 (TestCyberTruck.res 77)
190190
1 testParametricFunction (TestCyberTruck.res 73)
191191

192192
Error Termination
193-
File "TestCyberTruck.res", line 89, characters 3-18
193+
TestCyberTruck.res:89:3-17
194194
Possible infinite loop when calling testCacheHit
195195
CallStack:
196196
1 testCacheHit (TestCyberTruck.res 83)
197197

198198
Error Termination
199-
File "TestCyberTruck.res", line 97, characters 31-59
199+
TestCyberTruck.res:97:31-58
200200
Possible infinite loop when calling evalOrderIsNotLeftToRight
201201
CallStack:
202202
1 evalOrderIsNotLeftToRight (TestCyberTruck.res 95)
203203

204204
Error Termination
205-
File "TestCyberTruck.res", line 104, characters 19-47
205+
TestCyberTruck.res:104:19-46
206206
Possible infinite loop when calling evalOrderIsNotRightToLeft
207207
CallStack:
208208
1 evalOrderIsNotRightToLeft (TestCyberTruck.res 102)
209209

210210
Error Termination
211-
File "TestCyberTruck.res", line 180, characters 15-22
211+
TestCyberTruck.res:180:15-21
212212
Possible infinite loop when calling parseList$loop<f:f> which is parseList$loop<f:parseListInt>
213213
CallStack:
214214
3 parseList$loop<f:parseListInt> (TestCyberTruck.res 183)
215215
2 parseList<f:parseListInt> (TestCyberTruck.res 201)
216216
1 parseListListInt (TestCyberTruck.res 201)
217217

218218
Error Termination
219-
File "TestCyberTruck.res", line 238, characters 31-50
219+
TestCyberTruck.res:238:31-49
220220
Possible infinite loop when calling loopAfterProgress
221221
CallStack:
222222
1 loopAfterProgress (TestCyberTruck.res 236)
223223

224224
Error Termination
225-
File "TestCyberTruck.res", line 286, characters 32-62
225+
TestCyberTruck.res:286:32-61
226226
Possible infinite loop when calling countRendersCompiled
227227
CallStack:
228228
1 countRendersCompiled (TestCyberTruck.res 283)

0 commit comments

Comments
 (0)