Skip to content

Commit e1e19da

Browse files
committedJul 9, 2022
More accurate location for TemplateTail and TemplatePart.
1 parent 36d9227 commit e1e19da

File tree

10 files changed

+1090
-702
lines changed

10 files changed

+1090
-702
lines changed
 

‎analysis/Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ clean:
3333
make -C tests clean
3434
make -C reanalyze clean
3535

36-
format:
37-
dune build @fmt --auto-promote
38-
3936
checkformat:
4037
dune build @fmt
4138

‎analysis/dune-project

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
(lang dune 2.0)
22

3-
(name rescript-vscode)
3+
(package
4+
(name rescript-vscode)
5+
(synopsis "ReScript vscode support")
6+
(depends
7+
(ocaml
8+
(>= 4.10))
9+
(ocamlformat
10+
(= 0.22.4))
11+
(reanalyze
12+
(= 2.23.0))
13+
dune))
File renamed without changes.

‎analysis/tests/src/expected/Completion.res.txt

+13-16
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,9 @@ Completable: Cpath Value[ForAuto, a]
937937

938938
Complete src/Completion.res 234:34
939939
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:18->234:36]
940-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:34], ...[234:34->234:36])
940+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:34], ...[234:34->234:35])
941941
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:18->234:34]
942-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:32], ...[234:32->234:34])
942+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:30], ...[234:32->234:34])
943943
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:32->234:34]
944944
Pexp_ident na:[234:32->234:34]
945945
Completable: Cpath Value[na]
@@ -1434,9 +1434,9 @@ Completable: Cpath Value[AndThatOther, T]
14341434

14351435
Complete src/Completion.res 378:24
14361436
posCursor:[378:24] posNoWhite:[378:23] Found expr:[378:12->378:26]
1437-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[378:12->378:24], ...[378:24->378:26])
1437+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[378:12->378:24], ...[378:24->378:25])
14381438
posCursor:[378:24] posNoWhite:[378:23] Found expr:[378:12->378:24]
1439-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[378:12->378:16], ...[378:16->378:24])
1439+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[378:12->378:14], ...[378:16->378:24])
14401440
posCursor:[378:24] posNoWhite:[378:23] Found expr:[378:16->378:24]
14411441
Pexp_ident ForAuto.:[378:16->378:24]
14421442
Completable: Cpath Value[ForAuto, ""]
@@ -1456,9 +1456,9 @@ Completable: Cpath Value[ForAuto, ""]
14561456

14571457
Complete src/Completion.res 381:38
14581458
posCursor:[381:38] posNoWhite:[381:37] Found expr:[381:12->381:41]
1459-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:39], ...[381:39->381:41])
1459+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:39], ...[381:39->381:40])
14601460
posCursor:[381:38] posNoWhite:[381:37] Found expr:[381:12->381:39]
1461-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:19], ...[381:19->381:39])
1461+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:17], ...[381:19->381:39])
14621462
posCursor:[381:38] posNoWhite:[381:37] Found expr:[381:19->381:39]
14631463
Pexp_send [381:38->381:38] e:[381:19->381:36]
14641464
Completable: Cpath Value[FAO, forAutoObject][""]
@@ -1478,9 +1478,9 @@ Completable: Cpath Value[FAO, forAutoObject][""]
14781478

14791479
Complete src/Completion.res 384:24
14801480
posCursor:[384:24] posNoWhite:[384:23] Found expr:[384:11->384:26]
1481-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:11->384:24], ...[384:24->384:26])
1481+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:11->384:24], ...[384:24->384:25])
14821482
posCursor:[384:24] posNoWhite:[384:23] Found expr:[384:11->384:24]
1483-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:11->384:14], ...[384:14->384:24])
1483+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:11->384:12], ...[384:14->384:24])
14841484
posCursor:[384:24] posNoWhite:[384:23] Found expr:[384:14->384:24]
14851485
Pexp_field [384:14->384:23] _:[384:24->384:24]
14861486
Completable: Cpath Value[funRecord].""
@@ -1520,9 +1520,9 @@ Completable: Cpath array->ma
15201520

15211521
Complete src/Completion.res 397:14
15221522
posCursor:[397:14] posNoWhite:[397:13] Found expr:[396:14->397:20]
1523-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:16], ...[397:16->397:20])
1523+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:16], ...[397:16->397:19])
15241524
posCursor:[397:14] posNoWhite:[397:13] Found expr:[396:14->397:16]
1525-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:13], ...[397:13->397:16])
1525+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:11], ...[397:13->397:16])
15261526
posCursor:[397:14] posNoWhite:[397:13] Found expr:[397:13->397:16]
15271527
Pexp_ident red:[397:13->397:16]
15281528
Completable: Cpath Value[red]
@@ -1536,12 +1536,9 @@ Completable: Cpath Value[red]
15361536

15371537
Complete src/Completion.res 402:24
15381538
posCursor:[402:24] posNoWhite:[402:23] Found expr:[400:14->402:31]
1539-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:27], ...[402:27->402:31])
1539+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:27], ...[402:27->402:30])
15401540
posCursor:[402:24] posNoWhite:[402:23] Found expr:[400:14->402:27]
1541-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:24], ...[402:24->402:27])
1542-
posCursor:[402:24] posNoWhite:[402:23] Found expr:[400:14->402:24]
1543-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->401:16], ...[401:16->402:24])
1544-
posCursor:[402:24] posNoWhite:[402:23] Found expr:[401:16->402:24]
1545-
Completable: Cnone
1541+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:22], ...[402:24->402:27])
1542+
Completable: CnamedArg(Value[^], "", [])
15461543
[]
15471544

‎analysis/vendor/dune

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(dirs compiler-libs-406 ext res_outcome_printer json)

0 commit comments

Comments
 (0)