| OLD | NEW |
| 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.build.common; |
| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return builder.relative(builder.join('/', id.path), | 150 return builder.relative(builder.join('/', id.path), |
| 151 from: builder.join('/', builder.dirname(sourceId.path))); | 151 from: builder.join('/', builder.dirname(sourceId.path))); |
| 152 } | 152 } |
| 153 | 153 |
| 154 | 154 |
| 155 /** Convert system paths to asset paths (asset paths are posix style). */ | 155 /** Convert system paths to asset paths (asset paths are posix style). */ |
| 156 String _systemToAssetPath(String assetPath) { | 156 String _systemToAssetPath(String assetPath) { |
| 157 if (path.Style.platform != path.Style.windows) return assetPath; | 157 if (path.Style.platform != path.Style.windows) return assetPath; |
| 158 return path.posix.joinAll(path.split(assetPath)); | 158 return path.posix.joinAll(path.split(assetPath)); |
| 159 } | 159 } |
| OLD | NEW |