Skip to content

Commit

Permalink
sync flow parser tests
Browse files Browse the repository at this point in the history
Summary:
```
cp -r ~/fbsource/fbcode/flow/src/parser/test/flow/* ~/fbsource/xplat/hermes/external/flowtest/test/flow
```

Reviewed By: SamChou19815

Differential Revision: D67046460

fbshipit-source-id: 1393149070b25e3d635d50c906fb352d93cfe64c
  • Loading branch information
panagosg7 authored and facebook-github-bot committed Dec 18, 2024
1 parent 6e8e0db commit 468be6b
Show file tree
Hide file tree
Showing 254 changed files with 8,618 additions and 337 deletions.
2 changes: 1 addition & 1 deletion external/flowtest/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Flow git commit: a8f803e3d243c0f8a738f7ebd0ef534a6a5561fd7482f14cf4e96afa879ac3316a70bce06c432ccf
Flow git commit: facff9ab9e7de99ddc93ce13b5f33518f7766a53
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"range":[24,25],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"range":[23,25],
"body":[]
},
"superClass":null,
"typeParameters":{
"type":"TypeParameterDeclaration",
"loc":{"source":null,"start":{"line":1,"column":20},"end":{"line":1,"column":23}},
Expand All @@ -30,11 +29,13 @@
"range":[21,22],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
]
},
"superClass":null,
"superTypeParameters":null,
"implements":[],
"decorators":[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"range":[1,2],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"range":[17,18],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
},
Expand All @@ -149,6 +150,7 @@
"range":[20,21],
"name":"R",
"bound":null,
"const":false,
"variance":null,
"default":null
},
Expand All @@ -158,6 +160,7 @@
"range":[23,24],
"name":"S",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"range":[9,10],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"range":[19,20],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"range":[20,21],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"range":[27,28],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"range":[25,26],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":12}},
"range":[0,12],
"value":null,
"bigint":"0b101011101",
"bigint":"349",
"raw":"0b101011101n"
},
"directive":null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":9}},
"range":[0,9],
"value":null,
"bigint":"0xfff123",
"bigint":"16773411",
"raw":"0xfff123n"
},
"directive":null
Expand Down
1 change: 1 addition & 0 deletions external/flowtest/test/flow/bigint/numeric-separators.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1_000n;
22 changes: 22 additions & 0 deletions external/flowtest/test/flow/bigint/numeric-separators.tree.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type":"Program",
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":7}},
"range":[0,7],
"body":[
{
"type":"ExpressionStatement",
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":7}},
"range":[0,7],
"expression":{
"type":"Literal",
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":6}},
"range":[0,6],
"value":null,
"bigint":"1000",
"raw":"1_000n"
},
"directive":null
}
],
"comments":[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
"range":[0,8],
"value":null,
"bigint":"0o16432",
"bigint":"7450",
"raw":"0o16432n"
},
"directive":null
Expand Down
2 changes: 1 addition & 1 deletion external/flowtest/test/flow/bigint/valid-binary.tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":12}},
"range":[0,12],
"value":null,
"bigint":"0b101011101",
"bigint":"349",
"raw":"0b101011101n"
},
"directive":null
Expand Down
2 changes: 1 addition & 1 deletion external/flowtest/test/flow/bigint/valid-hex.tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":9}},
"range":[0,9],
"value":null,
"bigint":"0xfff123",
"bigint":"16773411",
"raw":"0xfff123n"
},
"directive":null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"loc":{"source":null,"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
"range":[0,8],
"value":null,
"bigint":"0o16432",
"bigint":"7450",
"raw":"0o16432n"
},
"directive":null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"range":[11,12],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"range": [8, 9],
"name": "T",
"bound": null,
"const":false,
"variance": null,
"default": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[18,19],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[20,21],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[16,17],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[19,20],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[26,27],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[23,24],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[23,24],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"range":[19,20],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"range":[19,20],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
"range":[236,237],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -360,6 +361,7 @@
"range":[395,396],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"range":[143,144],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -459,6 +460,7 @@
"range":[603,604],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -915,6 +917,7 @@
"range":[1187,1188],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -1022,6 +1025,7 @@
"range":[1388,1389],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"range":[84,85],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -170,6 +171,7 @@
"range":[195,196],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"range":[55,56],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -823,6 +824,7 @@
"range":[814,815],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -939,6 +941,7 @@
"range":[933,934],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"range":[147,148],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -456,6 +457,7 @@
"range":[639,640],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"range":[152,153],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down Expand Up @@ -427,6 +428,7 @@
"range":[592,593],
"name":"T",
"bound":null,
"const":false,
"variance":null,
"default":null
}
Expand Down
Loading

0 comments on commit 468be6b

Please sign in to comment.