| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 import 'dart:collection' show LinkedHashMap; | 8 import 'dart:collection' show LinkedHashMap; |
| 9 | 9 |
| 10 import 'elements.dart'; | 10 import 'elements.dart'; |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 return 'origin ${super.toString()}'; | 1221 return 'origin ${super.toString()}'; |
| 1222 } else { | 1222 } else { |
| 1223 return super.toString(); | 1223 return super.toString(); |
| 1224 } | 1224 } |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 bool isAbstract(Compiler compiler) { | 1227 bool isAbstract(Compiler compiler) { |
| 1228 if (super.isAbstract(compiler)) return true; | 1228 if (super.isAbstract(compiler)) return true; |
| 1229 if (modifiers.isExternal()) return false; | 1229 if (modifiers.isExternal()) return false; |
| 1230 if (isFunction() || isAccessor()) { | 1230 if (isFunction() || isAccessor()) { |
| 1231 compiler.withCurrentElement(this, () => !parseNode(compiler).hasBody()); | 1231 return compiler.withCurrentElement(this, |
| 1232 () => !parseNode(compiler).hasBody()); |
| 1232 } | 1233 } |
| 1233 return false; | 1234 return false; |
| 1234 } | 1235 } |
| 1235 } | 1236 } |
| 1236 | 1237 |
| 1237 class ConstructorBodyElementX extends FunctionElementX | 1238 class ConstructorBodyElementX extends FunctionElementX |
| 1238 implements ConstructorBodyElement { | 1239 implements ConstructorBodyElement { |
| 1239 FunctionElement constructor; | 1240 FunctionElement constructor; |
| 1240 | 1241 |
| 1241 ConstructorBodyElementX(FunctionElement constructor) | 1242 ConstructorBodyElementX(FunctionElement constructor) |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2018 | 2019 |
| 2019 MetadataAnnotation ensureResolved(Compiler compiler) { | 2020 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2020 if (resolutionState == STATE_NOT_STARTED) { | 2021 if (resolutionState == STATE_NOT_STARTED) { |
| 2021 compiler.resolver.resolveMetadataAnnotation(this); | 2022 compiler.resolver.resolveMetadataAnnotation(this); |
| 2022 } | 2023 } |
| 2023 return this; | 2024 return this; |
| 2024 } | 2025 } |
| 2025 | 2026 |
| 2026 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2027 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2027 } | 2028 } |
| OLD | NEW |