| 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 11910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11921 return propertyKeyword; | 11921 return propertyKeyword; |
| 11922 } else if (operatorKeyword != null) { | 11922 } else if (operatorKeyword != null) { |
| 11923 return operatorKeyword; | 11923 return operatorKeyword; |
| 11924 } | 11924 } |
| 11925 return _name.beginToken; | 11925 return _name.beginToken; |
| 11926 } | 11926 } |
| 11927 | 11927 |
| 11928 /** | 11928 /** |
| 11929 * Return `true` if this method is declared to be an abstract method. | 11929 * Return `true` if this method is declared to be an abstract method. |
| 11930 */ | 11930 */ |
| 11931 bool get isAbstract => | 11931 bool get isAbstract { |
| 11932 externalKeyword == null && (_body is EmptyFunctionBody); | 11932 FunctionBody body = _body; |
| 11933 return externalKeyword == null && |
| 11934 (body is EmptyFunctionBody && !body.semicolon.isSynthetic); |
| 11935 } |
| 11933 | 11936 |
| 11934 /** | 11937 /** |
| 11935 * Return `true` if this method declares a getter. | 11938 * Return `true` if this method declares a getter. |
| 11936 */ | 11939 */ |
| 11937 bool get isGetter => | 11940 bool get isGetter => |
| 11938 propertyKeyword != null && | 11941 propertyKeyword != null && |
| 11939 (propertyKeyword as KeywordToken).keyword == Keyword.GET; | 11942 (propertyKeyword as KeywordToken).keyword == Keyword.GET; |
| 11940 | 11943 |
| 11941 /** | 11944 /** |
| 11942 * Return `true` if this method declares an operator. | 11945 * Return `true` if this method declares an operator. |
| (...skipping 8173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20116 } | 20119 } |
| 20117 | 20120 |
| 20118 @override | 20121 @override |
| 20119 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 20122 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
| 20120 | 20123 |
| 20121 @override | 20124 @override |
| 20122 void visitChildren(AstVisitor visitor) { | 20125 void visitChildren(AstVisitor visitor) { |
| 20123 _safelyVisitChild(_expression, visitor); | 20126 _safelyVisitChild(_expression, visitor); |
| 20124 } | 20127 } |
| 20125 } | 20128 } |
| OLD | NEW |