Skip to content

Commit bc3b62f

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

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

  • actions/ql/lib/codeql/actions/controlflow/internal

‎actions/ql/lib/codeql/actions/controlflow/internal/Cfg.qll‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,28 @@ module CfgImpl {
336336
boolean getValue() { none() }
337337
}
338338

339+
class Pattern extends AstNode {
340+
Pattern() { none() }
341+
342+
Pattern getPattern(int index) { none() }
343+
}
344+
345+
class LiteralPattern extends Pattern {
346+
LiteralPattern() { none() }
347+
348+
AstNode getLiteral() { none() }
349+
}
350+
351+
class BindingPattern extends Pattern {
352+
BindingPattern() { none() }
353+
354+
AstNode getVariable() { none() }
355+
}
356+
357+
class OrPattern extends Pattern {
358+
OrPattern() { none() }
359+
}
360+
339361
class PatternMatchExpr extends Expr {
340362
PatternMatchExpr() { none() }
341363

0 commit comments

Comments
 (0)