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

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

Issue 848003002: Remove CompilerCancelledException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42861 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 final CompilerInputProvider inputProvider; 50 final CompilerInputProvider inputProvider;
51 final DiagnosticHandler diagnosticHandler; 51 final DiagnosticHandler diagnosticHandler;
52 final List<String> options; 52 final List<String> options;
53 final CompilerOutputProvider outputProvider; 53 final CompilerOutputProvider outputProvider;
54 final Map<String, dynamic> environment; 54 final Map<String, dynamic> environment;
55 final List<String> _updates = <String>[]; 55 final List<String> _updates = <String>[];
56 final IncrementalCompilerContext _context = new IncrementalCompilerContext(); 56 final IncrementalCompilerContext _context = new IncrementalCompilerContext();
57 57
58 Compiler _compiler; 58 Compiler _compiler;
59 59
60 bool get compilerWasCancelled => _compiler.compilerWasCancelled;
61
62 IncrementalCompiler({ 60 IncrementalCompiler({
63 this.libraryRoot, 61 this.libraryRoot,
64 this.packageRoot, 62 this.packageRoot,
65 this.inputProvider, 63 this.inputProvider,
66 this.diagnosticHandler, 64 this.diagnosticHandler,
67 this.options, 65 this.options,
68 this.outputProvider, 66 this.outputProvider,
69 this.environment}) { 67 this.environment}) {
70 if (libraryRoot == null) { 68 if (libraryRoot == null) {
71 throw new ArgumentError('libraryRoot is null.'); 69 throw new ArgumentError('libraryRoot is null.');
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 158 }
161 } 159 }
162 160
163 class IncrementalCompilationFailed { 161 class IncrementalCompilationFailed {
164 final String reason; 162 final String reason;
165 163
166 const IncrementalCompilationFailed(this.reason); 164 const IncrementalCompilationFailed(this.reason);
167 165
168 String toString() => "Can't incrementally compile program.\n\n$reason"; 166 String toString() => "Can't incrementally compile program.\n\n$reason";
169 } 167 }
OLDNEW
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/caching_compiler.dart ('k') | dart/tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698