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

Commit bbd2cd6

Browse files
committed
Fix: Remove jsdoc node property from ts nodes (fixes #164)
JSDoc property is not found on parsed ESTree nodes and should be removed when parsing typescript nodes.
1 parent f96b6e2 commit bbd2cd6

File tree

3 files changed

+662
-1
lines changed

3 files changed

+662
-1
lines changed

lib/ast-converter.js

+1-1
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)