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

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 67323004: Fix single library test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index eed692ae9d3b10862219c8e34734bf427e169337..ddb3cce1fb82b81923f41c1e0cb374026e1fbec4 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -159,7 +159,7 @@ String _findPackage(LibraryMirror mirror, [Library library]) {
library.packageIntro = _packageIntro(rootdir);
}
}
- return packageName + '/';
+ return packageName;
}
String _packageIntro(packageDir) {
@@ -546,6 +546,7 @@ String _htmlMdn(String content, String url) {
String findElementInScope(String name, LibraryMirror currentLibrary,
ClassMirror currentClass, MemberMirror currentMember) {
var packagePrefix = _findPackage(currentLibrary);
+ if (packagePrefix != '') packagePrefix += '/';
determineLookupFunc(name) => name.contains('.') ?
dart2js_util.lookupQualifiedInScope :
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698