JavaScript: Cache SourceNode::track and SourceNode::backtrack.

This commit is contained in:
Max Schaefer
2019-03-13 12:52:05 +00:00
parent 2b778afdf5
commit c17f4d7d41

View File

@@ -162,6 +162,7 @@ class SourceNode extends DataFlow::Node {
*
* See `TypeTracker` for more details about how to use this.
*/
cached
DataFlow::SourceNode track(TypeTracker t2, TypeTracker t) {
exists(StepSummary summary |
StepSummary::step(this, result, summary) and
@@ -176,6 +177,7 @@ class SourceNode extends DataFlow::Node {
*
* See `TypeBackTracker` for more details about how to use this.
*/
cached
DataFlow::SourceNode backtrack(TypeBackTracker t2, TypeBackTracker t) {
exists(StepSummary summary |
StepSummary::step(result, this, summary) and