Presenting ... within the result of toString() for both DataFlow::Node and Expr for JavaScript
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 141
描述
**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!
贡献指南
评估
这个 Issue 还没有评估数据。