Skip to content

Commit f3ec708

Browse files
committed
Cfg: Fix type.
1 parent 01173bf commit f3ec708

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

csharp/ql/lib/semmle/code/csharp/controlflow/internal/ControlFlowGraph.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ module Ast implements AstSig<Location> {
203203
final private class FinalTryStmt = CS::TryStmt;
204204

205205
class TryStmt extends FinalTryStmt {
206-
Stmt getBody(int index) { index = 0 and result = this.getBlock() }
206+
AstNode getBody(int index) { index = 0 and result = this.getBlock() }
207207

208208
CatchClause getCatch(int index) { result = this.getCatchClause(index) }
209209

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private module Ast implements AstSig<Location> {
117117
final private class FinalTryStmt = J::TryStmt;
118118

119119
class TryStmt extends FinalTryStmt {
120-
Stmt getBody(int index) {
120+
AstNode getBody(int index) {
121121
result = super.getResource(index)
122122
or
123123
index = count(super.getAResource()) and

shared/controlflow/codeql/controlflow/ControlFlowGraph.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ signature module AstSig<LocationSig Location> {
190190
* position `index`. In some languages, there is only ever a single body
191191
* (with `index` 0).
192192
*/
193-
Stmt getBody(int index);
193+
AstNode getBody(int index);
194194

195195
/**
196196
* Gets the `catch` clause at the specified (zero-based) position `index`

0 commit comments

Comments
 (0)