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

Side by Side Diff: dart/pkg/compiler/lib/src/use_unused_api.dart

Issue 808953004: Recover from fatal parser errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42860. 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
« no previous file with comments | « dart/pkg/compiler/lib/src/scanner/scanner_task.dart ('k') | 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) 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);
44 useApi(); 45 useApi();
45 dart2js.main(arguments); 46 dart2js.main(arguments);
46 useConstant(null, null); 47 useConstant(null, null);
47 useNode(null); 48 useNode(null);
48 useUtil(null); 49 useUtil(null);
49 useSetlet(null); 50 useSetlet(null);
50 useImmutableEmptySet(null); 51 useImmutableEmptySet(null);
51 useElementVisitor(new ElementVisitor()); 52 useElementVisitor(new ElementVisitor());
52 useJs(new js.Program(null)); 53 useJs(new js.Program(null));
53 useJs(new js.Blob(null)); 54 useJs(new js.Blob(null));
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); 269 new dart_types.ResolvedTypedefType(null, null, null).unalias(null);
269 } 270 }
270 271
271 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { 272 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
272 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); 273 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes();
273 } 274 }
274 275
275 useScript(dart2jslib.Script script) { 276 useScript(dart2jslib.Script script) {
276 script.copyWithFile(null); 277 script.copyWithFile(null);
277 } 278 }
OLDNEW
« no previous file with comments | « dart/pkg/compiler/lib/src/scanner/scanner_task.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698