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

Side by Side Diff: pkg/polymer/lib/transformer.dart

Issue 35413004: Fix an interface error in the polymer transformer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | 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 used for pub-serve and pub-deploy. */ 5 /** Transfomer used for pub-serve and pub-deploy. */
6 library polymer.transformer; 6 library polymer.transformer;
7 7
8 import 'package:barback/barback.dart'; 8 import 'package:barback/barback.dart';
9 import 'package:observe/transform.dart'; 9 import 'package:observe/transform.dart';
10 import 'src/build/code_extractor.dart'; 10 import 'src/build/code_extractor.dart';
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 entryPoints = [value]; 47 entryPoints = [value];
48 error = false; 48 error = false;
49 } else { 49 } else {
50 error = true; 50 error = true;
51 } 51 }
52 52
53 if (error) { 53 if (error) {
54 print('Invalid value for "entry_points" in the polymer transformer.'); 54 print('Invalid value for "entry_points" in the polymer transformer.');
55 } 55 }
56 } 56 }
57 return new TransformOptions(entryPoints); 57 return new TransformOptions(entryPoints: entryPoints);
58 } 58 }
59 59
60 List<List<Transformer>> _createDeployPhases(TransformOptions options) { 60 List<List<Transformer>> _createDeployPhases(TransformOptions options) {
61 return [ 61 return [
62 [new InlineCodeExtractor(options)], 62 [new InlineCodeExtractor(options)],
63 [new ObservableTransformer()], 63 [new ObservableTransformer()],
64 [new ImportInliner(options)], 64 [new ImportInliner(options)],
65 [new ScriptCompactor(options)], 65 [new ScriptCompactor(options)],
66 [new PolyfillInjector(options)] 66 [new PolyfillInjector(options)]
67 ]; 67 ];
68 } 68 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698