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

Side by Side Diff: compiler/java/com/google/dart/compiler/ast/LibraryNode.java

Issue 9148026: Recompile unit with potential conflict/dependency on some top-level symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restore "holes". Tests for them. Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 package com.google.dart.compiler.ast; 5 package com.google.dart.compiler.ast;
6 6
7 import com.google.dart.compiler.common.AbstractNode; 7 import com.google.dart.compiler.common.AbstractNode;
8 8
9 /** 9 /**
10 * An element in a library or application manifest 10 * An element in a library.
11 *
12 * TODO(jgw): This class works with both JSON and the new library syntax. It can be greatly
13 * simplified once support for the JSON syntax is removed.
14 */ 11 */
15 public class LibraryNode extends AbstractNode { 12 public class LibraryNode extends AbstractNode {
16 13
17 private final String text; 14 private final String text;
18 private final String prefix; 15 private final String prefix;
19 16
20 /** 17 /**
21 * Construct a new library node instance 18 * Construct a new library node instance
22 * 19 *
23 * @param manifest the library manifest declaration (not <code>null</code>) 20 * @param manifest the library manifest declaration (not <code>null</code>)
24 * @param text the text comprising the node (not <code>null</code>) 21 * @param text the text comprising the node (not <code>null</code>)
25 */ 22 */
26 public LibraryNode(String text) { 23 public LibraryNode(String text) {
27 this(text, null); 24 this(text, null);
28 } 25 }
29 26
30 public LibraryNode(String text, String prefix) { 27 public LibraryNode(String text, String prefix) {
31 this.text = text; 28 this.text = text;
32 this.prefix = prefix; 29 this.prefix = prefix;
33 } 30 }
34 31
35 public String getText() { 32 public String getText() {
36 return text; 33 return text;
37 } 34 }
38 35
39 public String getPrefix() { 36 public String getPrefix() {
40 return prefix; 37 return prefix;
41 } 38 }
42 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698