| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.ast; | 8 library engine.ast; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 6890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6901 * | 6901 * |
| 6902 * <pre> | 6902 * <pre> |
| 6903 * expression ::= | 6903 * expression ::= |
| 6904 * [AssignmentExpression] | 6904 * [AssignmentExpression] |
| 6905 * | [ConditionalExpression] cascadeSection* | 6905 * | [ConditionalExpression] cascadeSection* |
| 6906 * | [ThrowExpression] | 6906 * | [ThrowExpression] |
| 6907 * </pre> | 6907 * </pre> |
| 6908 */ | 6908 */ |
| 6909 abstract class Expression extends AstNode { | 6909 abstract class Expression extends AstNode { |
| 6910 /** | 6910 /** |
| 6911 * An empty array of expressions. | 6911 * An empty list of expressions. |
| 6912 */ | 6912 */ |
| 6913 static List<Expression> EMPTY_ARRAY = new List<Expression>(0); | 6913 static const List<Expression> EMPTY_ARRAY = const <Expression>[]; |
| 6914 | 6914 |
| 6915 /** | 6915 /** |
| 6916 * The static type of this expression, or `null` if the AST structure has not
been resolved. | 6916 * The static type of this expression, or `null` if the AST structure has not
been resolved. |
| 6917 */ | 6917 */ |
| 6918 DartType staticType; | 6918 DartType staticType; |
| 6919 | 6919 |
| 6920 /** | 6920 /** |
| 6921 * The propagated type of this expression, or `null` if type propagation has n
ot been | 6921 * The propagated type of this expression, or `null` if type propagation has n
ot been |
| 6922 * performed on the AST structure. | 6922 * performed on the AST structure. |
| 6923 */ | 6923 */ |
| (...skipping 13230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20154 static NodeList create(AstNode owner) => new NodeList(owner); | 20154 static NodeList create(AstNode owner) => new NodeList(owner); |
| 20155 | 20155 |
| 20156 /** | 20156 /** |
| 20157 * The node that is the parent of each of the elements in the list. | 20157 * The node that is the parent of each of the elements in the list. |
| 20158 */ | 20158 */ |
| 20159 AstNode owner; | 20159 AstNode owner; |
| 20160 | 20160 |
| 20161 /** | 20161 /** |
| 20162 * The elements contained in the list. | 20162 * The elements contained in the list. |
| 20163 */ | 20163 */ |
| 20164 List<E> _elements = <E> []; | 20164 List<E> _elements = <E>[]; |
| 20165 | 20165 |
| 20166 /** | 20166 /** |
| 20167 * Initialize a newly created list of nodes to be empty. | 20167 * Initialize a newly created list of nodes to be empty. |
| 20168 * | 20168 * |
| 20169 * @param owner the node that is the parent of each of the elements in the lis
t | 20169 * @param owner the node that is the parent of each of the elements in the lis
t |
| 20170 */ | 20170 */ |
| 20171 NodeList(this.owner); | 20171 NodeList(this.owner); |
| 20172 | 20172 |
| 20173 /** | 20173 /** |
| 20174 * Use the given visitor to visit each of the nodes in this list. | 20174 * Use the given visitor to visit each of the nodes in this list. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20250 return removedNode; | 20250 return removedNode; |
| 20251 } | 20251 } |
| 20252 void operator[]=(int index, E node) { | 20252 void operator[]=(int index, E node) { |
| 20253 if (index < 0 || index >= _elements.length) { | 20253 if (index < 0 || index >= _elements.length) { |
| 20254 throw new RangeError("Index: $index, Size: ${_elements.length}"); | 20254 throw new RangeError("Index: $index, Size: ${_elements.length}"); |
| 20255 } | 20255 } |
| 20256 owner.becomeParentOf(node); | 20256 owner.becomeParentOf(node); |
| 20257 _elements[index] = node; | 20257 _elements[index] = node; |
| 20258 } | 20258 } |
| 20259 void clear() { | 20259 void clear() { |
| 20260 _elements = <E> []; | 20260 _elements = <E>[]; |
| 20261 } | 20261 } |
| 20262 int get length => _elements.length; | 20262 int get length => _elements.length; |
| 20263 void set length(int value) { | 20263 void set length(int value) { |
| 20264 throw new UnsupportedError("Cannot resize NodeList."); | 20264 throw new UnsupportedError("Cannot resize NodeList."); |
| 20265 } | 20265 } |
| 20266 } | 20266 } |
| OLD | NEW |