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

Unified Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 2928773003: more fixes for fasta analyzer integration (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/analyzer/test/generated/scanner_test.dart ('k') | pkg/front_end/lib/src/fasta/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/utilities_test.dart
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
index 51c4a56046b701c24f5087c15c998de76bba581b..640a9f341d1843cbd6857d17e29e46af069c8b16 100644
--- a/pkg/analyzer/test/generated/utilities_test.dart
+++ b/pkg/analyzer/test/generated/utilities_test.dart
@@ -61,7 +61,7 @@ class AstCloneComparator extends AstComparator {
fail('Failed to copy token: ${first.lexeme} (${first.offset})');
return false;
}
- if (first is TokenWithComment) {
+ if (first?.precedingComments != null) {
CommentToken comment = first.precedingComments;
if (comment.parent != first) {
fail('Failed to link the comment "$comment" with the token "$first".');
« no previous file with comments | « pkg/analyzer/test/generated/scanner_test.dart ('k') | pkg/front_end/lib/src/fasta/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698