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

Unified Diff: pkg/analyzer/lib/src/fasta/token_utils.dart

Issue 2761683002: fix scriptTag scanner_round_trip test (Closed)
Patch Set: rebase Created 3 years, 9 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 | « no previous file | pkg/front_end/test/scanner_roundtrip_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/token_utils.dart
diff --git a/pkg/analyzer/lib/src/fasta/token_utils.dart b/pkg/analyzer/lib/src/fasta/token_utils.dart
index ccae03deb14bf562e5a0b1243418745dc7a46fec..6c834860371a38c1bb8531dde43e63904ac21886 100644
--- a/pkg/analyzer/lib/src/fasta/token_utils.dart
+++ b/pkg/analyzer/lib/src/fasta/token_utils.dart
@@ -351,7 +351,8 @@ Token fromAnalyzerToken(analyzer.Token token) {
break;
case TokenType.MULTI_LINE_COMMENT:
return string(MULTI_LINE_COMMENT_INFO);
- // case TokenType.SCRIPT_TAG
+ case TokenType.SCRIPT_TAG:
+ return string(SCRIPT_INFO);
case TokenType.SINGLE_LINE_COMMENT:
return string(SINGLE_LINE_COMMENT_INFO);
case TokenType.STRING:
« no previous file with comments | « no previous file | pkg/front_end/test/scanner_roundtrip_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698