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

Side by Side Diff: pkg/analyzer2dart/lib/src/modely.dart

Issue 878843003: Support enums in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 11 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 | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | 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) 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 part of analyzer2dart.element_converter; 5 part of analyzer2dart.element_converter;
6 6
7 7
8 /// Base [dart2js.Element] implementation for converted analyzer elements. 8 /// Base [dart2js.Element] implementation for converted analyzer elements.
9 class ElementY extends dart2js.Element { 9 class ElementY extends dart2js.Element {
10 final ElementConverter converter; 10 final ElementConverter converter;
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 bool get isStatic { 333 bool get isStatic {
334 // Semantic difference: Analyzer considers top-level and static class 334 // Semantic difference: Analyzer considers top-level and static class
335 // members to be static, dart2js only considers static class members to be 335 // members to be static, dart2js only considers static class members to be
336 // static. 336 // static.
337 return false; 337 return false;
338 } 338 }
339 339
340 // TODO(johnniwinther): Ensure the correct semantics of this. 340 // TODO(johnniwinther): Ensure the correct semantics of this.
341 @override 341 @override
342 bool get isAbstract => false; 342 bool get isAbstract => false;
343
344 @override
345 dart2js.ClassElement get enclosingClass => null;
343 } 346 }
344 347
345 abstract class FunctionElementMixin 348 abstract class FunctionElementMixin
346 implements ElementY, dart2js.FunctionElement { 349 implements ElementY, dart2js.FunctionElement {
347 350
348 // TODO(johnniwinther): Ensure the correct semantics of this. 351 // TODO(johnniwinther): Ensure the correct semantics of this.
349 @override 352 @override
350 bool get isExternal => false; 353 bool get isExternal => false;
351 354
352 @override 355 @override
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 793
791 @override 794 @override
792 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); 795 bool get isRedirectingFactory => unsupported('isRedirectingFactory');
793 796
794 @override 797 @override
795 get nestedClosures => unsupported('nestedClosures'); 798 get nestedClosures => unsupported('nestedClosures');
796 799
797 @override 800 @override
798 get type => unsupported('type'); 801 get type => unsupported('type');
799 } 802 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698