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

Unified Diff: dart/compiler/java/com/google/dart/compiler/ast/LibraryNode.java

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: dart/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
diff --git a/dart/compiler/java/com/google/dart/compiler/ast/LibraryNode.java b/dart/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
deleted file mode 100644
index c9ce360b7d7173887850e69ea415dd784a5e2c58..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.ast;
-
-import com.google.common.collect.ImmutableList;
-import com.google.dart.compiler.common.AbstractNode;
-import com.google.dart.compiler.util.apache.StringUtils;
-
-import java.util.List;
-
-/**
- * An element in a library.
- */
-public class LibraryNode extends AbstractNode {
-
- private final String text;
- private final String prefix;
- private final List<ImportCombinator> combinators;
- private final boolean exported;
-
- /**
- * Construct a new library node instance
- *
- * @param manifest the library manifest declaration (not <code>null</code>)
- * @param text the text comprising the node (not <code>null</code>)
- */
- public LibraryNode(String text) {
- this.text = StringUtils.trim(text);
- this.prefix = null;
- this.combinators = ImmutableList.<ImportCombinator>of();
- this.exported = false;
- }
-
- public LibraryNode(DartImportDirective importDirective) {
- setSourceInfo(importDirective.getSourceInfo());
- this.text = StringUtils.trim(importDirective.getLibraryUri().getValue());
- this.prefix = importDirective.getPrefixValue();
- this.combinators = importDirective.getCombinators();
- this.exported = importDirective.isExported();
- }
-
- public LibraryNode(DartExportDirective exportDirective) {
- setSourceInfo(exportDirective.getSourceInfo());
- this.text = StringUtils.trim(exportDirective.getLibraryUri().getValue());
- this.prefix = null;
- this.combinators = exportDirective.getCombinators();
- this.exported = false;
- }
-
- public String getText() {
- return text;
- }
-
- public String getPrefix() {
- return prefix;
- }
-
- public List<ImportCombinator> getCombinators() {
- return combinators;
- }
-
- public boolean isExported() {
- return exported;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698