| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 testUnparseTopLevelWithMetadata('export "søhest" show a,hide show a,hide;'); | 201 testUnparseTopLevelWithMetadata('export "søhest" show a,hide show a,hide;'); |
| 202 testUnparseTopLevelWithMetadata('export "søhest" show a,show show a,show;'); | 202 testUnparseTopLevelWithMetadata('export "søhest" show a,show show a,show;'); |
| 203 | 203 |
| 204 testUnparseTopLevelWithMetadata('export "søhest" hide a hide a;'); | 204 testUnparseTopLevelWithMetadata('export "søhest" hide a hide a;'); |
| 205 testUnparseTopLevelWithMetadata('export "søhest" hide hide hide hide;'); | 205 testUnparseTopLevelWithMetadata('export "søhest" hide hide hide hide;'); |
| 206 testUnparseTopLevelWithMetadata('export "søhest" hide show hide show;'); | 206 testUnparseTopLevelWithMetadata('export "søhest" hide show hide show;'); |
| 207 testUnparseTopLevelWithMetadata('export "søhest" hide a,hide hide a,hide;'); | 207 testUnparseTopLevelWithMetadata('export "søhest" hide a,hide hide a,hide;'); |
| 208 testUnparseTopLevelWithMetadata('export "søhest" hide a,show hide a,show;'); | 208 testUnparseTopLevelWithMetadata('export "søhest" hide a,show hide a,show;'); |
| 209 } | 209 } |
| 210 | 210 |
| 211 testRedirectingFactoryConstructors() { |
| 212 testUnparseMember("factory Foo() = Bar;"); |
| 213 testUnparseMember("factory Foo() = Bar.baz;"); |
| 214 testUnparseMember("factory Foo() = Bar<T>;"); |
| 215 testUnparseMember("factory Foo() = Bar<T>.baz;"); |
| 216 testUnparseMember("factory Foo() = prefix.Bar;"); |
| 217 testUnparseMember("factory Foo() = prefix.Bar.baz;"); |
| 218 testUnparseMember("factory Foo() = prefix.Bar<T>;"); |
| 219 testUnparseMember("factory Foo() = prefix.Bar<T>.baz;"); |
| 220 testUnparseMember("const factory Foo() = Bar;"); |
| 221 testUnparseMember("const factory Foo() = Bar.baz;"); |
| 222 testUnparseMember("const factory Foo() = Bar<T>;"); |
| 223 testUnparseMember("const factory Foo() = Bar<T>.baz;"); |
| 224 testUnparseMember("const factory Foo() = prefix.Bar;"); |
| 225 testUnparseMember("const factory Foo() = prefix.Bar.baz;"); |
| 226 testUnparseMember("const factory Foo() = prefix.Bar<T>;"); |
| 227 testUnparseMember("const factory Foo() = prefix.Bar<T>.baz;"); |
| 228 testUnparseMember("external factory Foo() = Bar;"); |
| 229 testUnparseMember("external factory Foo() = Bar.baz;"); |
| 230 testUnparseMember("external factory Foo() = Bar<T>;"); |
| 231 testUnparseMember("external factory Foo() = Bar<T>.baz;"); |
| 232 testUnparseMember("external factory Foo() = prefix.Bar;"); |
| 233 testUnparseMember("external factory Foo() = prefix.Bar.baz;"); |
| 234 testUnparseMember("external factory Foo() = prefix.Bar<T>;"); |
| 235 testUnparseMember("external factory Foo() = prefix.Bar<T>.baz;"); |
| 236 testUnparseMember("external const factory Foo() = Bar;"); |
| 237 testUnparseMember("external const factory Foo() = Bar.baz;"); |
| 238 testUnparseMember("external const factory Foo() = Bar<T>;"); |
| 239 testUnparseMember("external const factory Foo() = Bar<T>.baz;"); |
| 240 testUnparseMember("external const factory Foo() = prefix.Bar;"); |
| 241 testUnparseMember("external const factory Foo() = prefix.Bar.baz;"); |
| 242 testUnparseMember("external const factory Foo() = prefix.Bar<T>;"); |
| 243 testUnparseMember("external const factory Foo() = prefix.Bar<T>.baz;"); |
| 244 } |
| 245 |
| 211 main() { | 246 main() { |
| 212 testSignedConstants(); | 247 testSignedConstants(); |
| 213 testGenericTypes(); | 248 testGenericTypes(); |
| 214 testForLoop(); | 249 testForLoop(); |
| 215 testEmptyList(); | 250 testEmptyList(); |
| 216 testClosure(); | 251 testClosure(); |
| 217 testIndexedOperatorDecl(); | 252 testIndexedOperatorDecl(); |
| 218 testNativeMethods(); | 253 testNativeMethods(); |
| 219 testPrefixIncrements(); | 254 testPrefixIncrements(); |
| 220 testConstModifier(); | 255 testConstModifier(); |
| 221 testSimpleObjectInstantiation(); | 256 testSimpleObjectInstantiation(); |
| 222 testLibraryName(); | 257 testLibraryName(); |
| 223 testImport(); | 258 testImport(); |
| 224 testExport(); | 259 testExport(); |
| 225 testPart(); | 260 testPart(); |
| 226 testPartOf(); | 261 testPartOf(); |
| 227 testCombinators(); | 262 testCombinators(); |
| 263 testRedirectingFactoryConstructors(); |
| 228 } | 264 } |
| OLD | NEW |