| 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 #import('parser_helper.dart'); | 6 #import('parser_helper.dart'); |
| 7 #import('mock_compiler.dart'); | 7 #import('mock_compiler.dart'); |
| 8 #import("../../../lib/compiler/compiler.dart"); | 8 #import("../../../lib/compiler/compiler.dart"); |
| 9 #import("../../../lib/compiler/implementation/leg.dart", prefix:'leg'); | 9 #import("../../../lib/compiler/implementation/leg.dart", prefix:'leg'); |
| 10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); | 10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); |
| 11 #import("../../../lib/compiler/implementation/elements/elements.dart"); | 11 #import("../../../lib/compiler/implementation/elements/elements.dart"); |
| 12 #import("../../../lib/compiler/implementation/tree/tree.dart"); | 12 #import("../../../lib/compiler/implementation/tree/tree.dart"); |
| 13 | 13 |
| 14 testUnparse(String statement) { | 14 testUnparse(String statement) { |
| 15 Node node = parseStatement(statement); | 15 Node node = parseStatement(statement); |
| 16 Expect.equals(statement, node.unparse()); | 16 Expect.equals(statement, unparse(node)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 testUnparseMember(String member) { | 19 testUnparseMember(String member) { |
| 20 Node node = parseMember(member); | 20 Node node = parseMember(member); |
| 21 Expect.equals(member, node.unparse()); | 21 Expect.equals(member, unparse(node)); |
| 22 } | 22 } |
| 23 | 23 |
| 24 const coreLib = @''' | 24 const coreLib = @''' |
| 25 #library('corelib'); | 25 #library('corelib'); |
| 26 class Object {} | 26 class Object {} |
| 27 interface bool {} | 27 interface bool {} |
| 28 interface num {} | 28 interface num {} |
| 29 interface int extends num {} | 29 interface int extends num {} |
| 30 interface double extends num {} | 30 interface double extends num {} |
| 31 interface String {} | 31 interface String {} |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 testDoubleMains(); | 850 testDoubleMains(); |
| 851 testInterfaceDefaultAnotherLib(); | 851 testInterfaceDefaultAnotherLib(); |
| 852 testStaticAccessIoLib(); | 852 testStaticAccessIoLib(); |
| 853 testLocalFunctionPlaceholder(); | 853 testLocalFunctionPlaceholder(); |
| 854 testMinification(); | 854 testMinification(); |
| 855 testClosureLocalsMinified(); | 855 testClosureLocalsMinified(); |
| 856 testParametersMinified(); | 856 testParametersMinified(); |
| 857 testTypeVariablesInDifferentLibraries(); | 857 testTypeVariablesInDifferentLibraries(); |
| 858 testDeclarationTypePlaceholders(); | 858 testDeclarationTypePlaceholders(); |
| 859 } | 859 } |
| OLD | NEW |