| 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 for (String prefix in ["", "prefix."]) { |
| 213 for (String suffix in ["", ".baz"]) { |
| 214 for (String typeVar in ["", "<T>"]) { |
| 215 for (String constFlag in ["", "const "]) { |
| 216 String declaration = |
| 217 "${constFlag}factory Foo() = ${prefix}Bar${typeVar}$suffix;"; |
| 218 testUnparseMember(declaration); |
| 219 } |
| 220 } |
| 221 } |
| 222 } |
| 223 } |
| 224 |
| 211 main() { | 225 main() { |
| 212 testSignedConstants(); | 226 testSignedConstants(); |
| 213 testGenericTypes(); | 227 testGenericTypes(); |
| 214 testForLoop(); | 228 testForLoop(); |
| 215 testEmptyList(); | 229 testEmptyList(); |
| 216 testClosure(); | 230 testClosure(); |
| 217 testIndexedOperatorDecl(); | 231 testIndexedOperatorDecl(); |
| 218 testNativeMethods(); | 232 testNativeMethods(); |
| 219 testPrefixIncrements(); | 233 testPrefixIncrements(); |
| 220 testConstModifier(); | 234 testConstModifier(); |
| 221 testSimpleObjectInstantiation(); | 235 testSimpleObjectInstantiation(); |
| 222 testLibraryName(); | 236 testLibraryName(); |
| 223 testImport(); | 237 testImport(); |
| 224 testExport(); | 238 testExport(); |
| 225 testPart(); | 239 testPart(); |
| 226 testPartOf(); | 240 testPartOf(); |
| 227 testCombinators(); | 241 testCombinators(); |
| 242 testRedirectingFactoryConstructors(); |
| 228 } | 243 } |
| OLD | NEW |