Skip to content

Commit db7ec4a

Browse files
committed
Java: Remove getDefinitionExt reference
1 parent 09454f9 commit db7ec4a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/DataFlowNodes.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ module Public {
167167
or
168168
result instanceof TypeObject and this instanceof AdditionalNode
169169
or
170-
result = this.(SsaNode).getDefinitionExt().getSourceVariable().getType()
170+
result = this.(SsaNode).getTypeImpl()
171171
}
172172

173173
/** Gets the callable in which this node occurs. */
@@ -394,7 +394,9 @@ class SsaNode extends Node, TSsaNode {
394394

395395
SsaNode() { this = TSsaNode(node) }
396396

397-
SsaImpl::Impl::DefinitionExt getDefinitionExt() { result = node.getDefinitionExt() }
397+
BasicBlock getBasicBlock() { result = node.getBasicBlock() }
398+
399+
Type getTypeImpl() { result = node.getSourceVariable().getType() }
398400

399401
override Location getLocation() { result = node.getLocation() }
400402

@@ -442,7 +444,7 @@ module Private {
442444
result.asCallable() = n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() or
443445
result.asFieldScope() = n.(FieldValueNode).getField() or
444446
result.asCallable() = any(Expr e | n.(AdditionalNode).nodeAt(e, _)).getEnclosingCallable() or
445-
result.asCallable() = n.(SsaNode).getDefinitionExt().getBasicBlock().getEnclosingCallable()
447+
result.asCallable() = n.(SsaNode).getBasicBlock().getEnclosingCallable()
446448
}
447449

448450
/** Holds if `p` is a `ParameterNode` of `c` with position `pos`. */

0 commit comments

Comments
 (0)