Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 2640d81

Browse files
soda0289JamesHenry
authored andcommitted
Fix: Remove jsdoc node property from ts nodes (fixes #164) (#177)
1 parent 701e2c5 commit 2640d81

File tree

3 files changed

+662
-1
lines changed

3 files changed

+662
-1
lines changed

lib/ast-converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ module.exports = function(ast, extra) {
669669
function deeplyCopy() {
670670
result.type = "TS" + SyntaxKind[node.kind];
671671
Object.keys(node).filter(function(key) {
672-
return !(/^(?:kind|parent|pos|end|flags|modifierFlagsCache)$/.test(key));
672+
return !(/^(?:kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(key));
673673
}).forEach(function(key) {
674674
if (key === "type") {
675675
result.typeAnnotation = (node.type) ? convertTypeAnnotation(node.type) : null;

0 commit comments

Comments
 (0)