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

Side by Side Diff: dart/site/try/src/compilation.dart

Issue 342283004: Address issues found with analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37597. Created 6 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 trydart.compilation; 5 library trydart.compilation;
6 6
7 import 'dart:html' show 7 import 'dart:html' show
8 Blob, 8 Blob,
9 Element, 9 Element,
10 ErrorEvent, 10 ErrorEvent,
11 IFrameElement, 11 IFrameElement,
12 MessageEvent, 12 MessageEvent,
13 Url, 13 Url,
14 Worker, 14 Worker,
15 window; 15 window;
16 16
17 import 'dart:async' show
18 Timer;
19
20 import 'dart:isolate' show 17 import 'dart:isolate' show
21 ReceivePort, 18 ReceivePort,
22 SendPort; 19 SendPort;
23 20
24 import 'editor.dart' show 21 import 'editor.dart' show
25 addDiagnostic, 22 addDiagnostic,
26 isMalformedInput; 23 isMalformedInput;
27 24
28 import 'run.dart' show 25 import 'run.dart' show
29 makeOutputFrame; 26 makeOutputFrame;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 if (window.parent != window) { 279 if (window.parent != window) {
283 // Test support. 280 // Test support.
284 // TODO(ahe): Use '/' instead of '*' when Firefox is upgraded to version 281 // TODO(ahe): Use '/' instead of '*' when Firefox is upgraded to version
285 // 30 across build bots. Support for '/' was added in version 29, and we 282 // 30 across build bots. Support for '/' was added in version 29, and we
286 // support the two most recent versions. 283 // support the two most recent versions.
287 window.parent.postMessage('$message\n', '*'); 284 window.parent.postMessage('$message\n', '*');
288 } 285 }
289 console.appendText('$message\n'); 286 console.appendText('$message\n');
290 } 287 }
291 } 288 }
292
293 void compilerIsolate(SendPort port) {
294 // TODO(ahe): Restore when restoring deferred loading.
295 // lazy.load().then((_) => port.listen(compile));
296 ReceivePort replyTo = new ReceivePort();
297 port.send(replyTo.sendPort);
298 replyTo.listen((message) {
299 List list = message as List;
300 try {
301 compile(list[0], list[1]);
302 } catch (exception, stack) {
303 port.send('$exception\n$stack');
304 }
305 });
306 }
OLDNEW
« dart/site/try/src/Makefile ('K') | « dart/site/try/src/caching_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698