| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 /// "a b.dart"). | 933 /// "a b.dart"). |
| 934 String get libraryOrScriptName; | 934 String get libraryOrScriptName; |
| 935 | 935 |
| 936 int compareTo(LibraryElement other); | 936 int compareTo(LibraryElement other); |
| 937 } | 937 } |
| 938 | 938 |
| 939 /// The implicit scope defined by a import declaration with a prefix clause. | 939 /// The implicit scope defined by a import declaration with a prefix clause. |
| 940 abstract class PrefixElement extends Element { | 940 abstract class PrefixElement extends Element { |
| 941 Element lookupLocalMember(String memberName); | 941 Element lookupLocalMember(String memberName); |
| 942 | 942 |
| 943 void forEachLocalMember(void f(Element member)); |
| 944 |
| 943 /// Is true if this prefix belongs to a deferred import. | 945 /// Is true if this prefix belongs to a deferred import. |
| 944 bool get isDeferred; | 946 bool get isDeferred; |
| 945 | 947 |
| 946 /// Import that declared this deferred prefix. | 948 /// Import that declared this deferred prefix. |
| 947 ImportElement get deferredImport; | 949 ImportElement get deferredImport; |
| 948 | 950 |
| 949 /// The `loadLibrary` getter implicitly defined on deferred prefixes. | 951 /// The `loadLibrary` getter implicitly defined on deferred prefixes. |
| 950 GetterElement get loadLibrary; | 952 GetterElement get loadLibrary; |
| 951 } | 953 } |
| 952 | 954 |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 /// by a field. | 1856 /// by a field. |
| 1855 bool get isDeclaredByField; | 1857 bool get isDeclaredByField; |
| 1856 | 1858 |
| 1857 /// Returns `true` if this member is abstract. | 1859 /// Returns `true` if this member is abstract. |
| 1858 bool get isAbstract; | 1860 bool get isAbstract; |
| 1859 | 1861 |
| 1860 /// If abstract, [implementation] points to the overridden concrete member, | 1862 /// If abstract, [implementation] points to the overridden concrete member, |
| 1861 /// if any. Otherwise [implementation] points to the member itself. | 1863 /// if any. Otherwise [implementation] points to the member itself. |
| 1862 Member get implementation; | 1864 Member get implementation; |
| 1863 } | 1865 } |
| OLD | NEW |