Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79a7a8c

Browse files
author
Max Schaefer
committed
JavaScript: Update TRAP test outputs.
1 parent 6b3abbb commit 79a7a8c

12 files changed

Lines changed: 26 additions & 26 deletions

File tree

javascript/extractor/tests/errors/output/trap/json.js.trap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ scopes(#20000,0)
1212
json(#20001,5,#10000,0,"{\n ""a"": 42\n}")
1313
#20002=@"loc,{#10000},1,1,3,1"
1414
locations_default(#20002,#10000,1,1,3,1)
15-
hasLocation(#20001,#20002)
15+
json_locations(#20001,#20002)
1616
#20003=*
1717
json(#20003,2,#20001,0,"42")
1818
#20004=@"loc,{#10000},2,8,2,9"
1919
locations_default(#20004,#10000,2,8,2,9)
20-
hasLocation(#20003,#20004)
20+
json_locations(#20003,#20004)
2121
json_literals("42","42",#20003)
2222
json_properties(#20001,"a",#20003)
2323
numlines(#10000,3,0,0)

javascript/extractor/tests/excludes/output/trap/empty.json.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ hasLocation(#10000,#10003)
1313
json(#20000,5,#10000,0,"{}")
1414
#20001=@"loc,{#10000},1,1,1,2"
1515
locations_default(#20001,#10000,1,1,1,2)
16-
hasLocation(#20000,#20001)
16+
json_locations(#20000,#20001)
1717
numlines(#10000,1,0,0)
1818
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/array.json.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ hasLocation(#10000,#10002)
1010
json(#20000,4,#10000,0,"[]")
1111
#20001=@"loc,{#10000},1,1,1,2"
1212
locations_default(#20001,#10000,1,1,1,2)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
numlines(#10000,1,0,0)
1515
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/comments.json.trap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ hasLocation(#10000,#10002)
1010
json(#20000,5,#10000,0,"{\n // ... ts */\n}")
1111
#20001=@"loc,{#10000},1,1,5,1"
1212
locations_default(#20001,#10000,1,1,5,1)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
#20002=*
1515
json(#20002,3,#20000,0,"""world""")
1616
#20003=@"loc,{#10000},3,12,3,18"
1717
locations_default(#20003,#10000,3,12,3,18)
18-
hasLocation(#20002,#20003)
18+
json_locations(#20002,#20003)
1919
json_literals("world","""world""",#20002)
2020
json_properties(#20000,"hello",#20002)
2121
#20004=*
2222
json_errors(#20004,"Error: Comments are not legal in JSON.")
2323
#20005=@"loc,{#10000},2,3,2,3"
2424
locations_default(#20005,#10000,2,3,2,3)
25-
hasLocation(#20004,#20005)
25+
json_locations(#20004,#20005)
2626
#20006=*
2727
json_errors(#20006,"Error: Comments are not legal in JSON.")
2828
#20007=@"loc,{#10000},4,3,4,3"
2929
locations_default(#20007,#10000,4,3,4,3)
30-
hasLocation(#20006,#20007)
30+
json_locations(#20006,#20007)
3131
numlines(#10000,5,0,0)
3232
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/duplicate-keys.json.trap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ hasLocation(#10000,#10002)
1010
json(#20000,5,#10000,0,"{\n "" ... "": 42\n}")
1111
#20001=@"loc,{#10000},1,1,4,1"
1212
locations_default(#20001,#10000,1,1,4,1)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
#20002=*
1515
json(#20002,2,#20000,0,"23")
1616
#20003=@"loc,{#10000},2,10,2,11"
1717
locations_default(#20003,#10000,2,10,2,11)
18-
hasLocation(#20002,#20003)
18+
json_locations(#20002,#20003)
1919
json_literals("23","23",#20002)
2020
json_properties(#20000,"x",#20002)
2121
#20004=*
2222
json(#20004,2,#20000,1,"42")
2323
#20005=@"loc,{#10000},3,10,3,11"
2424
locations_default(#20005,#10000,3,10,3,11)
25-
hasLocation(#20004,#20005)
25+
json_locations(#20004,#20005)
2626
json_literals("42","42",#20004)
2727
json_properties(#20000,"x",#20004)
2828
numlines(#10000,4,0,0)

javascript/extractor/tests/json/output/trap/neg.json.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hasLocation(#10000,#10002)
1010
json(#20000,2,#10000,0,"-1")
1111
#20001=@"loc,{#10000},1,1,1,2"
1212
locations_default(#20001,#10000,1,1,1,2)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
json_literals("-1","-1",#20000)
1515
numlines(#10000,1,0,0)
1616
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/neg2.json.trap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ hasLocation(#10000,#10002)
1010
json(#20000,4,#10000,0,"[1, -2]")
1111
#20001=@"loc,{#10000},1,1,1,7"
1212
locations_default(#20001,#10000,1,1,1,7)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
#20002=*
1515
json(#20002,2,#20000,0,"1")
1616
#20003=@"loc,{#10000},1,2,1,2"
1717
locations_default(#20003,#10000,1,2,1,2)
18-
hasLocation(#20002,#20003)
18+
json_locations(#20002,#20003)
1919
json_literals("1","1",#20002)
2020
#20004=*
2121
json(#20004,2,#20000,1,"-2")
2222
#20005=@"loc,{#10000},1,5,1,6"
2323
locations_default(#20005,#10000,1,5,1,6)
24-
hasLocation(#20004,#20005)
24+
json_locations(#20004,#20005)
2525
json_literals("-2","-2",#20004)
2626
numlines(#10000,1,0,0)
2727
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/null.json.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hasLocation(#10000,#10002)
1010
json(#20000,0,#10000,0,"null")
1111
#20001=@"loc,{#10000},1,1,1,4"
1212
locations_default(#20001,#10000,1,1,1,4)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
json_literals("null","null",#20000)
1515
numlines(#10000,1,0,0)
1616
filetype(#10000,"json")

javascript/extractor/tests/json/output/trap/tst.json.trap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ hasLocation(#10000,#10002)
1010
json(#20000,5,#10000,0,"{\n "" ... }\n}")
1111
#20001=@"loc,{#10000},1,1,7,1"
1212
locations_default(#20001,#10000,1,1,7,1)
13-
hasLocation(#20000,#20001)
13+
json_locations(#20000,#20001)
1414
#20002=*
1515
json(#20002,3,#20000,0,"""world""")
1616
#20003=@"loc,{#10000},2,14,2,20"
1717
locations_default(#20003,#10000,2,14,2,20)
18-
hasLocation(#20002,#20003)
18+
json_locations(#20002,#20003)
1919
json_literals("world","""world""",#20002)
2020
json_properties(#20000,"hello",#20002)
2121
#20004=*
2222
json(#20004,5,#20000,1,"{\n ... 2\n }")
2323
#20005=@"loc,{#10000},3,10,6,5"
2424
locations_default(#20005,#10000,3,10,6,5)
25-
hasLocation(#20004,#20005)
25+
json_locations(#20004,#20005)
2626
#20006=*
2727
json(#20006,2,#20004,0,"23")
2828
#20007=@"loc,{#10000},4,14,4,15"
2929
locations_default(#20007,#10000,4,14,4,15)
30-
hasLocation(#20006,#20007)
30+
json_locations(#20006,#20007)
3131
json_literals("23","23",#20006)
3232
json_properties(#20004,"x",#20006)
3333
#20008=*
3434
json(#20008,2,#20004,1,"42")
3535
#20009=@"loc,{#10000},5,14,5,15"
3636
locations_default(#20009,#10000,5,14,5,15)
37-
hasLocation(#20008,#20009)
37+
json_locations(#20008,#20009)
3838
json_literals("42","42",#20008)
3939
json_properties(#20004,"y",#20008)
4040
json_properties(#20000,"o",#20004)

javascript/extractor/tests/node/output/trap/package.json.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hasLocation(#10000,#10003)
1313
json(#20000,3,#10000,0,"""i get extracted""")
1414
#20001=@"loc,{#10000},1,1,1,17"
1515
locations_default(#20001,#10000,1,1,1,17)
16-
hasLocation(#20000,#20001)
16+
json_locations(#20000,#20001)
1717
json_literals("i get extracted","""i get extracted""",#20000)
1818
numlines(#10000,1,0,0)
1919
filetype(#10000,"json")

0 commit comments

Comments
 (0)