-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Node#getText() will throw if node was made with another transformer #24273
Comments
Have you tried calling |
I don't see |
@RyanCavanaugh Can you take a look? |
@mohsen1 this call stack doesn't look related to what you were describing?
|
@RyanCavanaugh Not sure how you got I'm still not able to read text of a synthetically added node. |
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow. |
When a transformers adds a new node to the AST, reading that node text will throw an error because sourceFile is not reflecting the newly added node
TypeScript Version: 2.9.0
Search Terms:
Transformers, AST,
getText()
Code
reproduction repo
See Travis Logs and comments in index.ts
Expected behavior:
No Error
Actual behavior:
Error
The text was updated successfully, but these errors were encountered: