From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../rust/jsparagus-ast/.cargo-checksum.json | 1 + third_party/rust/jsparagus-ast/Cargo.toml | 24 + third_party/rust/jsparagus-ast/ast.json | 728 +++ third_party/rust/jsparagus-ast/generate_ast.py | 1061 ++++ third_party/rust/jsparagus-ast/src/arena.rs | 85 + .../rust/jsparagus-ast/src/associated_data.rs | 143 + .../rust/jsparagus-ast/src/dump_generated.rs | 2269 ++++++++ third_party/rust/jsparagus-ast/src/lib.rs | 30 + .../rust/jsparagus-ast/src/source_atom_set.rs | 221 + .../rust/jsparagus-ast/src/source_location.rs | 32 + .../src/source_location_accessor_generated.rs | 2047 ++++++++ .../rust/jsparagus-ast/src/source_slice_list.rs | 49 + .../rust/jsparagus-ast/src/type_id_generated.rs | 712 +++ .../rust/jsparagus-ast/src/types_generated.rs | 1055 ++++ .../rust/jsparagus-ast/src/visit_generated.rs | 5423 ++++++++++++++++++++ 15 files changed, 13880 insertions(+) create mode 100644 third_party/rust/jsparagus-ast/.cargo-checksum.json create mode 100644 third_party/rust/jsparagus-ast/Cargo.toml create mode 100644 third_party/rust/jsparagus-ast/ast.json create mode 100755 third_party/rust/jsparagus-ast/generate_ast.py create mode 100644 third_party/rust/jsparagus-ast/src/arena.rs create mode 100644 third_party/rust/jsparagus-ast/src/associated_data.rs create mode 100644 third_party/rust/jsparagus-ast/src/dump_generated.rs create mode 100644 third_party/rust/jsparagus-ast/src/lib.rs create mode 100644 third_party/rust/jsparagus-ast/src/source_atom_set.rs create mode 100644 third_party/rust/jsparagus-ast/src/source_location.rs create mode 100644 third_party/rust/jsparagus-ast/src/source_location_accessor_generated.rs create mode 100644 third_party/rust/jsparagus-ast/src/source_slice_list.rs create mode 100644 third_party/rust/jsparagus-ast/src/type_id_generated.rs create mode 100644 third_party/rust/jsparagus-ast/src/types_generated.rs create mode 100644 third_party/rust/jsparagus-ast/src/visit_generated.rs (limited to 'third_party/rust/jsparagus-ast') diff --git a/third_party/rust/jsparagus-ast/.cargo-checksum.json b/third_party/rust/jsparagus-ast/.cargo-checksum.json new file mode 100644 index 0000000000..19ea4f9802 --- /dev/null +++ b/third_party/rust/jsparagus-ast/.cargo-checksum.json @@ -0,0 +1 @@ +{"files":{"Cargo.toml":"2466efc9f6a05392e65e90a882b7ee0ec50be8213d32a73bcef241f46e892ef0","ast.json":"e9c358aedb77bf02059f44179140d900c705af592069f269022bc9b52dc30ac4","generate_ast.py":"0c24431d9c07af42d7d17739c2e21465964151562437cfca093ceddde898bc93","src/arena.rs":"03ef07c963556160a6f1a85fd901833d7322f8a5f265c20d3e3543432dd2a96d","src/associated_data.rs":"5e0d830b0c6db4dcb85ba21ead87d31cd386e2517804333a6f46a1bd1bf59355","src/dump_generated.rs":"8ca0736952ee41fc932807e8450c6eb68e081b3fd5f7a0f701cae8b35dc0c13e","src/lib.rs":"b35553bedec9f6d88cc5194592f857dc13669559cbc8b206048c35299c4f86be","src/source_atom_set.rs":"24ec99be098cab6aa433d7b2e0a2cbc074204276d6c90b17174e50f8003244ee","src/source_location.rs":"3832440ecec6de726262837072810410bddb45c075288386509511c153f6afd9","src/source_location_accessor_generated.rs":"2669efcc5447229429f8fab6123bbd9dec8ed4c69232992af05aca3a59f1c710","src/source_slice_list.rs":"c82413b3081e091a3c4ce5d2c3624e54ecbeb0bb9952f10d373d10faf589955a","src/type_id_generated.rs":"a1e88f0d9d97d61339d0bedd0f6a8472bd39ea13968531ebce7140ca47edbaeb","src/types_generated.rs":"eda341459f8356dc46a6f8ed993740bcf1536c6b6601d885f2a20f4a7a4d4e4a","src/visit_generated.rs":"90ae82f2db8b33f5b23eae1b1b21f1ce4c14a79719bc46e44a838a04c7d838e4"},"package":null} \ No newline at end of file diff --git a/third_party/rust/jsparagus-ast/Cargo.toml b/third_party/rust/jsparagus-ast/Cargo.toml new file mode 100644 index 0000000000..b7dbef56d4 --- /dev/null +++ b/third_party/rust/jsparagus-ast/Cargo.toml @@ -0,0 +1,24 @@ +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g., crates.io) dependencies. +# +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. + +[package] +edition = "2018" +name = "jsparagus-ast" +version = "0.1.0" +authors = ["khyperia "] +license = "MIT/Apache-2.0" + +[dependencies] +indexmap = "1.0" + +[dependencies.bumpalo] +version = "3.4.0" +features = ["collections"] diff --git a/third_party/rust/jsparagus-ast/ast.json b/third_party/rust/jsparagus-ast/ast.json new file mode 100644 index 0000000000..669a7b3256 --- /dev/null +++ b/third_party/rust/jsparagus-ast/ast.json @@ -0,0 +1,728 @@ +{ + "Void": { + "_type": "enum" + }, + "Argument": { + "_type": "enum", + "SpreadElement": "Box", + "Expression": "Box" + }, + "Arguments": { + "_type": "struct", + "args": "Vec" + }, + "Identifier": { + "_type": "struct", + "value": "SourceAtomSetIndex" + }, + "IdentifierName": { + "_type": "struct", + "value": "SourceAtomSetIndex" + }, + "PrivateIdentifier": { + "_type": "struct", + "value": "SourceAtomSetIndex" + }, + "Label": { + "_type": "struct", + "value": "SourceAtomSetIndex" + }, + "VariableDeclarationKind": { + "_type": "enum", + "Var": null, + "Let": null, + "Const": null + }, + "CompoundAssignmentOperator": { + "_type": "enum", + "LogicalOr": null, + "LogicalAnd": null, + "Coalesce": null, + "Add": null, + "Sub": null, + "Mul": null, + "Div": null, + "Mod": null, + "Pow": null, + "LeftShift": null, + "RightShift": null, + "RightShiftExt": null, + "Or": null, + "Xor": null, + "And": null + }, + "BinaryOperator": { + "_type": "enum", + "Equals": null, + "NotEquals": null, + "StrictEquals": null, + "StrictNotEquals": null, + "LessThan": null, + "LessThanOrEqual": null, + "GreaterThan": null, + "GreaterThanOrEqual": null, + "In": null, + "Instanceof": null, + "LeftShift": null, + "RightShift": null, + "RightShiftExt": null, + "Add": null, + "Sub": null, + "Mul": null, + "Div": null, + "Mod": null, + "Pow": null, + "Comma": null, + "Coalesce": null, + "LogicalOr": null, + "LogicalAnd": null, + "BitwiseOr": null, + "BitwiseXor": null, + "BitwiseAnd": null + }, + "UnaryOperator": { + "_type": "enum", + "Plus": null, + "Minus": null, + "LogicalNot": null, + "BitwiseNot": null, + "Typeof": null, + "Void": null, + "Delete": null + }, + "UpdateOperator": { + "_type": "enum", + "Increment": null, + "Decrement": null + }, + "Function": { + "_type": "struct", + "name": "Option", + "is_async": "bool", + "is_generator": "bool", + "params": "FormalParameters", + "body": "FunctionBody" + }, + "Program": { + "_type": "enum", + "Module": "Module", + "Script": "Script" + }, + "IfStatement": { + "_type": "struct", + "test": "Box", + "consequent": "Box", + "alternate": "Option>" + }, + "Statement": { + "_type": "enum", + "BlockStatement": { + "block": "Block" + }, + "BreakStatement": { + "label": "Option