Chromium Code Reviews| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 @override | 84 @override |
| 85 @failingTest | 85 @failingTest |
| 86 void test_index_eq() { | 86 void test_index_eq() { |
| 87 // TODO(paulberry,ahe): "[]=" should be parsed as a single token. | 87 // TODO(paulberry,ahe): "[]=" should be parsed as a single token. |
| 88 // See dartbug.com/28665. | 88 // See dartbug.com/28665. |
| 89 super.test_index_eq(); | 89 super.test_index_eq(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 @override | 92 @override |
| 93 @failingTest | 93 @failingTest |
| 94 void test_mismatched_closer() { | |
| 95 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | |
| 96 // Figure out which recovery technique we want the front end to use. | |
|
Paul Berry
2017/02/13 22:38:59
FWIW, my intuition is that Fasta's error recovery
ahe
2017/02/14 11:28:32
That also has its downsides, but I have some ideas
| |
| 97 super.test_mismatched_closer(); | |
| 98 } | |
| 99 | |
| 100 @override | |
| 101 @failingTest | |
| 102 void test_mismatched_opener() { | |
| 103 // TODO(paulberry,ahe): Fasta and analyzer recover this error differently. | |
| 104 // Figure out which recovery technique we want the front end to use. | |
| 105 super.test_mismatched_opener(); | |
| 106 } | |
| 107 | |
| 108 @override | |
| 109 @failingTest | |
| 94 void test_scriptTag_withArgs() { | 110 void test_scriptTag_withArgs() { |
| 95 // TODO(paulberry,ahe): script tags are needed by analyzer. | 111 // TODO(paulberry,ahe): script tags are needed by analyzer. |
| 96 super.test_scriptTag_withArgs(); | 112 super.test_scriptTag_withArgs(); |
| 97 } | 113 } |
| 98 | 114 |
| 99 @override | 115 @override |
| 100 @failingTest | 116 @failingTest |
| 101 void test_scriptTag_withoutSpace() { | 117 void test_scriptTag_withoutSpace() { |
| 102 // TODO(paulberry,ahe): script tags are needed by analyzer. | 118 // TODO(paulberry,ahe): script tags are needed by analyzer. |
| 103 super.test_scriptTag_withoutSpace(); | 119 super.test_scriptTag_withoutSpace(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 super.test_string_simple_unterminated_interpolation_block(); | 189 super.test_string_simple_unterminated_interpolation_block(); |
| 174 } | 190 } |
| 175 | 191 |
| 176 @override | 192 @override |
| 177 @failingTest | 193 @failingTest |
| 178 void test_string_simple_unterminated_interpolation_identifier() { | 194 void test_string_simple_unterminated_interpolation_identifier() { |
| 179 // TODO(paulberry,ahe): bad error recovery. | 195 // TODO(paulberry,ahe): bad error recovery. |
| 180 super.test_string_simple_unterminated_interpolation_identifier(); | 196 super.test_string_simple_unterminated_interpolation_identifier(); |
| 181 } | 197 } |
| 182 } | 198 } |
| OLD | NEW |