| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 | 3 |
| 4 library engine.ast; | 4 library engine.ast; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
| 8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
| 9 import 'error.dart'; | 9 import 'error.dart'; |
| 10 import 'source.dart' show LineInfo; | 10 import 'source.dart' show LineInfo; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 * Return an array containing the comment and annotations associated with this
node, sorted in | 457 * Return an array containing the comment and annotations associated with this
node, sorted in |
| 458 * lexical order. | 458 * lexical order. |
| 459 * @return the comment and annotations associated with this node in the order
in which they | 459 * @return the comment and annotations associated with this node in the order
in which they |
| 460 * appeared in the original source | 460 * appeared in the original source |
| 461 */ | 461 */ |
| 462 List<ASTNode> get sortedCommentAndAnnotations { | 462 List<ASTNode> get sortedCommentAndAnnotations { |
| 463 List<ASTNode> childList = new List<ASTNode>(); | 463 List<ASTNode> childList = new List<ASTNode>(); |
| 464 childList.add(_comment); | 464 childList.add(_comment); |
| 465 childList.addAll(_metadata); | 465 childList.addAll(_metadata); |
| 466 List<ASTNode> children = new List.from(childList); | 466 List<ASTNode> children = new List.from(childList); |
| 467 children.sort(); | 467 children.sort(ASTNode.LEXICAL_ORDER); |
| 468 return children; | 468 return children; |
| 469 } | 469 } |
| 470 } | 470 } |
| 471 /** | 471 /** |
| 472 * Instances of the class {@code Annotation} represent an annotation that can be
associated with an | 472 * Instances of the class {@code Annotation} represent an annotation that can be
associated with an |
| 473 * AST node. | 473 * AST node. |
| 474 * <pre> | 474 * <pre> |
| 475 * metadata ::= | 475 * metadata ::= |
| 476 * annotation | 476 * annotation |
| 477 * annotation ::= | 477 * annotation ::= |
| (...skipping 12840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13318 return elements[elements.length - 1].endToken; | 13318 return elements[elements.length - 1].endToken; |
| 13319 } | 13319 } |
| 13320 /** | 13320 /** |
| 13321 * Return the node that is the parent of each of the elements in the list. | 13321 * Return the node that is the parent of each of the elements in the list. |
| 13322 * @return the node that is the parent of each of the elements in the list | 13322 * @return the node that is the parent of each of the elements in the list |
| 13323 */ | 13323 */ |
| 13324 ASTNode getOwner() { | 13324 ASTNode getOwner() { |
| 13325 return owner; | 13325 return owner; |
| 13326 } | 13326 } |
| 13327 } | 13327 } |
| OLD | NEW |