OLD | NEW |
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 part of html; | 5 part of html; |
6 | 6 |
7 class _Property { | 7 class _Property { |
8 _Property(this.name) | 8 _Property(this.name) |
9 : _hasValue = false, | 9 : _hasValue = false, |
10 writable = false, | 10 writable = false, |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 513 } |
514 | 514 |
515 if (locals != null) { | 515 if (locals != null) { |
516 for (int i = 0; i < locals.length; i += 2) { | 516 for (int i = 0; i < locals.length; i += 2) { |
517 addArg(locals[i], locals[i + 1]); | 517 addArg(locals[i], locals[i + 1]); |
518 } | 518 } |
519 } | 519 } |
520 // Inject all the already defined console variables. | 520 // Inject all the already defined console variables. |
521 _consoleTempVariables._data.forEach(addArg); | 521 _consoleTempVariables._data.forEach(addArg); |
522 | 522 |
523 // TODO(jacobr): remove the parentheses around the expresson once | 523 // TODO(jacobr): remove the parentheses around the expression once |
524 // dartbug.com/13723 is fixed. Currently we wrap expression in parentheses | 524 // dartbug.com/13723 is fixed. Currently we wrap expression in parentheses |
525 // to ensure only valid Dart expressions are allowed. Otherwise the DartVM | 525 // to ensure only valid Dart expressions are allowed. Otherwise the DartVM |
526 // quietly ignores trailing Dart statements resulting in user confusion | 526 // quietly ignores trailing Dart statements resulting in user confusion |
527 // when part of an invalid expression they entered is ignored. | 527 // when part of an invalid expression they entered is ignored. |
528 sb..write(') => (\n$expression\n)'); | 528 sb..write(') => (\n$expression\n)'); |
529 return [sb.toString(), args.values.toList(growable: false)]; | 529 return [sb.toString(), args.values.toList(growable: false)]; |
530 } | 530 } |
531 | 531 |
532 static String _getShortSymbolName( | 532 static String _getShortSymbolName( |
533 Symbol symbol, DeclarationMirror declaration) { | 533 Symbol symbol, DeclarationMirror declaration) { |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 get _scheduleImmediateClosure => (void callback()) { | 1390 get _scheduleImmediateClosure => (void callback()) { |
1391 _scheduleImmediateHelper._schedule(callback); | 1391 _scheduleImmediateHelper._schedule(callback); |
1392 }; | 1392 }; |
1393 | 1393 |
1394 get _pureIsolateScheduleImmediateClosure => ((void callback()) => | 1394 get _pureIsolateScheduleImmediateClosure => ((void callback()) => |
1395 throw new UnimplementedError("scheduleMicrotask in background isolates " | 1395 throw new UnimplementedError("scheduleMicrotask in background isolates " |
1396 "are not supported in the browser")); | 1396 "are not supported in the browser")); |
1397 | 1397 |
1398 // Class for unsupported native browser 'DOM' objects. | 1398 // Class for unsupported native browser 'DOM' objects. |
1399 class _UnsupportedBrowserObject extends DartHtmlDomObject {} | 1399 class _UnsupportedBrowserObject extends DartHtmlDomObject {} |
OLD | NEW |