| 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 15339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15350 if (parent is PrefixExpression) { | 15350 if (parent is PrefixExpression) { |
| 15351 return (parent as PrefixExpression).operator.type.isIncrementOperator; | 15351 return (parent as PrefixExpression).operator.type.isIncrementOperator; |
| 15352 } else if (parent is PostfixExpression) { | 15352 } else if (parent is PostfixExpression) { |
| 15353 return true; | 15353 return true; |
| 15354 } else if (parent is AssignmentExpression) { | 15354 } else if (parent is AssignmentExpression) { |
| 15355 return identical((parent as AssignmentExpression).leftHandSide, target); | 15355 return identical((parent as AssignmentExpression).leftHandSide, target); |
| 15356 } | 15356 } |
| 15357 return false; | 15357 return false; |
| 15358 } | 15358 } |
| 15359 | 15359 |
| 15360 /** |
| 15361 * Returns `true` if this identifier is the "name" part of a prefixed identifi
er or a method |
| 15362 * invocation. |
| 15363 * |
| 15364 * @return `true` if this identifier is the "name" part of a prefixed identifi
er or a method |
| 15365 * invocation |
| 15366 */ |
| 15367 bool get isQualified { |
| 15368 AstNode parent = this.parent; |
| 15369 if (parent is PrefixedIdentifier) { |
| 15370 return identical(parent.identifier, this); |
| 15371 } |
| 15372 if (parent is PropertyAccess) { |
| 15373 return identical(parent.propertyName, this); |
| 15374 } |
| 15375 if (parent is MethodInvocation) { |
| 15376 MethodInvocation invocation = parent; |
| 15377 return identical(invocation.methodName, this) && invocation.realTarget !=
null; |
| 15378 } |
| 15379 return false; |
| 15380 } |
| 15381 |
| 15360 @override | 15382 @override |
| 15361 bool get isSynthetic => token.isSynthetic; | 15383 bool get isSynthetic => token.isSynthetic; |
| 15362 | 15384 |
| 15363 /** | 15385 /** |
| 15364 * Set the element associated with this identifier based on propagated type in
formation to the | 15386 * Set the element associated with this identifier based on propagated type in
formation to the |
| 15365 * given element. | 15387 * given element. |
| 15366 * | 15388 * |
| 15367 * @param element the element to be associated with this identifier | 15389 * @param element the element to be associated with this identifier |
| 15368 */ | 15390 */ |
| 15369 void set propagatedElement(Element element) { | 15391 void set propagatedElement(Element element) { |
| (...skipping 3591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18961 _elements[index] = node; | 18983 _elements[index] = node; |
| 18962 } | 18984 } |
| 18963 void clear() { | 18985 void clear() { |
| 18964 _elements = <E> []; | 18986 _elements = <E> []; |
| 18965 } | 18987 } |
| 18966 int get length => _elements.length; | 18988 int get length => _elements.length; |
| 18967 void set length(int value) { | 18989 void set length(int value) { |
| 18968 throw new UnsupportedError("Cannot resize NodeList."); | 18990 throw new UnsupportedError("Cannot resize NodeList."); |
| 18969 } | 18991 } |
| 18970 } | 18992 } |
| OLD | NEW |