GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Simplify logic for `[no LineTerminator here]` before nodes by nicolo-ribaudo · Pull Request #16779 · babel/babel

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Aug 28, 2024

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Follow up to #16778, only check the second commit. I'll mark as ready once that is merged.

This PR makes the retainLines: true output slightly uglier in some cases, but given that retainLines already often produces bad output this change is justified by the code simplification benefits.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: generator labels Aug 28, 2024
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Aug 28, 2024
Do not enforce printing space between ( and comments #16780
Merged
@nicolo-ribaudo
nicolo-ribaudo force-pushed the cleanup-nlt-before-logic branch from c93fdb5 to c69b973 Compare August 28, 2024 11:38
@babel-bot

babel-bot commented Aug 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57781

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nicolo-ribaudo
Simplify logic for [no LineTerminator here] before nodes
d6f0e5e
@nicolo-ribaudo
nicolo-ribaudo force-pushed the cleanup-nlt-before-logic branch from c69b973 to d6f0e5e Compare August 29, 2024 12:03
@nicolo-ribaudo
nicolo-ribaudo marked this pull request as ready for review August 29, 2024 12:07
liuxingbaoyu
liuxingbaoyu approved these changes Aug 30, 2024
View reviewed changes
JLHwung
JLHwung approved these changes Aug 30, 2024
View reviewed changes
@nicolo-ribaudo
nicolo-ribaudo merged commit 0d693bf into babel:main Aug 30, 2024
@nicolo-ribaudo
nicolo-ribaudo deleted the cleanup-nlt-before-logic branch August 30, 2024 13:45
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 2, 2024
@zemnmez-renovate-bot
chore(deps): update dependency @babel/preset-typescript to v7.25.7
afe1ed4
##### [`v7.25.7](https://github.com/babel/babel/blob/HEAD/CHANGELOG.md#v7257-2024-10-02)

##### 🐛 Bug Fix

-   `babel-helper-validator-identifier`
    -   [#16825](babel/babel#16825) fix: update identifier to unicode 16 ([@JLHwung](https://github.com/JLHwung))
-   `babel-traverse`
    -   [#16814](babel/babel#16814) fix: issue with node path keys updated on unrelated paths ([@DylanPiercey](https://github.com/DylanPiercey))
-   `babel-plugin-transform-classes`
    -   [#16797](babel/babel#16797) Use an inclusion rather than exclusion list for `super()` check ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-generator`
    -   [#16788](babel/babel#16788) Fix printing of TS `infer` in compact mode ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
    -   [#16785](babel/babel#16785) Print TS type annotations for destructuring in assignment pattern ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
    -   [#16778](babel/babel#16778) Respect `[no LineTerminator here]` after nodes ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))

##### 💅 Polish

-   `babel-types`
    -   [#16852](babel/babel#16852) Add deprecated JSDOC for fields ([@liuxingbaoyu](https://github.com/liuxingbaoyu))

##### 🏠 Internal

-   `babel-core`
    -   [#16820](babel/babel#16820) Allow sync loading of ESM when `--experimental-require-module` ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-helper-compilation-targets`, `babel-helper-plugin-utils`, `babel-preset-env`
    -   [#16858](babel/babel#16858) Add browserslist config to external dependency ([@JLHwung](https://github.com/JLHwung))
-   `babel-plugin-proposal-destructuring-private`, `babel-plugin-syntax-decimal`, `babel-plugin-syntax-import-reflection`, `babel-standalone`
    -   [#16809](babel/babel#16809) Archive syntax-import-reflection and syntax-decimal ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-generator`
    -   [#16779](babel/babel#16779) Simplify logic for `[no LineTerminator here]` before nodes ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))

##### 🏃‍♀️ Performance

-   `babel-plugin-transform-typescript`
    -   [#16875](babel/babel#16875) perf: Avoid extra cloning of namespaces ([@liuxingbaoyu](https://github.com/liuxingbaoyu))
-   `babel-types`
    -   [#16842](babel/babel#16842) perf: Improve [@babel/types](https://github.com/babel/types) builders ([@liuxingbaoyu](https://github.com/liuxingbaoyu))
    -   [#16828](babel/babel#16828) Only access `BABEL_TYPES_8_BREAKING` at startup ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
github-merge-queue Bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 2, 2024
@zemnmez-renovate-bot
chore(deps): update dependency @babel/preset-typescript to v7.25.7
289dbb1
##### [`v7.25.7](https://github.com/babel/babel/blob/HEAD/CHANGELOG.md#v7257-2024-10-02)

##### 🐛 Bug Fix

-   `babel-helper-validator-identifier`
    -   [#16825](babel/babel#16825) fix: update identifier to unicode 16 ([@JLHwung](https://github.com/JLHwung))
-   `babel-traverse`
    -   [#16814](babel/babel#16814) fix: issue with node path keys updated on unrelated paths ([@DylanPiercey](https://github.com/DylanPiercey))
-   `babel-plugin-transform-classes`
    -   [#16797](babel/babel#16797) Use an inclusion rather than exclusion list for `super()` check ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-generator`
    -   [#16788](babel/babel#16788) Fix printing of TS `infer` in compact mode ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
    -   [#16785](babel/babel#16785) Print TS type annotations for destructuring in assignment pattern ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
    -   [#16778](babel/babel#16778) Respect `[no LineTerminator here]` after nodes ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))

##### 💅 Polish

-   `babel-types`
    -   [#16852](babel/babel#16852) Add deprecated JSDOC for fields ([@liuxingbaoyu](https://github.com/liuxingbaoyu))

##### 🏠 Internal

-   `babel-core`
    -   [#16820](babel/babel#16820) Allow sync loading of ESM when `--experimental-require-module` ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-helper-compilation-targets`, `babel-helper-plugin-utils`, `babel-preset-env`
    -   [#16858](babel/babel#16858) Add browserslist config to external dependency ([@JLHwung](https://github.com/JLHwung))
-   `babel-plugin-proposal-destructuring-private`, `babel-plugin-syntax-decimal`, `babel-plugin-syntax-import-reflection`, `babel-standalone`
    -   [#16809](babel/babel#16809) Archive syntax-import-reflection and syntax-decimal ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
-   `babel-generator`
    -   [#16779](babel/babel#16779) Simplify logic for `[no LineTerminator here]` before nodes ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))

##### 🏃‍♀️ Performance

-   `babel-plugin-transform-typescript`
    -   [#16875](babel/babel#16875) perf: Avoid extra cloning of namespaces ([@liuxingbaoyu](https://github.com/liuxingbaoyu))
-   `babel-types`
    -   [#16842](babel/babel#16842) perf: Improve [@babel/types](https://github.com/babel/types) builders ([@liuxingbaoyu](https://github.com/liuxingbaoyu))
    -   [#16828](babel/babel#16828) Only access `BABEL_TYPES_8_BREAKING` at startup ([@nicolo-ribaudo](https://github.com/nicolo-ribaudo))
@davidjbradshaw davidjbradshaw mentioned this pull request Oct 6, 2024
[Snyk] Upgrade @babel/runtime from 7.25.6 to 7.25.7 davidjbradshaw/iframe-resizer#1346
Closed
@NOUIY NOUIY mentioned this pull request Oct 23, 2024
[Snyk] Upgrade @babel/core from 7.17.9 to 7.25.7 NOUIY/angular#807
Open
This was referenced Oct 24, 2024
[Snyk] Upgrade @babel/parser from 7.1.3 to 7.25.7 nerdy-tech-com-gitub/node#10
Open
[Snyk] Upgrade @babel/traverse from 7.1.4 to 7.25.7 nerdy-tech-com-gitub/node#11
Open
@trabab trabab mentioned this pull request Oct 24, 2024
[Snyk] Upgrade @babel/core from 7.9.0 to 7.25.7 trabab/uppy#824
Open
This was referenced Oct 24, 2024
[Snyk] Upgrade @babel/parser from 7.1.3 to 7.25.7 ashly1111111/node#142
Open
[Snyk] Upgrade @babel/traverse from 7.1.4 to 7.25.7 ashly1111111/node#143
Open
[Snyk] Upgrade @babel/generator from 7.1.3 to 7.25.7 ashly1111111/node#144
Open
[Snyk] Upgrade @babel/types from 7.1.3 to 7.25.7 ashly1111111/node#145
Open
[Snyk] Upgrade @babel/template from 7.1.2 to 7.25.7 ashly1111111/node#146
Open
This was referenced Oct 24, 2024
[Snyk] Upgrade @babel/preset-env from 7.23.7 to 7.25.7 nerdy-tech-com-gitub/joplin#7
Open
[Snyk] Upgrade @babel/core from 7.23.7 to 7.25.7 nerdy-tech-com-gitub/joplin#8
Open
[Snyk] Upgrade @babel/preset-react from 7.23.3 to 7.25.7 nerdy-tech-com-gitub/joplin#10
Open
This was referenced Oct 25, 2024
[Snyk] Upgrade @babel/core from 7.24.8 to 7.25.7 jsonurl/jsonurl-js#740
Open
[Snyk] Upgrade @babel/cli from 7.24.8 to 7.25.7 jsonurl/jsonurl-js#741
Open
[Snyk] Upgrade @babel/plugin-transform-modules-commonjs from 7.24.8 to 7.25.7 jsonurl/jsonurl-js#742
Open
@tiff-es tiff-es mentioned this pull request Nov 10, 2024
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#272
Open
This was referenced Nov 10, 2024
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 nejidevelops/phase-1-domcontentloaded#113
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 nejidevelops/phase-1-domcontentloaded#114
Open
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 nejidevelops/phase-1-destructuring-assignment#109
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 nejidevelops/phase-1-destructuring-assignment#110
Open
[Snyk] Upgrade @babel/core from 7.18.2 to 7.25.8 nejidevelops/phase-0-intro-to-js-2-objects-lab#109
Open
[Snyk] Upgrade @babel/preset-env from 7.18.2 to 7.25.8 nejidevelops/phase-0-intro-to-js-2-objects-lab#110
Open
This was referenced Nov 11, 2024
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 tiff-es/js-data-structures-objects-lab-dc-web-091619#247
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/js-data-structures-objects-lab-dc-web-091619#248
Open
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 tiff-es/fewpjs-acting-on-events-dc-web-091619#250
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/fewpjs-acting-on-events-dc-web-091619#251
Open
This was referenced Nov 11, 2024
[Snyk] Upgrade @babel/core from 7.14.3 to 7.25.8 i3-Market-V3-Public-Repository/Support---Deployment-Tools#75
Open
[Snyk] Upgrade @babel/preset-env from 7.14.4 to 7.25.8 i3-Market-V3-Public-Repository/Support---Deployment-Tools#76
Open
This was referenced Nov 12, 2024
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 nejidevelops/phase-1-domcontentloaded#115
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 nejidevelops/phase-1-domcontentloaded#116
Open
This was referenced Nov 12, 2024
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#256
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#257
Open
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 tiff-es/fewpjs-document-onload-dc-web-091619#258
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/fewpjs-document-onload-dc-web-091619#259
Open
[Snyk] Upgrade @babel/core from 7.4.5 to 7.25.8 tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#254
Open
[Snyk] Upgrade @babel/preset-env from 7.4.5 to 7.25.8 tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#255
Open
@DevangPatelUK DevangPatelUK mentioned this pull request Nov 12, 2024
[Snyk] Upgrade @babel/runtime from 7.17.2 to 7.25.9 DevangPatelUK/BotFramework-WebChat#517
Open
This was referenced Nov 12, 2024
[Snyk] Upgrade @babel/core from 7.18.2 to 7.25.9 nejidevelops/phase-0-intro-to-js-2-objects-lab#111
Open
[Snyk] Upgrade @babel/preset-env from 7.18.2 to 7.25.9 nejidevelops/phase-0-intro-to-js-2-objects-lab#112
Open
@ali8889 ali8889 mentioned this pull request Nov 13, 2024
[Snyk] Upgrade @babel/runtime from 7.0.0-beta.42 to 7.25.9 ali8889/mist#667
Open
@sebastianthulin sebastianthulin mentioned this pull request Nov 13, 2024
[Snyk] Upgrade @babel/plugin-transform-runtime from 7.25.7 to 7.25.9 helsingborg-stad/Municipio#1126
Merged
@maismas maismas mentioned this pull request Nov 13, 2024
[Snyk] Upgrade @babel/runtime from 7.25.7 to 7.25.9 snyk/sweater-comb#667
Merged
@NOUIY NOUIY mentioned this pull request Nov 13, 2024
[Snyk] Upgrade @babel/core from 7.17.9 to 7.25.9 NOUIY/angular#810
Open
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 30, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@JLHwung JLHwung JLHwung approved these changes
@liuxingbaoyu liuxingbaoyu liuxingbaoyu approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: generator PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@nicolo-ribaudo @babel-bot @JLHwung @liuxingbaoyu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.