Add comments

This commit is contained in:
Mohamed Hegazy
2015-03-17 13:03:13 -07:00
parent 1932f720cb
commit 766cb68f7c
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -10982,6 +10982,8 @@ module ts {
function getExportNameSubstitution(symbol: Symbol, location: Node): string {
if (isExternalModuleSymbol(symbol.parent)) {
var symbolName = unescapeIdentifier(symbol.name);
// If this is es6 or higher, just use the name of the export
// no need to qualify it.
if (languageVersion >= ScriptTarget.ES6) {
return symbolName;
}
+1
View File
@@ -4903,6 +4903,7 @@ module ts {
}
write("class ");
// check if this is an "export default class" as it may not have a name
if (node.name || !(node.flags & NodeFlags.Default)) {
emitDeclarationName(node);
}