Emit pinned/tripleslash reference comments of ambient declarations

Fixes #501
This commit is contained in:
Sheetal Nandi
2014-08-22 14:35:07 -07:00
parent 393464eb18
commit 5353128387
18 changed files with 222 additions and 4 deletions

View File

@@ -1989,7 +1989,14 @@ module ts {
}
function emitNode(node: Node) {
if (!node || node.flags & NodeFlags.Ambient) return;
if (!node) {
return;
}
if (node.flags & NodeFlags.Ambient) {
return emitPinnedOrTripleSlashComments(node);
}
switch (node.kind) {
case SyntaxKind.Identifier:
return emitIdentifier(<Identifier>node);