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:front_end/src/fasta/analyzer/token_utils.dart'; | 5 import 'package:front_end/src/fasta/analyzer/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; | 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; | 8 import 'package:front_end/src/fasta/scanner/string_scanner.dart' as fasta; |
9 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; | 9 import 'package:front_end/src/fasta/scanner/token.dart' as fasta; |
10 import 'package:front_end/src/fasta/scanner/token_constants.dart' as fasta; | 10 import 'package:front_end/src/fasta/scanner/token_constants.dart' as fasta; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 @override | 151 @override |
152 @failingTest | 152 @failingTest |
153 void test_comment_generic_method_type_list() { | 153 void test_comment_generic_method_type_list() { |
154 // TODO(paulberry,ahe): Fasta doesn't support generic method comment syntax. | 154 // TODO(paulberry,ahe): Fasta doesn't support generic method comment syntax. |
155 super.test_comment_generic_method_type_list(); | 155 super.test_comment_generic_method_type_list(); |
156 } | 156 } |
157 | 157 |
158 @override | 158 @override |
159 @failingTest | 159 @failingTest |
| 160 void test_index() { |
| 161 // TODO(paulberry,ahe): "[]" should be parsed as a single token. |
| 162 // See dartbug.com/28665. |
| 163 super.test_index(); |
| 164 } |
| 165 |
| 166 @override |
| 167 @failingTest |
| 168 void test_index_eq() { |
| 169 // TODO(paulberry,ahe): "[]=" should be parsed as a single token. |
| 170 // See dartbug.com/28665. |
| 171 super.test_index_eq(); |
| 172 } |
| 173 |
| 174 @override |
| 175 @failingTest |
160 void test_mismatched_closer() { | 176 void test_mismatched_closer() { |
161 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | 177 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. |
162 // Figure out which recovery technique we want the front end to use. | 178 // Figure out which recovery technique we want the front end to use. |
163 super.test_mismatched_closer(); | 179 super.test_mismatched_closer(); |
164 } | 180 } |
165 | 181 |
166 @override | 182 @override |
167 @failingTest | 183 @failingTest |
168 void test_mismatched_opener() { | 184 void test_mismatched_opener() { |
169 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | 185 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 final ErrorListener _listener; | 475 final ErrorListener _listener; |
460 | 476 |
461 ToAnalyzerTokenStreamConverter_WithListener(this._listener); | 477 ToAnalyzerTokenStreamConverter_WithListener(this._listener); |
462 | 478 |
463 @override | 479 @override |
464 void reportError( | 480 void reportError( |
465 ScannerErrorCode errorCode, int offset, List<Object> arguments) { | 481 ScannerErrorCode errorCode, int offset, List<Object> arguments) { |
466 _listener.errors.add(new TestError(offset, errorCode, arguments)); | 482 _listener.errors.add(new TestError(offset, errorCode, arguments)); |
467 } | 483 } |
468 } | 484 } |
OLD | NEW |