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 // Simple test to ensure that mini_parser keeps working. | 5 // Simple test to ensure that mini_parser keeps working. |
6 | 6 |
| 7 import 'dart:io'; |
7 import '../../../sdk/lib/_internal/compiler/implementation/tools/mini_parser.dar
t' | 8 import '../../../sdk/lib/_internal/compiler/implementation/tools/mini_parser.dar
t' |
8 as tool; | 9 as tool; |
9 | 10 |
10 void main() { | 11 void main() { |
11 // Parse this script itself. | 12 // Parse this script itself. |
12 tool.toolMain(<String>[ new Options().script ]); | 13 tool.toolMain(<String>[ new Options().script ]); |
13 } | 14 } |
14 | 15 |
15 /** This class is unused but used to test mini_parser.dart. */ | 16 /** This class is unused but used to test mini_parser.dart. */ |
16 class TestClass { | 17 class TestClass { |
17 foo() {} | 18 foo() {} |
18 var i; | 19 var i; |
19 } | 20 } |
OLD | NEW |