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

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

Issue 12018014: Start allowing mixin application extensions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Extend test cases. 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.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) 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 8
9 import 'elements.dart'; 9 import 'elements.dart';
10 import '../../compiler.dart' as api; 10 import '../../compiler.dart' as api;
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 return 'patch ${super.toString()}'; 1771 return 'patch ${super.toString()}';
1772 } else if (patch != null) { 1772 } else if (patch != null) {
1773 return 'origin ${super.toString()}'; 1773 return 'origin ${super.toString()}';
1774 } else { 1774 } else {
1775 return super.toString(); 1775 return super.toString();
1776 } 1776 }
1777 } 1777 }
1778 } 1778 }
1779 1779
1780 class MixinApplicationElementX extends BaseClassElementX { 1780 class MixinApplicationElementX extends BaseClassElementX {
1781 final MixinApplication cachedNode; 1781 final Node cachedNode;
1782 1782
1783 FunctionElement constructor; 1783 FunctionElement constructor;
1784 ClassElement mixin; 1784 ClassElement mixin;
1785 1785
1786 // TODO(kasperl): The analyzer complains when I don't have these two 1786 // TODO(kasperl): The analyzer complains when I don't have these two
1787 // fields. This is pretty weird. I cannot replace them with getters. 1787 // fields. This is pretty weird. I cannot replace them with getters.
1788 final ClassElement patch = null; 1788 final ClassElement patch = null;
1789 final ClassElement origin = null; 1789 final ClassElement origin = null;
1790 1790
1791 MixinApplicationElementX(SourceString name, Element enclosing, int id, 1791 MixinApplicationElementX(SourceString name, Element enclosing, int id,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 1949
1950 MetadataAnnotation ensureResolved(Compiler compiler) { 1950 MetadataAnnotation ensureResolved(Compiler compiler) {
1951 if (resolutionState == STATE_NOT_STARTED) { 1951 if (resolutionState == STATE_NOT_STARTED) {
1952 compiler.resolver.resolveMetadataAnnotation(this); 1952 compiler.resolver.resolveMetadataAnnotation(this);
1953 } 1953 }
1954 return this; 1954 return this;
1955 } 1955 }
1956 1956
1957 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 1957 String toString() => 'MetadataAnnotation($value, $resolutionState)';
1958 } 1958 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698