OLD | NEW |
| (Empty) |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 import 'package:analyzer/src/fasta/token_utils.dart'; | |
6 import 'package:front_end/src/scanner/errors.dart' as analyzer; | |
7 import 'package:front_end/src/scanner/reader.dart' as analyzer; | |
8 import 'package:front_end/src/scanner/scanner.dart' as analyzer; | |
9 import 'package:front_end/src/scanner/token.dart'; | |
10 import 'package:test/test.dart'; | |
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; | |
12 | |
13 import 'scanner_fasta_test.dart'; | |
14 import 'scanner_test.dart'; | |
15 | |
16 main() { | |
17 // round trip test removed | |
18 } | |
19 | |
20 class TestScanner extends analyzer.Scanner { | |
21 TestScanner(analyzer.CharacterReader reader) : super.create(reader); | |
22 | |
23 @override | |
24 void reportError( | |
25 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) { | |
26 fail('Unexpected error $errorCode while scanning offset $offset\n' | |
27 ' arguments: $arguments'); | |
28 } | |
29 } | |
OLD | NEW |