mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Emit pinned/tripleslash reference comments of ambient declarations
Fixes #501
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user