-
Notifications
You must be signed in to change notification settings - Fork 13k
Report error if the entityname reference in the import declaration is us... #413
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
… using private module
…fier meaning is also value
…nnot be named Adds test cases too
function writeAsychronousImportDeclarations(importDeclarations: ImportDeclaration[]) { | ||
var oldWriter = writer; | ||
forEach(importDeclarations.sort(), aliasToWrite => { | ||
var aliasEmitInfo = forEach(aliasDeclarationEmitInfo, declEmitInfo => declEmitInfo.declaration === aliasToWrite ? declEmitInfo : undefined); |
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.
why do we need to sort the declarations?
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.
we need to sort that because the text is patched correctly and we don't need to track partial edits. The asynchronous output could make declaration in reverse or random order to be in importDeclarations list
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 am not sure I understand, an example may be helpful :)
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.
hm.. sorry I thought you were talking about the code that was patching asynchronous code. The sort is not needed here. I am updating it.
Make changes to report error if the type used from external module cannot be named
Emit Type of function and static function correctly in declaration file
Report error if the entityname reference in the import declaration is us...
Report error if the entityname reference in the import declaration is using private module