-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Various fixes for sourcemap and breakpoints of decorators #5724
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
Conversation
…er skipping trivia from decorators end
…akpoint on all the decorators On resolution, this would be call to __decorate
…and not from decorators
…corator expression
@@ -5685,10 +5685,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi | |||
function emitDecoratorsOfConstructor(node: ClassLikeDeclaration) { | |||
const decorators = node.decorators; | |||
const constructor = getFirstConstructorWithBody(node); | |||
const hasDecoratedParameters = constructor && forEach(constructor.parameters, nodeIsDecorated); | |||
const parameterDecorators = constructor && forEach(constructor.parameters, parameter => parameter.decorators); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just the first paramter decorator, what about the rest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see, never mind, i would rename this as firstParameterDecorator to avoid the confusion.
looks good. please coordinate with @rbuckton on which change go in first. |
Various fixes for sourcemap and breakpoints of decorators
Handles #5584