| 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 library engine.ast; | 3 library engine.ast; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'error.dart'; | 7 import 'error.dart'; |
| 8 import 'source.dart' show LineInfo; | 8 import 'source.dart' show LineInfo; |
| 9 import 'scanner.dart'; | 9 import 'scanner.dart'; |
| 10 import 'engine.dart' show AnalysisEngine; | 10 import 'engine.dart' show AnalysisEngine; |
| (...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3020 * Return an array containing all of the directives and declarations in this c
ompilation unit, | 3020 * Return an array containing all of the directives and declarations in this c
ompilation unit, |
| 3021 * sorted in lexical order. | 3021 * sorted in lexical order. |
| 3022 * @return the directives and declarations in this compilation unit in the ord
er in which they | 3022 * @return the directives and declarations in this compilation unit in the ord
er in which they |
| 3023 * appeared in the original source | 3023 * appeared in the original source |
| 3024 */ | 3024 */ |
| 3025 List<ASTNode> get sortedDirectivesAndDeclarations { | 3025 List<ASTNode> get sortedDirectivesAndDeclarations { |
| 3026 List<ASTNode> childList = new List<ASTNode>(); | 3026 List<ASTNode> childList = new List<ASTNode>(); |
| 3027 childList.addAll(_directives); | 3027 childList.addAll(_directives); |
| 3028 childList.addAll(_declarations); | 3028 childList.addAll(_declarations); |
| 3029 List<ASTNode> children = new List.from(childList); | 3029 List<ASTNode> children = new List.from(childList); |
| 3030 children.sort(); | 3030 children.sort(ASTNode.LEXICAL_ORDER); |
| 3031 return children; | 3031 return children; |
| 3032 } | 3032 } |
| 3033 } | 3033 } |
| 3034 /** | 3034 /** |
| 3035 * Instances of the class {@code CompilationUnitMember} defines the behavior com
mon to nodes that | 3035 * Instances of the class {@code CompilationUnitMember} defines the behavior com
mon to nodes that |
| 3036 * declare a name within the scope of a compilation unit. | 3036 * declare a name within the scope of a compilation unit. |
| 3037 * <pre> | 3037 * <pre> |
| 3038 * compilationUnitMember ::={@link ClassDeclaration classDeclaration}| {@link Ty
peAlias typeAlias}| {@link FunctionDeclaration functionDeclaration}| {@link Meth
odDeclaration getOrSetDeclaration}| {@link VariableDeclaration constantsDeclarat
ion}| {@link VariableDeclaration variablesDeclaration}</pre> | 3038 * compilationUnitMember ::={@link ClassDeclaration classDeclaration}| {@link Ty
peAlias typeAlias}| {@link FunctionDeclaration functionDeclaration}| {@link Meth
odDeclaration getOrSetDeclaration}| {@link VariableDeclaration constantsDeclarat
ion}| {@link VariableDeclaration variablesDeclaration}</pre> |
| 3039 * @coverage dart.engine.ast | 3039 * @coverage dart.engine.ast |
| 3040 */ | 3040 */ |
| (...skipping 12210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15251 return elements[elements.length - 1].endToken; | 15251 return elements[elements.length - 1].endToken; |
| 15252 } | 15252 } |
| 15253 /** | 15253 /** |
| 15254 * Return the node that is the parent of each of the elements in the list. | 15254 * Return the node that is the parent of each of the elements in the list. |
| 15255 * @return the node that is the parent of each of the elements in the list | 15255 * @return the node that is the parent of each of the elements in the list |
| 15256 */ | 15256 */ |
| 15257 ASTNode getOwner() { | 15257 ASTNode getOwner() { |
| 15258 return owner; | 15258 return owner; |
| 15259 } | 15259 } |
| 15260 } | 15260 } |
| OLD | NEW |