OLD | NEW |
(Empty) | |
| 1 >>> |
| 2 class AstComparator implements AstVisitor<bool> { |
| 3 bool visitClassDeclaration(ClassDeclaration node) { |
| 4 ClassDeclaration other = this._other as ClassDeclaration; |
| 5 return _isEqualNodes(node.documentationComment, other.documentationComment)
&& _isEqualNodeLists(node.metadata, other.metadata) && _isEqualTokens(node.abstr
actKeyword, other.abstractKeyword) && _isEqualTokens(node.classKeyword, other.cl
assKeyword) && _isEqualNodes(node.name, other.name) && _isEqualNodes(node.typePa
rameters, other.typeParameters) && _isEqualNodes(node.extendsClause, other.exten
dsClause) && _isEqualNodes(node.withClause, other.withClause) && _isEqualNodes(n
ode.implementsClause, other.implementsClause) && _isEqualTokens(node.leftBracket
, other.leftBracket) && _isEqualNodeLists(node.members, other.members) && _isEqu
alTokens(node.rightBracket, other.rightBracket); |
| 6 } |
| 7 } |
| 8 <<< |
| 9 class AstComparator implements AstVisitor<bool> { |
| 10 bool visitClassDeclaration(ClassDeclaration node) { |
| 11 ClassDeclaration other = this._other as ClassDeclaration; |
| 12 return _isEqualNodes( |
| 13 node.documentationComment, other.documentationComment) && |
| 14 _isEqualNodeLists(node.metadata, other.metadata) && |
| 15 _isEqualTokens(node.abstractKeyword, other.abstractKeyword) && |
| 16 _isEqualTokens(node.classKeyword, other.classKeyword) && |
| 17 _isEqualNodes(node.name, other.name) && |
| 18 _isEqualNodes(node.typeParameters, other.typeParameters) && |
| 19 _isEqualNodes(node.extendsClause, other.extendsClause) && |
| 20 _isEqualNodes(node.withClause, other.withClause) && |
| 21 _isEqualNodes(node.implementsClause, other.implementsClause) && |
| 22 _isEqualTokens(node.leftBracket, other.leftBracket) && |
| 23 _isEqualNodeLists(node.members, other.members) && |
| 24 _isEqualTokens(node.rightBracket, other.rightBracket); |
| 25 } |
| 26 } |
OLD | NEW |