Skip to content

Commit 673da30

Browse files
hvitvedCopilot
andcommitted
Unified: Add shared CFG pattern stubs
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent ee5d74c commit 673da30

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/ControlFlowGraph.qll‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,18 @@ module Ast implements AstSig<Location> {
293293
boolean getValue() { result.toString() = super.getValue() }
294294
}
295295

296+
class Pattern extends AstNode {
297+
Pattern() { none() }
298+
}
299+
300+
class AndPattern extends Pattern {
301+
AndPattern() { none() }
302+
}
303+
304+
class OrPattern extends Pattern {
305+
OrPattern() { none() }
306+
}
307+
296308
class PatternMatchExpr extends U::PatternGuardExpr {
297309
Expr getExpr() { result = super.getValue() }
298310

0 commit comments

Comments
 (0)