| 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 /// Transfomer that combines multiple dart script tags into a single one. | 5 /// Transfomer that combines multiple dart script tags into a single one. |
| 6 library polymer.src.build.script_compactor; | 6 library polymer.src.build.script_compactor; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 class _CustomTagInitializer implements _Initializer { | 243 class _CustomTagInitializer implements _Initializer { |
| 244 String tagName; | 244 String tagName; |
| 245 String typeName; | 245 String typeName; |
| 246 String get symbolName => typeName; | 246 String get symbolName => typeName; |
| 247 _CustomTagInitializer(this.tagName, this.typeName); | 247 _CustomTagInitializer(this.tagName, this.typeName); |
| 248 | 248 |
| 249 String asCode(String prefix) => | 249 String asCode(String prefix) => |
| 250 "() => Polymer.register('$tagName', $prefix.$typeName)"; | 250 "() => Polymer.register('$tagName', $prefix.$typeName)"; |
| 251 } | 251 } |
| 252 | 252 |
| 253 _getSpan(SourceFile file, ASTNode node) => file.span(node.offset, node.end); | 253 _getSpan(SourceFile file, AstNode node) => file.span(node.offset, node.end); |
| 254 | 254 |
| 255 const MAIN_HEADER = """ | 255 const MAIN_HEADER = """ |
| 256 library app_bootstrap; | 256 library app_bootstrap; |
| 257 | 257 |
| 258 import 'package:polymer/polymer.dart'; | 258 import 'package:polymer/polymer.dart'; |
| 259 """; | 259 """; |
| OLD | NEW |