Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: pkg/front_end/test/scanner_test.dart

Issue 2941583003: update invalid hex digit recovery (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/recover.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/scanner_test.dart
diff --git a/pkg/front_end/test/scanner_test.dart b/pkg/front_end/test/scanner_test.dart
index 9cba6ce40855591f182ee751cb04943711fb4e5f..4a60cc7c4276d6025d4b580866f3a52315240559 100644
--- a/pkg/front_end/test/scanner_test.dart
+++ b/pkg/front_end/test/scanner_test.dart
@@ -1043,7 +1043,7 @@ abstract class ScannerTestBase {
void test_string_multi_unterminated() {
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "'''string'''", 0, 9),
]);
@@ -1064,7 +1064,7 @@ abstract class ScannerTestBase {
new TestError(8, ScannerErrorCode.UNTERMINATED_STRING_LITERAL, null),
];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticToken(TokenType.CLOSE_CURLY_BRACKET, 9),
new SyntheticStringToken(TokenType.STRING, "'''", 9, 0),
@@ -1090,7 +1090,7 @@ abstract class ScannerTestBase {
new StringToken(TokenType.IDENTIFIER, "name", 4),
];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "'''", 8, 0),
]);
@@ -1115,7 +1115,7 @@ abstract class ScannerTestBase {
String source = "r'''string";
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "r'''string'''", 0, 10),
]);
@@ -1140,7 +1140,7 @@ abstract class ScannerTestBase {
String source = "r'string";
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "r'string'", 0, 8),
]);
@@ -1157,7 +1157,7 @@ abstract class ScannerTestBase {
String source = "r'string\n";
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "r'string'", 0, 8),
]);
@@ -1298,7 +1298,7 @@ abstract class ScannerTestBase {
String source = "'string";
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "'string'", 0, 7),
]);
@@ -1315,7 +1315,7 @@ abstract class ScannerTestBase {
String source = "'string\r";
List<Token> expectedTokens = [];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "'string'", 0, 7),
]);
@@ -1338,7 +1338,7 @@ abstract class ScannerTestBase {
new TestError(6, ScannerErrorCode.UNTERMINATED_STRING_LITERAL, null),
];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticToken(TokenType.CLOSE_CURLY_BRACKET, 7),
new SyntheticStringToken(TokenType.STRING, "'", 7, 0),
@@ -1364,7 +1364,7 @@ abstract class ScannerTestBase {
new StringToken(TokenType.IDENTIFIER, "name", 2),
];
if (usingFasta) {
- // fasta inserts synthetic closers
+ // Fasta inserts synthetic closers.
expectedTokens.addAll([
new SyntheticStringToken(TokenType.STRING, "'", 6, 0),
]);
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/recover.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698