OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 @Override | 553 @Override |
554 public Boolean visitImplementsClause(ImplementsClause node) { | 554 public Boolean visitImplementsClause(ImplementsClause node) { |
555 ImplementsClause toNode = (ImplementsClause) this.toNode; | 555 ImplementsClause toNode = (ImplementsClause) this.toNode; |
556 return isEqual(node.getKeyword(), toNode.getKeyword()) | 556 return isEqual(node.getKeyword(), toNode.getKeyword()) |
557 & isEqual(node.getInterfaces(), toNode.getInterfaces()); | 557 & isEqual(node.getInterfaces(), toNode.getInterfaces()); |
558 } | 558 } |
559 | 559 |
560 @Override | 560 @Override |
561 public Boolean visitImportDirective(ImportDirective node) { | 561 public Boolean visitImportDirective(ImportDirective node) { |
562 ImportDirective toNode = (ImportDirective) this.toNode; | 562 ImportDirective toNode = (ImportDirective) this.toNode; |
563 return isEqual(node.getDocumentationComment(), toNode.getDocumentationCommen
t()) | 563 if (isEqual(node.getDocumentationComment(), toNode.getDocumentationComment()
) |
564 & isEqual(node.getMetadata(), toNode.getMetadata()) | 564 & isEqual(node.getMetadata(), toNode.getMetadata()) |
565 & isEqual(node.getKeyword(), toNode.getKeyword()) & isEqual(node.getUri(
), toNode.getUri()) | 565 & isEqual(node.getKeyword(), toNode.getKeyword()) & isEqual(node.getUri(
), toNode.getUri()) |
566 & isEqual(node.getAsToken(), toNode.getAsToken()) | 566 & isEqual(node.getAsToken(), toNode.getAsToken()) |
567 & isEqual(node.getPrefix(), toNode.getPrefix()) | 567 & isEqual(node.getPrefix(), toNode.getPrefix()) |
568 & isEqual(node.getCombinators(), toNode.getCombinators()) | 568 & isEqual(node.getCombinators(), toNode.getCombinators()) |
569 & isEqual(node.getSemicolon(), toNode.getSemicolon()); | 569 & isEqual(node.getSemicolon(), toNode.getSemicolon())) { |
| 570 toNode.setElement(node.getElement()); |
| 571 return true; |
| 572 } |
| 573 return false; |
570 } | 574 } |
571 | 575 |
572 @Override | 576 @Override |
573 public Boolean visitIndexExpression(IndexExpression node) { | 577 public Boolean visitIndexExpression(IndexExpression node) { |
574 IndexExpression toNode = (IndexExpression) this.toNode; | 578 IndexExpression toNode = (IndexExpression) this.toNode; |
575 if (isEqual(node.getTarget(), toNode.getTarget()) | 579 if (isEqual(node.getTarget(), toNode.getTarget()) |
576 & isEqual(node.getLeftBracket(), toNode.getLeftBracket()) | 580 & isEqual(node.getLeftBracket(), toNode.getLeftBracket()) |
577 & isEqual(node.getIndex(), toNode.getIndex()) | 581 & isEqual(node.getIndex(), toNode.getIndex()) |
578 & isEqual(node.getRightBracket(), toNode.getRightBracket())) { | 582 & isEqual(node.getRightBracket(), toNode.getRightBracket())) { |
579 toNode.setAuxiliaryElements(node.getAuxiliaryElements()); | 583 toNode.setAuxiliaryElements(node.getAuxiliaryElements()); |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 return false; | 1256 return false; |
1253 } | 1257 } |
1254 for (int i = 0; i < length; i++) { | 1258 for (int i = 0; i < length; i++) { |
1255 if (!isEqual(first[i], second[i])) { | 1259 if (!isEqual(first[i], second[i])) { |
1256 return false; | 1260 return false; |
1257 } | 1261 } |
1258 } | 1262 } |
1259 return true; | 1263 return true; |
1260 } | 1264 } |
1261 } | 1265 } |
OLD | NEW |