Skip to content

Comments

feat(codegen): print leading pragma comments#5789

Closed
Boshen wants to merge 9 commits intographite-base/5789from
09-15-feat_codegen_print_leading_pragma_comments
Closed

feat(codegen): print leading pragma comments#5789
Boshen wants to merge 9 commits intographite-base/5789from
09-15-feat_codegen_print_leading_pragma_comments

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Sep 15, 2024

No description provided.

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 15, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

Boshen commented Sep 15, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on Graphite Graphite

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 15, 2024

CodSpeed Performance Report

Merging #5789 will degrade performances by 23.24%

Comparing 09-15-feat_codegen_print_leading_pragma_comments (c79d011) with main (50834bc)

Summary

❌ 3 regressions
✅ 26 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main 09-15-feat_codegen_print_leading_pragma_comments Change
codegen[checker.ts] 20.7 ms 27 ms -23.24%
codegen_sourcemap[checker.ts] 72.4 ms 78.7 ms -7.95%
sourcemap[cal.com.tsx] 61.4 ms 64.3 ms -4.46%

@Boshen Boshen force-pushed the 09-15-feat_codegen_print_leading_pragma_comments branch from 52691f6 to 2b12726 Compare September 16, 2024 02:57
@Boshen Boshen force-pushed the 09-15-feat_parser_calculate_leading_or_trailing_position_for_comments branch 2 times, most recently from c936ece to 8e10ffc Compare September 16, 2024 10:18
@Boshen Boshen force-pushed the 09-15-feat_codegen_print_leading_pragma_comments branch 3 times, most recently from 97d01d2 to 0b47ddf Compare September 16, 2024 15:39
@Boshen Boshen force-pushed the 09-15-feat_parser_calculate_leading_or_trailing_position_for_comments branch 2 times, most recently from 49d10f3 to df0ef98 Compare September 16, 2024 16:33
@Boshen Boshen changed the base branch from 09-15-feat_parser_calculate_leading_or_trailing_position_for_comments to graphite-base/5789 September 16, 2024 16:37
@github-actions github-actions bot added A-parser Area - Parser A-ast Area - AST labels Sep 16, 2024
Sysix and others added 8 commits September 16, 2024 13:09
- Part of #1022

This implements the [recommended rule
`no-danger-with-children`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md)
from the `eslint-plugin-react` package.

This rule proved to be a little bit trickier to implement than I
anticipated, as it required searching up through all of the scopes
recursively in order to resolve object properties. This would be easier
with something like a type-check system, but this will work for now.

(Sidenote: this is my first real attempt at Rust programming in ~5
years, so any feedback on making this more idiomatic is welcome.)
@Boshen Boshen force-pushed the 09-15-feat_codegen_print_leading_pragma_comments branch from 0b47ddf to c79d011 Compare September 17, 2024 05:25
@github-actions github-actions bot added A-linter Area - Linter A-prettier labels Sep 17, 2024
@Boshen Boshen closed this Sep 18, 2024
@Boshen Boshen deleted the 09-15-feat_codegen_print_leading_pragma_comments branch October 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-codegen Area - Code Generation A-linter Area - Linter A-parser Area - Parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants