Update AstComparator.visitPatternVariableDeclaration to account for metadata.

Change-Id: Icd875b10088cef17b4a3351591e29b1275900a50
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273622
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Paul Berry 2022-12-05 16:52:26 +00:00 committed by Commit Queue
parent 05ee431fb4
commit e7832eba4c

View file

@ -1105,6 +1105,7 @@ class AstComparator implements AstVisitor<bool> {
var other = _other as PatternVariableDeclaration;
return isEqualNodes(
node.documentationComment, other.documentationComment) &&
_isEqualNodeLists(node.metadata, other.metadata) &&
isEqualTokens(node.keyword, other.keyword) &&
isEqualNodes(node.pattern, other.pattern) &&
isEqualTokens(node.equals, other.equals) &&