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

[Merged by Bors] - Extract the ast to a crate #2402

Closed
wants to merge 2 commits into from
Closed

Conversation

jedel1043
Copy link
Member

@jedel1043 jedel1043 commented Nov 3, 2022

This should hopefully improve our compilation times, both from a clean build and from an incremental compilation snapshot.

Next would be the parser, but it imports Context, so it'll require a bit more work.

The number of file changes is obviously big, but almost nothing was changed, I just moved everything to another crate and readjusted the imports of the parser module. (Though, I did have to change some details, because there were some functions on the ast that returned ParseErrors, and the tests had to be moved to the parser)

@jedel1043 jedel1043 added the API label Nov 3, 2022
@jedel1043 jedel1043 added this to the v0.17.0 milestone Nov 3, 2022
@jedel1043 jedel1043 changed the title Extract ast as a crate Extract the ast to a crate Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

Test262 conformance changes

Test result main count PR count difference
Total 93,789 93,789 0
Passed 69,316 69,316 0
Ignored 18,352 18,352 0
Failed 6,121 6,121 0
Panics 0 0 0
Conformance 73.91% 73.91% 0.00%

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #2402 (953d709) into main (b5b8cdf) will decrease coverage by 0.07%.
The diff coverage is 33.07%.

@@            Coverage Diff             @@
##             main    #2402      +/-   ##
==========================================
- Coverage   38.36%   38.29%   -0.08%     
==========================================
  Files         310      310              
  Lines       24272    24290      +18     
==========================================
- Hits         9312     9301      -11     
- Misses      14960    14989      +29     
Impacted Files Coverage Δ
boa_ast/src/expression/await.rs 14.28% <0.00%> (ø)
boa_ast/src/expression/call.rs 21.95% <0.00%> (ø)
boa_ast/src/expression/identifier.rs 12.50% <ø> (ø)
boa_ast/src/expression/literal/mod.rs 23.33% <ø> (ø)
boa_ast/src/expression/literal/template.rs 5.40% <0.00%> (ø)
boa_ast/src/expression/operator/assign/op.rs 75.00% <ø> (ø)
boa_ast/src/expression/operator/binary/op.rs 21.42% <ø> (ø)
boa_ast/src/expression/operator/conditional.rs 38.70% <ø> (ø)
boa_ast/src/expression/operator/unary/op.rs 0.00% <ø> (ø)
boa_ast/src/expression/optional.rs 9.33% <ø> (ø)
... and 237 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks :)

We can merge it as-is, but we might want to decide what to do with the #[must_use] attributes. Do we want them in all getters? Is there a general guideline in the Rust community?

boa_ast/src/expression/operator/binary/mod.rs Show resolved Hide resolved
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the comment by @Razican this looks perfect to me :)

@Razican
Copy link
Member

Razican commented Nov 3, 2022

bors r+

bors bot pushed a commit that referenced this pull request Nov 3, 2022
This should hopefully improve our compilation times, both from a clean build and from an incremental compilation snapshot.

Next would be the parser, but it imports `Context`, so it'll require a bit more work.

The number of file changes is obviously big, but almost nothing was changed, I just moved everything to another crate and readjusted the imports of the `parser` module. (Though, I did have to change some details, because there were some functions on the ast that returned `ParseError`s, and the tests had to be moved to the parser)
@bors
Copy link

bors bot commented Nov 3, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Extract the ast to a crate [Merged by Bors] - Extract the ast to a crate Nov 3, 2022
@bors bors bot closed this Nov 3, 2022
@bors bors bot deleted the ast-crate branch November 3, 2022 09:55
@RageKnify RageKnify added the Internal Category for changelog label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Internal Category for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants