Presenting ... within the result of toString() for both DataFlow::Node and Expr for JavaScript
- 主要言語
- CodeQL
- スター
- 10.1k
- フォーク
- 2.1k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 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 はまだ評価されていません。