| 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 | 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |