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