Skip to content

[Transforms] Merge master 06/06/2016 - #8991

Merged
Yui (yuit) merged 224 commits into
transformsfrom
transforms_mergemaster
Jun 14, 2016
Merged

[Transforms] Merge master 06/06/2016#8991
Yui (yuit) merged 224 commits into
transformsfrom
transforms_mergemaster

Conversation

@yuit

Copy link
Copy Markdown
Contributor

No description provided.

context.enableSubstitution(SyntaxKind.Identifier);
context.enableSubstitution(SyntaxKind.BinaryExpression);
context.enableSubstitution(SyntaxKind.PrefixUnaryExpression);
context.enableSubstitution(SyntaxKind.PostfixUnaryExpression);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to enable emit notification for source files so that you know the current source file during substitution.

@yuit

Copy link
Copy Markdown
ContributorAuthor

Current following tests are failing:

  • es5andes6module
  • es6modulekindWithES5Target1,2,6,11

const sourceFileName = sourceFile ? sourceFile.fileName : undefined;
if (bindingNameExportSpecifiers && bindingNameExportSpecifiers[sourceFileName] && hasProperty(bindingNameExportSpecifiers[sourceFileName], left.text)) {
if (bindingNameExportSpecifiersForFileMap &&
bindingNameExportSpecifiersForFileMap[currentSourceFileIdDuringSubstitution] &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we store the result of this lookup in a local variable so we aren't performing the same lookup twice in a row?

@rbuckton

Copy link
Copy Markdown
Contributor

After you address this comment (and the related comments), 👍

@yuit
Yui (yuit) merged commit f235bf7 into transformsJun 14, 2016
@yuit
Yui (yuit) deleted the transforms_mergemaster branch June 14, 2016 18:37
@microsoftMicrosoft (microsoft) locked and limited conversation to collaborators Jun 19, 2018
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Domain: API: TransformsRelates to the public transform API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

14 participants

@yuit@rbuckton@msftclas@weswigham@mhegazy@evansb@YuichiNukiyama@sandersn@vladima@ahejlsberg@plantain-00@DickvdBrink@sheetalkamat@texastoland