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

Unified Diff: lib/dartdoc/mirrors/mirrors.dart

Issue 10701091: Dartdoc and Apidoc updated to use dart2js through the mirror system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed cf. rnystrom's comments. Created 8 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: lib/dartdoc/mirrors/mirrors.dart
diff --git a/lib/dartdoc/mirrors/mirrors.dart b/lib/dartdoc/mirrors/mirrors.dart
index 3957cde1f75810239e4ea6e7bc111ed232374ac4..3f61969d82cf538c1cfc5c64856aabd079380835 100644
--- a/lib/dartdoc/mirrors/mirrors.dart
+++ b/lib/dartdoc/mirrors/mirrors.dart
@@ -14,10 +14,18 @@ class Compilation {
/**
* Creates a new compilation which has [script] as its entry point.
*/
- factory Compilation(String script, String libraryRoot,
+ factory Compilation(String script,
+ String libraryRoot,
[String packageRoot,
List<String> opts = const <String>[]]) {
- return new Dart2jsCompilation(script, libraryRoot, packageRoot, opts);
+ return new Dart2JsCompilation(script, libraryRoot, packageRoot, opts);
+ }
+ factory Compilation.library(List<String> libraries,
+ String libraryRoot,
+ [String packageRoot,
+ List<String> opts = const []]) {
+ return new Dart2JsCompilation.library(libraries, libraryRoot,
+ packageRoot, opts);
}
/**
@@ -40,7 +48,7 @@ interface MirrorSystem {
/**
* An entity in the mirror system.
*/
-interface Mirror {
+interface Mirror extends Hashable {
/**
* The simple name of the entity. The simple name is in most cases the
* the declared single identifier name of the entity, such as 'method' for
@@ -54,6 +62,11 @@ interface Mirror {
* library 'library' is 'library.Class.method'.
*/
String qualifiedName();
+
+ /**
+ * Returns the mirror system which contains this mirror.
+ */
+ final MirrorSystem system;
}
/**
@@ -435,4 +448,4 @@ interface Source {
* Returns the text of this source.
*/
String text();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698