mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Adapt control-flow graph to record patterns
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user