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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java

Issue 10832321: Issue 4048. Support for revised library/import syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java
index 7c0ee180aa50ce5330b1a4c3e0fb58e6f62a5407..d3d0cf86bdd3cc5d982d2f24c951236571229ad6 100644
--- a/compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java
@@ -4,14 +4,17 @@
package com.google.dart.compiler.resolver;
+import com.google.common.collect.Lists;
import com.google.dart.compiler.ast.LibraryUnit;
import java.util.Collection;
+import java.util.List;
class LibraryElementImplementation extends AbstractNodeElement implements LibraryElement {
private final Scope importScope = new Scope("import", this);
private final Scope scope = new Scope("library", this, importScope);
+ private final List<Element> exportedElements = Lists.newArrayList();
private LibraryUnit libraryUnit;
private MethodElement entryPoint;
@@ -36,6 +39,14 @@ class LibraryElementImplementation extends AbstractNodeElement implements Librar
return scope;
}
+ public void addExportedElements(Element element) {
+ exportedElements.add(element);
+ }
+
+ public List<Element> getExportedElements() {
+ return exportedElements;
+ }
+
@Override
public ElementKind getKind() {
return ElementKind.LIBRARY;

Powered by Google App Engine
This is Rietveld 408576698