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

Commit 2f86bef

Browse files
soda0289JamesHenry
authored andcommitted
Fix: Unescape identifiers typescript may prepend underscore (fixes #145) (#159)
1 parent 0b343ab commit 2f86bef

File tree

3 files changed

+489
-1
lines changed

3 files changed

+489
-1
lines changed

lib/ast-converter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ module.exports = function(ast, extra) {
735735
case SyntaxKind.Identifier:
736736
assign(result, {
737737
type: "Identifier",
738-
name: node.text
738+
name: ts.unescapeIdentifier(node.text)
739739
});
740740
break;
741741

0 commit comments

Comments
 (0)