unParenthesized property
If this pattern is a parenthesized pattern, return the result of unwrapping the pattern inside the parentheses. Otherwise, return this pattern.
Implementation
@override
DartPattern get unParenthesized {
var result = pattern;
while (result is ParenthesizedPatternImpl) {
result = result.pattern;
}
return result;
}