Adapt control-flow graph to record patterns

This commit is contained in:
Chris Smowton
2023-11-01 18:22:25 +00:00
parent 556feb31f0
commit 05addde957
5 changed files with 89 additions and 17 deletions

View File

@@ -2547,4 +2547,8 @@ class RecordPatternExpr extends Expr, @recordpatternexpr {
override string toString() { result = this.getType().toString() + "(...)" }
override string getAPrimaryQlClass() { result = "RecordPatternExpr" }
Pattern getSubPattern(int i) {
result.isNthChildOf(this, i)
}
}