Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS-157 Generate protobuf definition of ESTree #4700

Merged
merged 30 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7a5244b
initial work
kebetsi May 22, 2024
890d530
fix paths
kebetsi May 22, 2024
409d02e
fix script
kebetsi May 22, 2024
e3c0bbe
Continue implementation
quentin-jaquier-sonarsource May 22, 2024
75426e7
use set
kebetsi May 23, 2024
0dfd0df
translate to proto format
kebetsi May 23, 2024
568ee4c
fix oneOf indices and add JSdoc
kebetsi May 23, 2024
f3b8ff6
add prefix and output data in dedicated folder
kebetsi May 23, 2024
ed01459
fix some formatting
kebetsi May 23, 2024
d6ebb59
compose the name of the oneOf fields with the name of the oneOf to av…
kebetsi May 23, 2024
8f0255c
make index unique
kebetsi May 23, 2024
4cb6f06
Add top level node
quentin-jaquier-sonarsource May 23, 2024
4233d02
Flatten oneof in repeated field
quentin-jaquier-sonarsource May 23, 2024
caa0024
Position and SourceLocation are not nodes
quentin-jaquier-sonarsource May 23, 2024
931e09c
oneof names coming from type alias should not be capitalized
quentin-jaquier-sonarsource May 23, 2024
591a687
extract inherited properties
kebetsi May 23, 2024
1935c73
Merge branch 'JS-157-generate-proto-file' of github.com:SonarSource/S…
kebetsi May 23, 2024
733cf3a
update generated files
kebetsi May 23, 2024
e83485a
inherited props - recursive - first try
kebetsi May 23, 2024
4752b3c
fix
quentin-jaquier-sonarsource May 23, 2024
2676dc4
Create manually TemplateElement & RegExpLiteral
quentin-jaquier-sonarsource May 23, 2024
535c29a
Finish inherited fields logic
quentin-jaquier-sonarsource May 24, 2024
24ce711
Clean up
quentin-jaquier-sonarsource May 24, 2024
0280bee
reverse output of extractTypeHierarchy() so we override properties co…
kebetsi May 24, 2024
5d4dc92
Merge branch 'JS-157-generate-proto-file' of github.com:SonarSource/S…
kebetsi May 24, 2024
b755d7e
push proto file
kebetsi May 24, 2024
3050d01
More cleanup
quentin-jaquier-sonarsource May 24, 2024
569cb98
Reorganize code to improve flow of logic
quentin-jaquier-sonarsource May 24, 2024
e261d38
refactor constants to uppercase and move type definitions at beginnin…
kebetsi May 24, 2024
99edf3f
make indexes unique per message
kebetsi May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 163 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"postcss-scss": "4.0.9",
"postcss-syntax": "0.36.2",
"postcss-value-parser": "4.2.0",
"protobufjs": "7.3.0",
"run-node": "2.0.0",
"scslre": "0.3.0",
"semver": "7.6.0",
Expand Down
Loading
Loading