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

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

Issue 186153005: New analzyer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use meaningful name instead of '_' in predicate. Created 6 years, 9 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
« no previous file with comments | « pkg/polymer/lib/src/build/import_inliner.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// 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
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 """;
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/build/import_inliner.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698