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

Side by Side Diff: pkg/polymer/lib/src/common.dart

Issue 23757034: Rearranges the polymer package now that the old compiler is gone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /** Common methods used by transfomers. */ 5 /** Common methods used by transfomers. */
6 library polymer.src.transform.common; 6 library polymer.src.common;
Jennifer Messerly 2013/09/12 02:54:21 hmmm, shouldn't this be under transform, since it'
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
11 import 'package:html5lib/dom.dart' show Document; 11 import 'package:html5lib/dom.dart' show Document;
12 import 'package:html5lib/parser.dart' show HtmlParser; 12 import 'package:html5lib/parser.dart' show HtmlParser;
13 import 'package:path/path.dart' as path; 13 import 'package:path/path.dart' as path;
14 import 'package:source_maps/span.dart' show Span; 14 import 'package:source_maps/span.dart' show Span;
15 15
16 /** 16 /**
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Use relative urls only if it's possible. 141 // Use relative urls only if it's possible.
142 if (id.package != sourceId.package) { 142 if (id.package != sourceId.package) {
143 logger.error("don't know how to refer to $id from $sourceId"); 143 logger.error("don't know how to refer to $id from $sourceId");
144 return null; 144 return null;
145 } 145 }
146 146
147 var builder = path.url; 147 var builder = path.url;
148 return builder.relative(builder.join('/', id.path), 148 return builder.relative(builder.join('/', id.path),
149 from: builder.join('/', builder.dirname(sourceId.path))); 149 from: builder.join('/', builder.dirname(sourceId.path)));
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698