Skip to content

Commit 3b5267e

Browse files
committed
Ruby: Cache DataFlow::Node::{toString,getLocation}
1 parent f337459 commit 3b5267e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ class Node extends TNode {
1818
Parameter asParameter() { result = this.(ParameterNode).getParameter() }
1919

2020
/** Gets a textual representation of this node. */
21-
// TODO: cache
21+
cached
2222
final string toString() { result = this.(NodeImpl).toStringImpl() }
2323

2424
/** Gets the location of this node. */
25-
// TODO: cache
25+
cached
2626
final Location getLocation() { result = this.(NodeImpl).getLocationImpl() }
2727

2828
/**

0 commit comments

Comments
 (0)