Skip to content

Commit ee5d74c

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

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎ruby/ql/lib/codeql/ruby/controlflow/ControlFlowGraph.qll‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,18 @@ private module Ast implements AstSig<Location> {
442442
boolean getValue() { result = super.getValue() }
443443
}
444444

445+
class Pattern extends AstNode {
446+
Pattern() { none() }
447+
}
448+
449+
class AndPattern extends Pattern {
450+
AndPattern() { none() }
451+
}
452+
453+
class OrPattern extends Pattern {
454+
OrPattern() { none() }
455+
}
456+
445457
class PatternMatchExpr extends Expr {
446458
PatternMatchExpr() { none() }
447459

0 commit comments

Comments
 (0)