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 — Always pass type argument to `.startNode` by nicolo-ribaudo · Pull Request #16417 · babel/babel

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Apr 7, 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

I was working on unifying AST type definitions across @babel/parser and @babel/types, and noticed that in many places in @babel/parser variables are typed as N.Node (which is the AST equivalent of any). This PR fixes that.

I plan to eventually open a PR to, when possible, move the type string from finishNode to startNode so that the type can be inferred better.

Sorry, something went wrong.

Uh oh!

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

All reactions
@nicolo-ribaudo
Always pass type argument to .startNode
77d3440
@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: parser labels Apr 7, 2024
@babel-bot

babel-bot commented Apr 7, 2024

Copy link
Copy Markdown
Collaborator

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

All reactions

Sorry, something went wrong.

Uh oh!

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

liuxingbaoyu
liuxingbaoyu approved these changes Apr 7, 2024
View reviewed changes
JLHwung
JLHwung approved these changes Apr 7, 2024
View reviewed changes
@nicolo-ribaudo
nicolo-ribaudo merged commit 08b0472 into babel:main Apr 7, 2024
@nicolo-ribaudo
nicolo-ribaudo deleted the unify-ast-definitions branch April 7, 2024 18:14
@davidbilling davidbilling mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/core from 7.24.4 to 7.24.5 davidbilling/ember-cli-time-input#104
Merged
@bee22193 bee22193 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1172
Open
This was referenced May 20, 2024
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#10
Open
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-objects-lab#11
Open
[Snyk] Upgrade: , nejidevelops/phase-1-destructuring-assignment#11
Open
@basharat-j basharat-j mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/runtime from 7.13.10 to 7.24.5 basharat-j/mb-graphql#59
Open
@ashly1111111 ashly1111111 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , , , , ashly1111111/node#104
Open
@scudette scudette mentioned this pull request May 20, 2024
[Snyk] Upgrade: , Velocidex/velociraptor#3501
Closed
@AnushaSalian AnushaSalian mentioned this pull request May 20, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#434
Open
@nejidevelops nejidevelops mentioned this pull request May 20, 2024
[Snyk] Upgrade: , nejidevelops/phase-1-domcontentloaded#9
Open
@MelvinBot MelvinBot mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/preset-env from 7.24.4 to 7.24.5 Expensify/expensify-common#700
Closed
@davidbilling davidbilling mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/core from 7.24.4 to 7.24.5 davidbilling/ember-cli-cloudinary-light#115
Merged
@anandgupta193 anandgupta193 mentioned this pull request May 20, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1048
Open
@X-oss-byte X-oss-byte mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/core from 7.11.6 to 7.24.5 X-oss-byte/gatsby-1#753
Open
@nejidevelops nejidevelops mentioned this pull request May 20, 2024
[Snyk] Upgrade: , nejidevelops/phase-0-intro-to-js-2-looping-code-along#10
Open
@GhassenEljday GhassenEljday mentioned this pull request May 20, 2024
[Snyk] Upgrade @babel/preset-env from 7.1.0 to 7.24.5 GhassenEljday/react-mobile-app-button#38
Closed
This was referenced May 20, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-do-behavior-dc-web-091619#146
Open
[Snyk] Upgrade: , tiff-es/fewpjs-acting-on-events-dc-web-091619#152
Open
@mdfkbtc mdfkbtc mentioned this pull request May 21, 2024
[Snyk] Upgrade @babel/preset-env from 7.5.0 to 7.24.5 mdfkbtc/veles-mobile-wallet-mdfkbtc#1690
Open
@NOUIY NOUIY mentioned this pull request May 21, 2024
[Snyk] Upgrade @babel/core from 7.17.9 to 7.24.5 NOUIY/angular#741
Open
@satkunas satkunas mentioned this pull request May 21, 2024
[Snyk] Upgrade: , inverse-inc/packetfence#8161
Merged
@tiff-es tiff-es mentioned this pull request May 21, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#148
Open
This was referenced Jul 4, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#184
Open
[Snyk] Upgrade: , tiff-es/js-looping-and-iteration-looping-code-along-dc-web-091619#188
Open
@bee22193 bee22193 mentioned this pull request Jul 4, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1207
Open
@anandgupta193 anandgupta193 mentioned this pull request Jul 4, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1084
Open
@mdfkbtc mdfkbtc mentioned this pull request Jul 4, 2024
[Snyk] Upgrade @babel/preset-env from 7.5.0 to 7.24.7 mdfkbtc/veles-mobile-wallet-mdfkbtc#1761
Open
This was referenced Jul 4, 2024
[Snyk] Upgrade: , , richyhoopd/Video-App#1167
Open
[Snyk] Upgrade: , , richyhoopd/RichyFlix#878
Open
@tiff-es tiff-es mentioned this pull request Jul 5, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-document-onload-dc-web-091619#181
Open
@ashly1111111 ashly1111111 mentioned this pull request Jul 5, 2024
[Snyk] Upgrade: , , , , , , , , , ashly1111111/docs#190
Open
This was referenced Jul 6, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#191
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#185
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-do-behavior-dc-web-091619#180
Open
[Snyk] Upgrade: , tiff-es/fewpjs-acting-on-events-dc-web-091619#181
Open
[Snyk] Upgrade @babel/preset-env from 7.10.4 to 7.24.7 tiff-es/tiffany-portfolio-responsive#422
Open
@anandgupta193 anandgupta193 mentioned this pull request Jul 6, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1085
Open
@richyhoopd richyhoopd mentioned this pull request Jul 6, 2024
[Snyk] Upgrade: , , richyhoopd/Video-App#1168
Open
This was referenced Jul 6, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-document-onload-dc-web-091619#182
Open
[Snyk] Upgrade: , tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#180
Open
[Snyk] Upgrade: , tiff-es/js-data-structures-objects-lab-dc-web-091619#176
Open
[Snyk] Upgrade: , tiff-es/fewpjs-getter-and-setter-methods-dc-web-091619#192
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-do-behavior-dc-web-091619#181
Open
[Snyk] Upgrade @babel/preset-env from 7.10.4 to 7.24.7 tiff-es/tiffany-portfolio-responsive#424
Open
[Snyk] Upgrade: , tiff-es/js-looping-and-iteration-looping-code-along-dc-web-091619#189
Open
@richyhoopd richyhoopd mentioned this pull request Jul 7, 2024
[Snyk] Upgrade: , , richyhoopd/RichyFlix#879
Open
This was referenced Jul 7, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-adding-behavior-with-methods-dc-web-091619#192
Open
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-array-o-functions-dc-web-091619#186
Open
[Snyk] Upgrade: , tiff-es/fewpjs-acting-on-events-dc-web-091619#182
Open
@bee22193 bee22193 mentioned this pull request Jul 8, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1208
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 Jul 8, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 8, 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: parser 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.