Cfg: Fix type.

This commit is contained in:
Anders Schack-Mulligen
2026-06-12 10:02:48 +02:00
parent 01173bf383
commit f3ec7087e3
3 changed files with 3 additions and 3 deletions

View File

@@ -203,7 +203,7 @@ module Ast implements AstSig<Location> {
final private class FinalTryStmt = CS::TryStmt;
class TryStmt extends FinalTryStmt {
Stmt getBody(int index) { index = 0 and result = this.getBlock() }
AstNode getBody(int index) { index = 0 and result = this.getBlock() }
CatchClause getCatch(int index) { result = this.getCatchClause(index) }

View File

@@ -117,7 +117,7 @@ private module Ast implements AstSig<Location> {
final private class FinalTryStmt = J::TryStmt;
class TryStmt extends FinalTryStmt {
Stmt getBody(int index) {
AstNode getBody(int index) {
result = super.getResource(index)
or
index = count(super.getAResource()) and

View File

@@ -190,7 +190,7 @@ signature module AstSig<LocationSig Location> {
* position `index`. In some languages, there is only ever a single body
* (with `index` 0).
*/
Stmt getBody(int index);
AstNode getBody(int index);
/**
* Gets the `catch` clause at the specified (zero-based) position `index`