| 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 '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/constructors.dart'; | 10 import '../constants/constructors.dart'; |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 } | 897 } |
| 898 | 898 |
| 899 abstract class ExportElement extends Element { | 899 abstract class ExportElement extends Element { |
| 900 Uri get uri; | 900 Uri get uri; |
| 901 LibraryElement get exportedLibrary; | 901 LibraryElement get exportedLibrary; |
| 902 // TODO(johnniwinther): Remove this when no longer needed in source mirrors. | 902 // TODO(johnniwinther): Remove this when no longer needed in source mirrors. |
| 903 Export get node; | 903 Export get node; |
| 904 } | 904 } |
| 905 | 905 |
| 906 abstract class LibraryElement extends Element | 906 abstract class LibraryElement extends Element |
| 907 implements ScopeContainerElement, AnalyzableElement { | 907 implements ScopeContainerElement, AnalyzableElement, LibraryEntity { |
| 908 /** | 908 /** |
| 909 * The canonical uri for this library. | 909 * The canonical uri for this library. |
| 910 * | 910 * |
| 911 * For user libraries the canonical uri is the script uri. For platform | 911 * For user libraries the canonical uri is the script uri. For platform |
| 912 * libraries the canonical uri is of the form [:dart:x:]. | 912 * libraries the canonical uri is of the form [:dart:x:]. |
| 913 */ | 913 */ |
| 914 Uri get canonicalUri; | 914 Uri get canonicalUri; |
| 915 | 915 |
| 916 /// Returns `true` if this library is 'dart:core'. | 916 /// Returns `true` if this library is 'dart:core'. |
| 917 bool get isDartCore; | 917 bool get isDartCore; |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 /// by a field. | 1918 /// by a field. |
| 1919 bool get isDeclaredByField; | 1919 bool get isDeclaredByField; |
| 1920 | 1920 |
| 1921 /// Returns `true` if this member is abstract. | 1921 /// Returns `true` if this member is abstract. |
| 1922 bool get isAbstract; | 1922 bool get isAbstract; |
| 1923 | 1923 |
| 1924 /// If abstract, [implementation] points to the overridden concrete member, | 1924 /// If abstract, [implementation] points to the overridden concrete member, |
| 1925 /// if any. Otherwise [implementation] points to the member itself. | 1925 /// if any. Otherwise [implementation] points to the member itself. |
| 1926 Member get implementation; | 1926 Member get implementation; |
| 1927 } | 1927 } |
| OLD | NEW |