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

Unified Diff: dart/site/try/poi/poi.dart

Issue 393833002: Use library name instead of filename. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r39134 Created 6 years, 4 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
« no previous file with comments | « no previous file | dart/tests/try/poi/data/interesting.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/poi/poi.dart
diff --git a/dart/site/try/poi/poi.dart b/dart/site/try/poi/poi.dart
index d9cdeba2fb3cc6592129f0078894a5af7a97c1f0..e1755c04edc8e4fc84d2e32b87c2c672d5385a7e 100644
--- a/dart/site/try/poi/poi.dart
+++ b/dart/site/try/poi/poi.dart
@@ -55,9 +55,6 @@ import 'package:compiler/implementation/scanner/scannerlib.dart' show
PartialElement,
Token;
-import 'package:compiler/implementation/util/uri_extras.dart' show
- relativize;
-
/// Controls if this program should be querying Dart Mind. Used by tests.
bool enableDartMind = true;
@@ -335,7 +332,7 @@ class ScopeInformationVisitor extends ElementVisitor/* <void> */ {
bool isFirst = true;
serialize(
e, omitEnclosing: true,
- name: relativize(Uri.base, e.canonicalUri, false),
+ name: e.getLibraryName(),
serializeMembers: () {
// TODO(ahe): Include imported elements in libraries.
e.forEachLocalMember((Element member) {
« no previous file with comments | « no previous file | dart/tests/try/poi/data/interesting.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698