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

Add parser support for static decorators #10388

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Sep 3, 2019

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

After a long time since the proposal update, the PR is here 😛
I'll close all the PRs for the older decorators versions. Note that they will still be maintianed with bug fixes and performance improvements if possible/needed.


Open question:
I created a new plugin (staticDecorators) because we had two different plugins for the other decorators flavors (decorators and decorators-legacy). If we can come up with a name for the proposal we had one year ago, I would prefer to use a single plugin live we did for the pipeline operator:

["decorators", { version: "static" | "legacy" | "?" }]

(and leave decorators-legacy for backward compatibility)


I'm cc-ing a few people which are/might be interested: @littledan @tomdale @kesne @tjcrowder @pabloalmunia

@nicolo-ribaudo nicolo-ribaudo added PR: New Feature 🚀 A type of pull request used for our changelog categories pkg: parser Spec: Static decorators labels Sep 3, 2019
return this.state.pos + skip.length;
}

lookaheadCh(noNewLine?: boolean): number {
Copy link
Member Author

Choose a reason for hiding this comment

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

This does the same thing introduced by #10371 (when I initially wrote this code that PR didn't exist 😛)

I'll rebase this branch when that PR is merged, to use the method it introduces.

@babel-bot
Copy link
Collaborator

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

@JLHwung JLHwung self-requested a review November 12, 2019 15:32
@mbrowne
Copy link

mbrowne commented Nov 17, 2019

Just happened upon this PR. For the naming, how about just v2 for the proposal prior to the introduction of static decorators, and v3 for the current proposal?

["decorators", { version: "legacy" | "v2" | "v3" }]

(I'm assuming that renaming legacy would be a breaking change and needs to remain as-is, but if not, it could be renamed v1 for consistency.)

@nicolo-ribaudo
Copy link
Member Author

The proposal has been rewritten

@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 Jan 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the static-decorators/01-parser branch November 30, 2023 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Static decorators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants