Skip to content

Commit b4e1bbb

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

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,24 @@ 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+
308+
class NotPattern extends Pattern {
309+
NotPattern() { none() }
310+
311+
Pattern getNegatedPattern() { none() }
312+
}
313+
296314
class PatternMatchExpr extends U::PatternGuardExpr {
297315
Expr getExpr() { result = super.getValue() }
298316

0 commit comments

Comments
 (0)