Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 14054007: Ensure current element in FunctionElementX.isAbstract (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 return !parseNode(compiler).hasBody(); 1231 compiler.withCurrentElement(this, () => !parseNode(compiler).hasBody());
1232 } 1232 }
1233 return false; 1233 return false;
1234 } 1234 }
1235 } 1235 }
1236 1236
1237 class ConstructorBodyElementX extends FunctionElementX 1237 class ConstructorBodyElementX extends FunctionElementX
1238 implements ConstructorBodyElement { 1238 implements ConstructorBodyElement {
1239 FunctionElement constructor; 1239 FunctionElement constructor;
1240 1240
1241 ConstructorBodyElementX(FunctionElement constructor) 1241 ConstructorBodyElementX(FunctionElement constructor)
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 2018
2019 MetadataAnnotation ensureResolved(Compiler compiler) { 2019 MetadataAnnotation ensureResolved(Compiler compiler) {
2020 if (resolutionState == STATE_NOT_STARTED) { 2020 if (resolutionState == STATE_NOT_STARTED) {
2021 compiler.resolver.resolveMetadataAnnotation(this); 2021 compiler.resolver.resolveMetadataAnnotation(this);
2022 } 2022 }
2023 return this; 2023 return this;
2024 } 2024 }
2025 2025
2026 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2026 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2027 } 2027 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698