| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class ParserTest { | 5 class ParserTest { |
| 6 static final String TAIL = '//comment\n\n'; | 6 static final String TAIL = '//comment\n\n'; |
| 7 | 7 |
| 8 static main() { | 8 static main() { |
| 9 print('start ParserTest'); | 9 print('start ParserTest'); |
| 10 initializeWorld(new FileSystem('.')); | 10 initializeWorld(new FileSystem('.')); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 if (!mustBeType) { | 303 if (!mustBeType) { |
| 304 testStatement('x + ' + code + ';'); | 304 testStatement('x + ' + code + ';'); |
| 305 } | 305 } |
| 306 if (!mustBeExpression) { | 306 if (!mustBeExpression) { |
| 307 testStatement(code + ' x;'); | 307 testStatement(code + ' x;'); |
| 308 testDeclaration(code + ' x;'); | 308 testDeclaration(code + ' x;'); |
| 309 } | 309 } |
| 310 // TODO(jimhug): add negative test cases. | 310 // TODO(jimhug): add negative test cases. |
| 311 } | 311 } |
| 312 } | 312 } |
| OLD | NEW |