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

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

Issue 23658002: Remove processing of dart code, summary.dart, simplified info.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** The entry point to the compiler. Used to implement `bin/dwc.dart`. */ 5 /** The entry point to the compiler. Used to implement `bin/dwc.dart`. */
6 library dwc; 6 library dwc;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'package:logging/logging.dart' show Level; 10 import 'package:logging/logging.dart' show Level;
11 11
12 import 'src/compiler.dart'; 12 import 'src/compiler.dart';
13 import 'src/file_system.dart';
14 import 'src/file_system/console.dart'; 13 import 'src/file_system/console.dart';
15 import 'src/files.dart';
16 import 'src/messages.dart'; 14 import 'src/messages.dart';
17 import 'src/compiler_options.dart'; 15 import 'src/compiler_options.dart';
18 import 'src/utils.dart'; 16 import 'src/utils.dart';
19 17
20 void main() { 18 void main() {
21 run(new Options().arguments).then((result) { 19 run(new Options().arguments).then((result) {
22 exit(result.success ? 0 : 1); 20 exit(result.success ? 0 : 1);
23 }); 21 });
24 } 22 }
25 23
(...skipping 29 matching lines...) Expand all
55 return compiler.run().then((_) { 53 return compiler.run().then((_) {
56 var success = messages.messages.every((m) => m.level != Level.SEVERE); 54 var success = messages.messages.every((m) => m.level != Level.SEVERE);
57 var msgs = options.jsonFormat 55 var msgs = options.jsonFormat
58 ? messages.messages.map((m) => m.toJson()) 56 ? messages.messages.map((m) => m.toJson())
59 : messages.messages.map((m) => m.toString()); 57 : messages.messages.map((m) => m.toString());
60 var inputs = compiler.files.map((f) => f.path).toList(); 58 var inputs = compiler.files.map((f) => f.path).toList();
61 return new AnalysisResults(success, msgs.toList(), inputs); 59 return new AnalysisResults(success, msgs.toList(), inputs);
62 }); 60 });
63 }, printTime: printTime, useColors: options.useColors); 61 }, printTime: printTime, useColors: options.useColors);
64 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698