| 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 import 'dart:uri'; | 5 import 'dart:uri'; |
| 6 | 6 |
| 7 import "../../../lib/compiler/implementation/dart2jslib.dart" | 7 import "../../../lib/compiler/implementation/dart2jslib.dart" |
| 8 hide TreeElementMapping, TreeElements; | 8 hide TreeElementMapping, TreeElements; |
| 9 import "../../../lib/compiler/implementation/resolution/resolution.dart"; | 9 import "../../../lib/compiler/implementation/resolution/resolution.dart"; |
| 10 import "../../../lib/compiler/implementation/elements/elements.dart"; | 10 import "../../../lib/compiler/implementation/elements/elements.dart"; |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 class double {} | 710 class double {} |
| 711 class bool {} | 711 class bool {} |
| 712 class String {} | 712 class String {} |
| 713 class num {} | 713 class num {} |
| 714 class Function {} | 714 class Function {} |
| 715 class List {} | 715 class List {} |
| 716 class Map {} | 716 class Map {} |
| 717 class Closure {} | 717 class Closure {} |
| 718 class Null {} | 718 class Null {} |
| 719 class Dynamic_ {} | 719 class Dynamic_ {} |
| 720 class Type {} |
| 720 class Object { Object() : super(); }'''; | 721 class Object { Object() : super(); }'''; |
| 721 resolveConstructor(script, "Object o = new Object();", "Object", "Object", 1, | 722 resolveConstructor(script, "Object o = new Object();", "Object", "Object", 1, |
| 722 expectedWarnings: [], | 723 expectedWarnings: [], |
| 723 expectedErrors: [MessageKind.SUPER_INITIALIZER_IN_OBJECT], | 724 expectedErrors: [MessageKind.SUPER_INITIALIZER_IN_OBJECT], |
| 724 corelib: CORELIB_WITH_INVALID_OBJECT); | 725 corelib: CORELIB_WITH_INVALID_OBJECT); |
| 725 } | 726 } |
| 726 | 727 |
| 727 map(ResolverVisitor visitor) { | 728 map(ResolverVisitor visitor) { |
| 728 TreeElementMapping elements = visitor.mapping; | 729 TreeElementMapping elements = visitor.mapping; |
| 729 return elements.map; | 730 return elements.map; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 var d = new D(); | 794 var d = new D(); |
| 794 --d; | 795 --d; |
| 795 }"""; | 796 }"""; |
| 796 final compiler = compileScript(script); | 797 final compiler = compileScript(script); |
| 797 | 798 |
| 798 checkMemberResolved(compiler, 'A', operatorName('+', false)); | 799 checkMemberResolved(compiler, 'A', operatorName('+', false)); |
| 799 checkMemberResolved(compiler, 'B', operatorName('+', false)); | 800 checkMemberResolved(compiler, 'B', operatorName('+', false)); |
| 800 checkMemberResolved(compiler, 'C', operatorName('-', false)); | 801 checkMemberResolved(compiler, 'C', operatorName('-', false)); |
| 801 checkMemberResolved(compiler, 'D', operatorName('-', false)); | 802 checkMemberResolved(compiler, 'D', operatorName('-', false)); |
| 802 } | 803 } |
| OLD | NEW |