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

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

Issue 11886097: Get the most basic mixin applications working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Diff against right branch. Created 7 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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; 5 library elements;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import 'modelx.dart'; 9 import 'modelx.dart';
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 632
633 ClassElement get patch; 633 ClassElement get patch;
634 ClassElement get origin; 634 ClassElement get origin;
635 ClassElement get declaration; 635 ClassElement get declaration;
636 ClassElement get implementation; 636 ClassElement get implementation;
637 637
638 int get supertypeLoadState; 638 int get supertypeLoadState;
639 int get resolutionState; 639 int get resolutionState;
640 SourceString get nativeTagInfo; 640 SourceString get nativeTagInfo;
641 641
642 bool get isMixinApplication;
642 bool get hasBackendMembers; 643 bool get hasBackendMembers;
643 bool get hasLocalScopeMembers; 644 bool get hasLocalScopeMembers;
644 645
645 // TODO(kasperl): These are bit fishy. Do we really need them? 646 // TODO(kasperl): These are bit fishy. Do we really need them?
646 void set rawType(InterfaceType value); 647 void set rawType(InterfaceType value);
647 void set thisType(InterfaceType value); 648 void set thisType(InterfaceType value);
648 void set supertype(DartType value); 649 void set supertype(DartType value);
649 void set allSupertypes(Link<DartType> value); 650 void set allSupertypes(Link<DartType> value);
650 void set interfaces(Link<DartType> value); 651 void set interfaces(Link<DartType> value);
651 void set patch(ClassElement value); 652 void set patch(ClassElement value);
(...skipping 11 matching lines...) Expand all
663 bool isSubclassOf(ClassElement cls); 664 bool isSubclassOf(ClassElement cls);
664 bool implementsInterface(ClassElement intrface); 665 bool implementsInterface(ClassElement intrface);
665 bool isShadowedByField(Element fieldMember); 666 bool isShadowedByField(Element fieldMember);
666 667
667 ClassNode parseNode(Compiler compiler); 668 ClassNode parseNode(Compiler compiler);
668 ClassElement ensureResolved(Compiler compiler); 669 ClassElement ensureResolved(Compiler compiler);
669 670
670 void addMember(Element element, DiagnosticListener listener); 671 void addMember(Element element, DiagnosticListener listener);
671 void addToScope(Element element, DiagnosticListener listener); 672 void addToScope(Element element, DiagnosticListener listener);
672 673
674 /**
675 * Add a synthetic nullary constructor if there are no other
676 * constructors.
677 */
678 void addDefaultConstructorIfNeeded(Compiler compiler);
679
673 void addBackendMember(Element element); 680 void addBackendMember(Element element);
674 void reverseBackendMembers(); 681 void reverseBackendMembers();
675 682
676 Element lookupMember(SourceString memberName); 683 Element lookupMember(SourceString memberName);
677 Element lookupSelector(Selector selector); 684 Element lookupSelector(Selector selector);
678 685
679 Element lookupLocalMember(SourceString memberName); 686 Element lookupLocalMember(SourceString memberName);
680 Element lookupBackendMember(SourceString memberName); 687 Element lookupBackendMember(SourceString memberName);
681 Element lookupSuperMember(SourceString memberName); 688 Element lookupSuperMember(SourceString memberName);
682 689
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 Element get annotatedElement; 757 Element get annotatedElement;
751 int get resolutionState; 758 int get resolutionState;
752 Token get beginToken; 759 Token get beginToken;
753 760
754 // TODO(kasperl): Try to get rid of these. 761 // TODO(kasperl): Try to get rid of these.
755 void set annotatedElement(Element value); 762 void set annotatedElement(Element value);
756 void set resolutionState(int value); 763 void set resolutionState(int value);
757 764
758 MetadataAnnotation ensureResolved(Compiler compiler); 765 MetadataAnnotation ensureResolved(Compiler compiler);
759 } 766 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/elements/modelx.dart » ('j') | tests/language/mixin_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698