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/scanner/errors.dart' as analyzer; | 6 import 'package:front_end/src/scanner/errors.dart' as analyzer; |
7 import 'package:front_end/src/scanner/reader.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; | 8 import 'package:front_end/src/scanner/scanner.dart' as analyzer; |
9 import 'package:front_end/src/scanner/token.dart'; | 9 import 'package:front_end/src/scanner/token.dart'; |
10 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 @override | 69 @override |
70 @failingTest | 70 @failingTest |
71 void test_comment_generic_method_type_list() { | 71 void test_comment_generic_method_type_list() { |
72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment | 72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment |
73 // syntax. | 73 // syntax. |
74 super.test_comment_generic_method_type_list(); | 74 super.test_comment_generic_method_type_list(); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 class TestScanner extends analyzer.Scanner { | 78 class TestScanner extends analyzer.Scanner { |
79 TestScanner(analyzer.CharacterReader reader) : super(reader); | 79 TestScanner(analyzer.CharacterReader reader) : super.create(reader); |
80 | 80 |
81 @override | 81 @override |
82 void reportError( | 82 void reportError( |
83 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) { | 83 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) { |
84 fail('Unexpected error $errorCode while scanning offset $offset\n' | 84 fail('Unexpected error $errorCode while scanning offset $offset\n' |
85 ' arguments: $arguments'); | 85 ' arguments: $arguments'); |
86 } | 86 } |
87 } | 87 } |
OLD | NEW |