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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/token.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/utilities_test.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/lib/src/fasta/scanner/token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/token.dart b/pkg/front_end/lib/src/fasta/scanner/token.dart
index afbe541f58289c7073d86a7812bb6d00f9ea7df1..b7a9b5d23905f462859291e1a2deaf11cb77bf39 100644
--- a/pkg/front_end/lib/src/fasta/scanner/token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
@@ -118,7 +118,7 @@ class StringToken extends analyzer.TokenWithComment
@override
Token copy() => new StringToken._(
- type, valueOrLazySubstring, charOffset, precedingComments);
+ type, valueOrLazySubstring, charOffset, copyComments(precedingComments));
@override
String value() => lexeme;
@@ -138,7 +138,7 @@ class SyntheticStringToken extends StringToken
@override
Token copy() => new SyntheticStringToken(
- type, valueOrLazySubstring, offset, precedingComments);
+ type, valueOrLazySubstring, offset, copyComments(precedingComments));
}
class CommentToken extends StringToken implements analyzer.CommentToken {
« no previous file with comments | « pkg/analyzer/test/generated/utilities_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698