| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 * range. | 109 * range. |
| 110 * | 110 * |
| 111 * @return the offset from the beginning of the file to the first character in
the node's source | 111 * @return the offset from the beginning of the file to the first character in
the node's source |
| 112 * range | 112 * range |
| 113 */ | 113 */ |
| 114 int get offset { | 114 int get offset { |
| 115 Token beginToken = this.beginToken; | 115 Token beginToken = this.beginToken; |
| 116 if (beginToken == null) { | 116 if (beginToken == null) { |
| 117 return -1; | 117 return -1; |
| 118 } | 118 } |
| 119 return this.beginToken.offset; | 119 return beginToken.offset; |
| 120 } | 120 } |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Return this node's parent node, or `null` if this node is the root of an AS
T structure. | 123 * Return this node's parent node, or `null` if this node is the root of an AS
T structure. |
| 124 * | 124 * |
| 125 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime | 125 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime |
| 126 * of a node. | 126 * of a node. |
| 127 * | 127 * |
| 128 * @return the parent of this node, or `null` if none | 128 * @return the parent of this node, or `null` if none |
| 129 */ | 129 */ |
| (...skipping 14650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14780 return elements[elements.length - 1].endToken; | 14780 return elements[elements.length - 1].endToken; |
| 14781 } | 14781 } |
| 14782 /** | 14782 /** |
| 14783 * Return the node that is the parent of each of the elements in the list. | 14783 * Return the node that is the parent of each of the elements in the list. |
| 14784 * @return the node that is the parent of each of the elements in the list | 14784 * @return the node that is the parent of each of the elements in the list |
| 14785 */ | 14785 */ |
| 14786 ASTNode getOwner() { | 14786 ASTNode getOwner() { |
| 14787 return owner; | 14787 return owner; |
| 14788 } | 14788 } |
| 14789 } | 14789 } |
| OLD | NEW |