Skip to content

Commit b4ea0a8

Browse files
committed
Java: Adapt to changes in shared CFG library
1 parent 49798b9 commit b4ea0a8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ private module Ast implements AstSig<Location> {
5757

5858
AstNode callableGetBody(Callable c) { result = c.getBody() }
5959

60+
// TODO: Implement in order to include parameters in the CFG
61+
class Parameter extends AstNode {
62+
Parameter() { none() }
63+
64+
Expr getDefaultValue() { none() }
65+
}
66+
67+
Parameter callableGetParameter(Callable c, int i) { result = c.getParameter(i) }
68+
6069
class Stmt = J::Stmt;
6170

6271
class Expr = J::Expr;
@@ -534,7 +543,7 @@ private module Input implements InputSig1, InputSig2 {
534543
l = TYield() and n instanceof SwitchExpr
535544
}
536545

537-
class CallableBodyPartContext = Void;
546+
class CallableContext = Void;
538547

539548
predicate inConditionalContext(Ast::AstNode n, ConditionKind kind) {
540549
kind.isBoolean() and

0 commit comments

Comments
 (0)