File tree Expand file tree Collapse file tree
csharp/ql/lib/semmle/code/csharp/controlflow/internal
java/ql/lib/semmle/code/java
shared/controlflow/codeql/controlflow Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments