mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Ruby: Cache DataFlow::Node::{toString,getLocation}
This commit is contained in:
@@ -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() }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user