C#: Remove unique wrappers from DataFlow::Node::get(EnclosingCallable|ControlFlowNode)

This commit is contained in:
Tom Hvitved
2021-04-06 09:56:09 +02:00
parent a23d8deb10
commit e852540254

View File

@@ -47,14 +47,14 @@ class Node extends TNode {
cached
final DataFlowCallable getEnclosingCallable() {
Stages::DataFlowStage::forceCachingInSameStage() and
result = unique(DataFlowCallable c | c = this.(NodeImpl).getEnclosingCallableImpl() | c)
result = this.(NodeImpl).getEnclosingCallableImpl()
}
/** Gets the control flow node corresponding to this node, if any. */
cached
final ControlFlow::Node getControlFlowNode() {
Stages::DataFlowStage::forceCachingInSameStage() and
result = unique(ControlFlow::Node n | n = this.(NodeImpl).getControlFlowNodeImpl() | n)
result = this.(NodeImpl).getControlFlowNodeImpl()
}
/** Gets a textual representation of this node. */