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