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

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

Issue 11640021: Re-apply "Clean up the patch file for the isolate library by introducing a new buitlin library: iso… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed. 9 // TODO(ahe): Rename prefix to 'api' when VM bug is fixed.
10 import '../../compiler.dart' as api_e; 10 import '../../compiler.dart' as api_e;
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 */ 1763 */
1764 bool isSubclassOf(ClassElement cls) { 1764 bool isSubclassOf(ClassElement cls) {
1765 for (ClassElement s = this; s != null; s = s.superclass) { 1765 for (ClassElement s = this; s != null; s = s.superclass) {
1766 if (identical(s, cls)) return true; 1766 if (identical(s, cls)) return true;
1767 } 1767 }
1768 return false; 1768 return false;
1769 } 1769 }
1770 1770
1771 bool isInterface() => false; 1771 bool isInterface() => false;
1772 bool isNative() => nativeTagInfo != null; 1772 bool isNative() => nativeTagInfo != null;
1773 void setNative(String name) {
1774 nativeTagInfo = new SourceString(name);
1775 }
1773 int get hashCode => id; 1776 int get hashCode => id;
1774 1777
1775 Scope buildScope() => new ClassScope(enclosingElement.buildScope(), this); 1778 Scope buildScope() => new ClassScope(enclosingElement.buildScope(), this);
1776 1779
1777 String toString() { 1780 String toString() {
1778 if (origin != null) { 1781 if (origin != null) {
1779 return 'patch ${super.toString()}'; 1782 return 'patch ${super.toString()}';
1780 } else if (patch != null) { 1783 } else if (patch != null) {
1781 return 'origin ${super.toString()}'; 1784 return 'origin ${super.toString()}';
1782 } else { 1785 } else {
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 2161
2159 MetadataAnnotation ensureResolved(Compiler compiler) { 2162 MetadataAnnotation ensureResolved(Compiler compiler) {
2160 if (resolutionState == STATE_NOT_STARTED) { 2163 if (resolutionState == STATE_NOT_STARTED) {
2161 compiler.resolver.resolveMetadataAnnotation(this); 2164 compiler.resolver.resolveMetadataAnnotation(this);
2162 } 2165 }
2163 return this; 2166 return this;
2164 } 2167 }
2165 2168
2166 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2169 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2167 } 2170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698