| 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 | |
| 176 void test_mismatched_closer() { | 160 void test_mismatched_closer() { |
| 177 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | 161 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. |
| 178 // Figure out which recovery technique we want the front end to use. | 162 // Figure out which recovery technique we want the front end to use. |
| 179 super.test_mismatched_closer(); | 163 super.test_mismatched_closer(); |
| 180 } | 164 } |
| 181 | 165 |
| 182 @override | 166 @override |
| 183 @failingTest | 167 @failingTest |
| 184 void test_mismatched_opener() { | 168 void test_mismatched_opener() { |
| 185 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | 169 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 final ErrorListener _listener; | 459 final ErrorListener _listener; |
| 476 | 460 |
| 477 ToAnalyzerTokenStreamConverter_WithListener(this._listener); | 461 ToAnalyzerTokenStreamConverter_WithListener(this._listener); |
| 478 | 462 |
| 479 @override | 463 @override |
| 480 void reportError( | 464 void reportError( |
| 481 ScannerErrorCode errorCode, int offset, List<Object> arguments) { | 465 ScannerErrorCode errorCode, int offset, List<Object> arguments) { |
| 482 _listener.errors.add(new TestError(offset, errorCode, arguments)); | 466 _listener.errors.add(new TestError(offset, errorCode, arguments)); |
| 483 } | 467 } |
| 484 } | 468 } |
| OLD | NEW |