| Index: pkg/front_end/test/scanner_fasta_test.dart
|
| diff --git a/pkg/front_end/test/scanner_fasta_test.dart b/pkg/front_end/test/scanner_fasta_test.dart
|
| index 5b87dc3025cd0d1572f0c7b30483ce23265fb9af..933e3897eff206c0a386d5e6dd8b6d58c25aa286 100644
|
| --- a/pkg/front_end/test/scanner_fasta_test.dart
|
| +++ b/pkg/front_end/test/scanner_fasta_test.dart
|
| @@ -115,19 +115,19 @@ class ScannerTest_Fasta extends ScannerTestBase {
|
| previousEnd = token.charOffset + token.charCount;
|
|
|
| // Spot check for specific token/comment combinations
|
| - if (token.value == 'class') {
|
| + if (token.lexeme == 'class') {
|
| ++spotCheckCount;
|
| - expect(token.precedingComments?.value, '/// Doc comment before class');
|
| - expect(token.precedingComments?.next?.value, '/// second line');
|
| - expect(token.precedingComments?.next?.next?.value, '/// third');
|
| + expect(token.precedingComments?.lexeme, '/// Doc comment before class');
|
| + expect(token.precedingComments?.next?.lexeme, '/// second line');
|
| + expect(token.precedingComments?.next?.next?.lexeme, '/// third');
|
| expect(token.precedingComments?.next?.next?.next, isNull);
|
| - } else if (token.value == 'Foo2') {
|
| + } else if (token.lexeme == 'Foo2') {
|
| ++spotCheckCount;
|
| - expect(token.precedingComments?.value, '/** Doc comment 2 */');
|
| - } else if (token.value == ')') {
|
| + expect(token.precedingComments?.lexeme, '/** Doc comment 2 */');
|
| + } else if (token.lexeme == ')') {
|
| if (token.precedingComments != null) {
|
| ++spotCheckCount;
|
| - expect(token.precedingComments?.value,
|
| + expect(token.precedingComments?.lexeme,
|
| '/* comment before closing paren */');
|
| expect(token.precedingComments?.next, isNull);
|
| }
|
| @@ -138,7 +138,7 @@ class ScannerTest_Fasta extends ScannerTestBase {
|
| expect(tokenCount, 26);
|
| expect(spotCheckCount, 3);
|
| expect(commentTokenCount, 9);
|
| - expect(token.precedingComments?.value, '// EOF comment');
|
| + expect(token.precedingComments?.lexeme, '// EOF comment');
|
| }
|
|
|
| @override
|
|
|