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

Side by Side Diff: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart

Issue 855953002: File watching compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r43003. Created 5 years, 11 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart2js_incremental; 5 library dart2js_incremental;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 23 matching lines...) Expand all
34 LibraryUpdater, 34 LibraryUpdater,
35 Logger; 35 Logger;
36 36
37 import 'package:compiler/src/js/js.dart' as jsAst; 37 import 'package:compiler/src/js/js.dart' as jsAst;
38 38
39 part 'caching_compiler.dart'; 39 part 'caching_compiler.dart';
40 40
41 const List<String> INCREMENTAL_OPTIONS = const <String>[ 41 const List<String> INCREMENTAL_OPTIONS = const <String>[
42 '--disable-type-inference', 42 '--disable-type-inference',
43 '--incremental-support', 43 '--incremental-support',
44 '--generate-code-with-compile-time-errors',
44 '--no-source-maps', // TODO(ahe): Remove this. 45 '--no-source-maps', // TODO(ahe): Remove this.
45 ]; 46 ];
46 47
47 class IncrementalCompiler { 48 class IncrementalCompiler {
48 final Uri libraryRoot; 49 final Uri libraryRoot;
49 final Uri packageRoot; 50 final Uri packageRoot;
50 final CompilerInputProvider inputProvider; 51 final CompilerInputProvider inputProvider;
51 final DiagnosticHandler diagnosticHandler; 52 final DiagnosticHandler diagnosticHandler;
52 final List<String> options; 53 final List<String> options;
53 final CompilerOutputProvider outputProvider; 54 final CompilerOutputProvider outputProvider;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 159 }
159 } 160 }
160 161
161 class IncrementalCompilationFailed { 162 class IncrementalCompilationFailed {
162 final String reason; 163 final String reason;
163 164
164 const IncrementalCompilationFailed(this.reason); 165 const IncrementalCompilationFailed(this.reason);
165 166
166 String toString() => "Can't incrementally compile program.\n\n$reason"; 167 String toString() => "Can't incrementally compile program.\n\n$reason";
167 } 168 }
OLDNEW
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/compiler.dart ('k') | dart/pkg/dart2js_incremental/lib/watcher.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698