| 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 12121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12132 return propertyKeyword; | 12132 return propertyKeyword; |
| 12133 } else if (operatorKeyword != null) { | 12133 } else if (operatorKeyword != null) { |
| 12134 return operatorKeyword; | 12134 return operatorKeyword; |
| 12135 } | 12135 } |
| 12136 return _name.beginToken; | 12136 return _name.beginToken; |
| 12137 } | 12137 } |
| 12138 | 12138 |
| 12139 /** | 12139 /** |
| 12140 * Return `true` if this method is declared to be an abstract method. | 12140 * Return `true` if this method is declared to be an abstract method. |
| 12141 */ | 12141 */ |
| 12142 bool get isAbstract => | 12142 bool get isAbstract { |
| 12143 externalKeyword == null && (_body is EmptyFunctionBody); | 12143 FunctionBody body = _body; |
| 12144 return externalKeyword == null && |
| 12145 (body is EmptyFunctionBody && !body.semicolon.isSynthetic); |
| 12146 } |
| 12144 | 12147 |
| 12145 /** | 12148 /** |
| 12146 * Return `true` if this method declares a getter. | 12149 * Return `true` if this method declares a getter. |
| 12147 */ | 12150 */ |
| 12148 bool get isGetter => | 12151 bool get isGetter => |
| 12149 propertyKeyword != null && | 12152 propertyKeyword != null && |
| 12150 (propertyKeyword as KeywordToken).keyword == Keyword.GET; | 12153 (propertyKeyword as KeywordToken).keyword == Keyword.GET; |
| 12151 | 12154 |
| 12152 /** | 12155 /** |
| 12153 * Return `true` if this method declares an operator. | 12156 * Return `true` if this method declares an operator. |
| (...skipping 8400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20554 } | 20557 } |
| 20555 | 20558 |
| 20556 @override | 20559 @override |
| 20557 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 20560 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
| 20558 | 20561 |
| 20559 @override | 20562 @override |
| 20560 void visitChildren(AstVisitor visitor) { | 20563 void visitChildren(AstVisitor visitor) { |
| 20561 _safelyVisitChild(_expression, visitor); | 20564 _safelyVisitChild(_expression, visitor); |
| 20562 } | 20565 } |
| 20563 } | 20566 } |
| OLD | NEW |