Rename Pattern to PatternExpr to avoid clashing with Regex::Pattern

This commit is contained in:
Chris Smowton
2023-11-03 16:49:23 +00:00
parent 023615386b
commit 11444a3ae7
4 changed files with 10 additions and 10 deletions

View File

@@ -1563,7 +1563,7 @@ class InstanceOfExpr extends Expr, @instanceofexpr {
/**
* Gets the pattern of an `x instanceof T pattern` expression, if any.
*/
Pattern getPattern() { result.isNthChildOf(this, 2) }
PatternExpr getPattern() { result.isNthChildOf(this, 2) }
/**
* Holds if this `instanceof` expression uses pattern matching.
@@ -2559,5 +2559,5 @@ class RecordPatternExpr extends Expr, @recordpatternexpr {
/**
* Gets the `i`th subpattern of this record pattern.
*/
Pattern getSubPattern(int i) { result.isNthChildOf(this, i) }
PatternExpr getSubPattern(int i) { result.isNthChildOf(this, i) }
}