Skip to content

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

Merged
merged 9 commits into from
Nov 30, 2015

Conversation

sheetalkamat
Copy link
Member

Handles #5584

@@ -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);
Copy link
Contributor

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?

Copy link
Contributor

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.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 26, 2015

looks good. please coordinate with @rbuckton on which change go in first.

sheetalkamat added a commit that referenced this pull request Nov 30, 2015
Various fixes for sourcemap and breakpoints of decorators
@sheetalkamat sheetalkamat merged commit 74d92f0 into master Nov 30, 2015
@sheetalkamat sheetalkamat deleted the sourceMapAndBreakpointDecorators branch November 30, 2015 23:59
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants