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

Side by Side Diff: pkg/polymer/lib/src/build/runner.dart

Issue 172923002: [polymer] fix editor hints -- query/queryAll and unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 /** 5 /**
6 * Definitions used to run the polymer linter and deploy tools without using 6 * Definitions used to run the polymer linter and deploy tools without using
7 * pub serve or pub deploy. 7 * pub serve or pub deploy.
8 */ 8 */
9 library polymer.src.build.runner; 9 library polymer.src.build.runner;
10 10
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 270
271 return _writeAsset(filepath, asset); 271 return _writeAsset(filepath, asset);
272 }); 272 });
273 } 273 }
274 274
275 /** 275 /**
276 * Adds a package symlink from each directory under `out/web/foo/` to 276 * Adds a package symlink from each directory under `out/web/foo/` to
277 * `out/packages`. 277 * `out/packages`.
278 */ 278 */
279 Future _addPackagesSymlinks(AssetSet assets, BarbackOptions options) { 279 void _addPackagesSymlinks(AssetSet assets, BarbackOptions options) {
280 var outPackages = path.join(options.outDir, 'packages'); 280 var outPackages = path.join(options.outDir, 'packages');
281 var currentPackage = options.currentPackage; 281 var currentPackage = options.currentPackage;
282 for (var asset in assets) { 282 for (var asset in assets) {
283 var id = asset.id; 283 var id = asset.id;
284 if (id.package != currentPackage) continue; 284 if (id.package != currentPackage) continue;
285 var firstDir = _firstDir(id.path); 285 var firstDir = _firstDir(id.path);
286 if (firstDir == null) continue; 286 if (firstDir == null) continue;
287 287
288 if (firstDir == 'web' || (options.transformTests && firstDir == 'test')) { 288 if (firstDir == 'web' || (options.transformTests && firstDir == 'test')) {
289 var dir = path.join(options.outDir, path.dirname(_toSystemPath(id.path))); 289 var dir = path.join(options.outDir, path.dirname(_toSystemPath(id.path)));
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 output.write(entry.span.getLocationMessage(entry.message, 389 output.write(entry.span.getLocationMessage(entry.message,
390 useColors: useColors, 390 useColors: useColors,
391 color: levelColor)); 391 color: levelColor));
392 } 392 }
393 return output.toString(); 393 return output.toString();
394 } 394 }
395 395
396 const String _RED_COLOR = '\u001b[31m'; 396 const String _RED_COLOR = '\u001b[31m';
397 const String _MAGENTA_COLOR = '\u001b[35m'; 397 const String _MAGENTA_COLOR = '\u001b[35m';
398 const String _NO_COLOR = '\u001b[0m'; 398 const String _NO_COLOR = '\u001b[0m';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698