-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible string / number literal printing bug #464
Comments
Tested with 17.0.0 with same results. |
Weird. I guess the printer can't figure out the literal text. You'll need to pass in the source file: console.log(printNode(f.compilerNode, f.getSourceFile().compilerNode)); Or call console.log(f.print()); |
Ok, thanks a million! I will try that 👍 |
What I could do here is check if the node has parents. If it does I can work up the tree to find the source file. I'll go ahead and do that. |
Oh wait, there's definitely a problem here with |
This will be fixed in 17.0.1 (just releasing now). Thanks again! |
Literals not printed with printNode
Version: 14.4.3
function printNode does not print string literals like "hello" or number literals like 555
To Reproduce
Expected behavior
Should print the function code
currently prints
The text was updated successfully, but these errors were encountered: