| 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 "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import 'parser_helper.dart'; | 6 import 'parser_helper.dart'; |
| 7 import 'mock_compiler.dart'; | 7 import 'mock_compiler.dart'; |
| 8 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
| 9 | 9 |
| 10 testUnparse(String statement) { | 10 testUnparse(String statement) { |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 testUnparseParameters( | 330 testUnparseParameters( |
| 331 ["this.foo", "this.bar=0", "int this.baz", "int this.boz=0"]); | 331 ["this.foo", "this.bar=0", "int this.baz", "int this.boz=0"]); |
| 332 testUnparseParameters( | 332 testUnparseParameters( |
| 333 ["foo()", "void bar()", "int baz(a)", "int boz(int a,int b)=null"]); | 333 ["foo()", "void bar()", "int baz(a)", "int boz(int a,int b)=null"]); |
| 334 testUnparseParameters( | 334 testUnparseParameters( |
| 335 ["this.foo()", | 335 ["this.foo()", |
| 336 //"void this.bar()", // Commented out due to Issue 7852 | 336 //"void this.bar()", // Commented out due to Issue 7852 |
| 337 //"int this.baz(a)", // Commented out due to Issue 7852 | 337 //"int this.baz(a)", // Commented out due to Issue 7852 |
| 338 //"int this.boz(int a,int b)=null" // Commented out due to Issue 7852 | 338 //"int this.boz(int a,int b)=null" // Commented out due to Issue 7852 |
| 339 ]); | 339 ]); |
| 340 testUnparseParameters( |
| 341 ["@a foo", "@b @c bar=0", "@D(0) int baz", "@E([f],{g:h}) int boz=0"]); |
| 340 } | 342 } |
| 341 | 343 |
| 342 testSymbolLiterals() { | 344 testSymbolLiterals() { |
| 343 testUnparse("#+;"); | 345 testUnparse("#+;"); |
| 344 testUnparse("#-;"); | 346 testUnparse("#-;"); |
| 345 testUnparse("#*;"); | 347 testUnparse("#*;"); |
| 346 testUnparse("#/;"); | 348 testUnparse("#/;"); |
| 347 testUnparse("#~/;"); | 349 testUnparse("#~/;"); |
| 348 testUnparse("#%;"); | 350 testUnparse("#%;"); |
| 349 testUnparse("#<;"); | 351 testUnparse("#<;"); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 377 testExport(); | 379 testExport(); |
| 378 testPart(); | 380 testPart(); |
| 379 testPartOf(); | 381 testPartOf(); |
| 380 testCombinators(); | 382 testCombinators(); |
| 381 testRedirectingFactoryConstructors(); | 383 testRedirectingFactoryConstructors(); |
| 382 testClassDeclarations(); | 384 testClassDeclarations(); |
| 383 testMixinApplications(); | 385 testMixinApplications(); |
| 384 testParameters(); | 386 testParameters(); |
| 385 testSymbolLiterals(); | 387 testSymbolLiterals(); |
| 386 } | 388 } |
| OLD | NEW |