Cfg: Change AST/CFG for CatchClauses to use a pattern.

This commit is contained in:
Anders Schack-Mulligen
2026-06-19 15:35:34 +02:00
parent cfbf4a3927
commit 41297c588c
3 changed files with 75 additions and 16 deletions

View File

@@ -138,7 +138,9 @@ private module Ast implements AstSig<Location> {
final private class FinalCatchClause = J::CatchClause;
class CatchClause extends FinalCatchClause {
AstNode getVariable() { result = super.getVariable() }
AstNode getPattern() { result = super.getVariable() }
AstNode getVariable() { none() }
Expr getCondition() { none() }