Skip to content

Commit

Permalink
Fixing tests since Option.Some and Option.None transformations now us…
Browse files Browse the repository at this point in the history
…e bogus position
  • Loading branch information
kengorab committed Dec 24, 2024
1 parent 37b1a31 commit 878a966
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "accessor",
"root": {
"token": {
"position": [1, 13],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
12 changes: 6 additions & 6 deletions projects/compiler/test/typechecker/array/array.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [7, 28],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -666,7 +666,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [8, 19],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1069,7 +1069,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [11, 20],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1368,7 +1368,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [12, 30],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1605,7 +1605,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [14, 28],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -2076,7 +2076,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [18, 13],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
2 changes: 1 addition & 1 deletion projects/compiler/test/typechecker/binary/eq.2.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [2, 6],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
2 changes: 1 addition & 1 deletion projects/compiler/test/typechecker/binary/neq.2.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [2, 6],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [8, 16],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
10 changes: 5 additions & 5 deletions projects/compiler/test/typechecker/funcdecl/funcdecl.5.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [3, 49],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -372,7 +372,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [4, 31],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -586,7 +586,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [5, 32],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -812,7 +812,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [6, 32],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -916,7 +916,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [6, 48],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [4, 15],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [1, 15],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
12 changes: 6 additions & 6 deletions projects/compiler/test/typechecker/if/expr.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [21, 3],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1194,7 +1194,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [32, 3],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1427,7 +1427,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [36, 38],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1605,7 +1605,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [39, 19],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1954,7 +1954,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [45, 3],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -2127,7 +2127,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [49, 16],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [3, 15],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -695,7 +695,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [4, 17],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [3, 17],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [4, 19],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [3, 11],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [3, 31],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
6 changes: 3 additions & 3 deletions projects/compiler/test/typechecker/map/map.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [9, 48],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1203,7 +1203,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [11, 36],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1252,7 +1252,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [11, 43],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
12 changes: 6 additions & 6 deletions projects/compiler/test/typechecker/set/set.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [7, 32],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -666,7 +666,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [8, 23],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1069,7 +1069,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [11, 21],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1368,7 +1368,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [12, 33],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -1605,7 +1605,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [14, 32],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down Expand Up @@ -2076,7 +2076,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [18, 14],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
2 changes: 1 addition & 1 deletion projects/compiler/test/typechecker/tuple/tuple.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [2, 27],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
2 changes: 1 addition & 1 deletion projects/compiler/test/typechecker/while/while.2.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [1, 15],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down
2 changes: 1 addition & 1 deletion projects/compiler/test/typechecker/while/while.3.out.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"kind": "accessor",
"head": {
"token": {
"position": [1, 15],
"position": [0, 0],
"kind": {
"name": "Ident",
"value": "Option"
Expand Down

0 comments on commit 878a966

Please sign in to comment.