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

Unified Diff: compiler/java/com/google/dart/compiler/SystemLibrary.java

Issue 10907096: modify files view to use declared sdk libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 3 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/SystemLibrary.java
===================================================================
--- compiler/java/com/google/dart/compiler/SystemLibrary.java (revision 11969)
+++ compiler/java/com/google/dart/compiler/SystemLibrary.java (working copy)
@@ -17,6 +17,9 @@
private final String host;
private final String pathToLib;
private final File dirOrZip;
+ private String category;
+ private boolean documented;
+ private boolean implementation;
/**
* Define a new system library such that dart:[shortLibName] will automatically be expanded to
@@ -30,13 +33,29 @@
* "dart://html/dart_html.lib". The dirOrZip argument is either the root directory or a zip file
* containing all files for this library.
*/
- public SystemLibrary(String shortName, String host, String pathToLib, File dirOrZip) {
+ public SystemLibrary(String shortName, String host, String pathToLib, File dirOrZip, String category,
+ boolean documented, boolean implementation) {
this.shortName = shortName;
this.host = host;
this.pathToLib = pathToLib;
this.dirOrZip = dirOrZip;
+ this.category = category;
+ this.documented = documented;
+ this.implementation = implementation;
}
+ public String getCategory() {
+ return category;
+ }
+
+ public boolean isDocumented() {
+ return documented;
+ }
+
+ public boolean isImplementation() {
+ return implementation;
+ }
+
public String getHost() {
return host;
}
@@ -49,6 +68,10 @@
return shortName;
}
+ public File getLibraryDir() {
+ return dirOrZip;
+ }
+
public URI translateUri(URI dartUri) {
if (!dirOrZip.exists()) {
throw new RuntimeException("System library for " + dartUri + " does not exist: " + dirOrZip.getPath());

Powered by Google App Engine
This is Rietveld 408576698