Ruby: Cache DataFlow::Node::{toString,getLocation}

This commit is contained in:
Tom Hvitved
2021-11-09 16:14:34 +01:00
parent f337459a4a
commit 3b5267eca5

View File

@@ -18,11 +18,11 @@ class Node extends TNode {
Parameter asParameter() { result = this.(ParameterNode).getParameter() }
/** Gets a textual representation of this node. */
// TODO: cache
cached
final string toString() { result = this.(NodeImpl).toStringImpl() }
/** Gets the location of this node. */
// TODO: cache
cached
final Location getLocation() { result = this.(NodeImpl).getLocationImpl() }
/**