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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 1023443002: Add public and export namespaces to LibraryElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index 807205902f3eb96572bc20d8bd3cc14a5c6d7280..eeb29b2099538191e14cb7a525cd4b62f860b0b9 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -6384,6 +6384,15 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
InterfaceTypeImpl substitute4(List<DartType> argumentTypes) =>
substitute2(argumentTypes, typeArguments);
+ /**
+ * Return `true` if the given element has an instance method named 'call'.
+ */
+ bool _hasCallMethod(ClassElement elementT) {
+ MethodElement method = elementT.lookUpMethod(
+ FunctionElement.CALL_METHOD_NAME, elementT.library);
+ return method != null && !method.isStatic;
+ }
+
bool _isMoreSpecificThan(InterfaceType s,
HashSet<ClassElement> visitedClasses, bool withDynamic,
Set<TypeImpl_TypePair> visitedTypePairs) {
@@ -6515,15 +6524,6 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
}
/**
- * Return `true` if the given element has an instance method named 'call'.
- */
- bool _hasCallMethod(ClassElement elementT) {
- MethodElement method = elementT.lookUpMethod(
- FunctionElement.CALL_METHOD_NAME, elementT.library);
- return method != null && !method.isStatic;
- }
-
- /**
* Return the length of the longest inheritance path from the given [type] to
* Object.
*
@@ -6714,6 +6714,12 @@ abstract class LibraryElement implements Element {
List<LibraryElement> get exportedLibraries;
/**
+ * The export [Namespace] of this library, `null` if it has not been
+ * computed yet.
+ */
+ Namespace get exportNamespace;
+
+ /**
* Return a list containing all of the exports defined in this library.
*/
List<ExportElement> get exports;
@@ -6781,6 +6787,12 @@ abstract class LibraryElement implements Element {
List<PrefixElement> get prefixes;
/**
+ * The public [Namespace] of this library, `null` if it has not been
+ * computed yet.
+ */
+ Namespace get publicNamespace;
+
+ /**
* Return a list containing all of the compilation units this library consists
* of. This includes the defining compilation unit and units included using
* the `part` directive.
@@ -6862,6 +6874,20 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement {
FunctionElement _loadLibraryFunction;
/**
+ * The export [Namespace] of this library, `null` if it has not been
+ * computed yet.
+ */
+ @override
+ Namespace exportNamespace;
+
+ /**
+ * The public [Namespace] of this library, `null` if it has not been
+ * computed yet.
+ */
+ @override
+ Namespace publicNamespace;
+
+ /**
* Initialize a newly created library element in the given [context] to have
* the given [name] and [offset].
*/
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_handle.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698