| 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/implementation/tree/tree.dart"); | 8 #import("../../../lib/compiler/implementation/tree/tree.dart"); |
| 9 | 9 |
| 10 testUnparse(String statement) { | 10 testUnparse(String statement) { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 testUnparseMember("external const factory Foo() = Bar;"); | 236 testUnparseMember("external const factory Foo() = Bar;"); |
| 237 testUnparseMember("external const factory Foo() = Bar.baz;"); | 237 testUnparseMember("external const factory Foo() = Bar.baz;"); |
| 238 testUnparseMember("external const factory Foo() = Bar<T>;"); | 238 testUnparseMember("external const factory Foo() = Bar<T>;"); |
| 239 testUnparseMember("external const factory Foo() = Bar<T>.baz;"); | 239 testUnparseMember("external const factory Foo() = Bar<T>.baz;"); |
| 240 testUnparseMember("external const factory Foo() = prefix.Bar;"); | 240 testUnparseMember("external const factory Foo() = prefix.Bar;"); |
| 241 testUnparseMember("external const factory Foo() = prefix.Bar.baz;"); | 241 testUnparseMember("external const factory Foo() = prefix.Bar.baz;"); |
| 242 testUnparseMember("external const factory Foo() = prefix.Bar<T>;"); | 242 testUnparseMember("external const factory Foo() = prefix.Bar<T>;"); |
| 243 testUnparseMember("external const factory Foo() = prefix.Bar<T>.baz;"); | 243 testUnparseMember("external const factory Foo() = prefix.Bar<T>.baz;"); |
| 244 } | 244 } |
| 245 | 245 |
| 246 testClassDeclarations() { |
| 247 testUnparseTopLevelWithMetadata('class Foo{}'); |
| 248 testUnparseTopLevelWithMetadata('abstract class Foo{}'); |
| 249 } |
| 250 |
| 246 main() { | 251 main() { |
| 247 testSignedConstants(); | 252 testSignedConstants(); |
| 248 testGenericTypes(); | 253 testGenericTypes(); |
| 249 testForLoop(); | 254 testForLoop(); |
| 250 testEmptyList(); | 255 testEmptyList(); |
| 251 testClosure(); | 256 testClosure(); |
| 252 testIndexedOperatorDecl(); | 257 testIndexedOperatorDecl(); |
| 253 testNativeMethods(); | 258 testNativeMethods(); |
| 254 testPrefixIncrements(); | 259 testPrefixIncrements(); |
| 255 testConstModifier(); | 260 testConstModifier(); |
| 256 testSimpleObjectInstantiation(); | 261 testSimpleObjectInstantiation(); |
| 257 testLibraryName(); | 262 testLibraryName(); |
| 258 testImport(); | 263 testImport(); |
| 259 testExport(); | 264 testExport(); |
| 260 testPart(); | 265 testPart(); |
| 261 testPartOf(); | 266 testPartOf(); |
| 262 testCombinators(); | 267 testCombinators(); |
| 263 testRedirectingFactoryConstructors(); | 268 testRedirectingFactoryConstructors(); |
| 269 testClassDeclarations(); |
| 264 } | 270 } |
| OLD | NEW |