| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 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 | 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:analyzer/src/fasta/token_utils.dart'; | 5 import 'package:analyzer/src/fasta/token_utils.dart'; |
| 6 import 'package:front_end/src/fasta/scanner/error_token.dart' as fasta; | 6 import 'package:front_end/src/fasta/scanner/error_token.dart' as fasta; |
| 7 import 'package:front_end/src/fasta/scanner/keyword.dart' as fasta; | |
| 8 import 'package:front_end/src/fasta/scanner/string_scanner.dart' as fasta; | 7 import 'package:front_end/src/fasta/scanner/string_scanner.dart' as fasta; |
| 9 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 8 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
| 10 import 'package:front_end/src/fasta/scanner/token_constants.dart' as fasta; | 9 import 'package:front_end/src/fasta/scanner/token_constants.dart' as fasta; |
| 11 import 'package:front_end/src/scanner/errors.dart'; | 10 import 'package:front_end/src/scanner/errors.dart'; |
| 12 import 'package:front_end/src/scanner/token.dart'; | 11 import 'package:front_end/src/scanner/token.dart'; |
| 13 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
| 14 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 15 | 14 |
| 16 import 'scanner_test.dart'; | 15 import 'scanner_test.dart'; |
| 17 | 16 |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 final ErrorListener _listener; | 556 final ErrorListener _listener; |
| 558 | 557 |
| 559 ToAnalyzerTokenStreamConverter_WithListener(this._listener); | 558 ToAnalyzerTokenStreamConverter_WithListener(this._listener); |
| 560 | 559 |
| 561 @override | 560 @override |
| 562 void reportError( | 561 void reportError( |
| 563 ScannerErrorCode errorCode, int offset, List<Object> arguments) { | 562 ScannerErrorCode errorCode, int offset, List<Object> arguments) { |
| 564 _listener.errors.add(new TestError(offset, errorCode, arguments)); | 563 _listener.errors.add(new TestError(offset, errorCode, arguments)); |
| 565 } | 564 } |
| 566 } | 565 } |
| OLD | NEW |