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

Side by Side Diff: dart/pkg/compiler/lib/src/use_unused_api.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) 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 import 'scanner/scannerlib.dart' show 35 import 'scanner/scannerlib.dart' show
36 PartialClassElement, 36 PartialClassElement,
37 PartialFunctionElement; 37 PartialFunctionElement;
38 38
39 class ElementVisitor extends elements_visitor.ElementVisitor { 39 class ElementVisitor extends elements_visitor.ElementVisitor {
40 visitElement(e) {} 40 visitElement(e) {}
41 } 41 }
42 42
43 void main(List<String> arguments) { 43 void main(List<String> arguments) {
44 new dart2jslib.CompilerCancelledException(null);
45 useApi(); 44 useApi();
46 dart2js.main(arguments); 45 dart2js.main(arguments);
47 useConstant(null, null); 46 useConstant(null, null);
48 useNode(null); 47 useNode(null);
49 useUtil(null); 48 useUtil(null);
50 useSetlet(null); 49 useSetlet(null);
51 useImmutableEmptySet(null); 50 useImmutableEmptySet(null);
52 useElementVisitor(new ElementVisitor()); 51 useElementVisitor(new ElementVisitor());
53 useJs(new js.Program(null)); 52 useJs(new js.Program(null));
54 useJs(new js.Blob(null)); 53 useJs(new js.Blob(null));
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); 268 new dart_types.ResolvedTypedefType(null, null, null).unalias(null);
270 } 269 }
271 270
272 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { 271 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
273 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); 272 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes();
274 } 273 }
275 274
276 useScript(dart2jslib.Script script) { 275 useScript(dart2jslib.Script script) {
277 script.copyWithFile(null); 276 script.copyWithFile(null);
278 } 277 }
OLDNEW
« no previous file with comments | « dart/pkg/compiler/lib/src/compiler.dart ('k') | dart/pkg/dart2js_incremental/lib/caching_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698