Presenting ... within the result of toString() for both DataFlow::Node and Expr for JavaScript
- Dominant language
- CodeQL
- Stars
- 10.1k
- Forks
- 2.1k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 141
Description
**Description of the issue**
I tried to retrieve the text presentation of specific `DataFlow::Node` and `Expr`, while the results are all default to abbreviated strings, such as `require('body-parser')` which is supposed to be a `DataFlow::ImportModuleNode` in source code, the result of `toString()` is `require ... arser')`.
[`https://github.com/github/codeql/issues/4811`](https://github.com/github/codeql/issues/4811), this issue had provided a solution of using `getStringValue()` instead of `toString()`, while it seems this solution is only applicable to Literal objects instead of retrieving text presentation of all `DataFlow::Node` and `Expr`.
Is there any proper way to retrieve the full text of nodes and exprs?
Many thanks!
Contributor guide
Assessment
This issue has not been assessed yet.