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

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

Issue 2757153002: update fasta scanner to generate two types of comments (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/lib/src/fasta/scanner/abstract_scanner.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 fe0cc065bf01e5e455029353edce60d315f713ca..ccae03deb14bf562e5a0b1243418745dc7a46fec 100644
--- a/pkg/analyzer/lib/src/fasta/token_utils.dart
+++ b/pkg/analyzer/lib/src/fasta/token_utils.dart
@@ -350,10 +350,10 @@ Token fromAnalyzerToken(analyzer.Token token) {
}
break;
case TokenType.MULTI_LINE_COMMENT:
- return string(COMMENT_INFO);
+ return string(MULTI_LINE_COMMENT_INFO);
// case TokenType.SCRIPT_TAG
case TokenType.SINGLE_LINE_COMMENT:
- return string(COMMENT_INFO);
+ return string(SINGLE_LINE_COMMENT_INFO);
case TokenType.STRING:
return string(STRING_INFO);
case TokenType.AMPERSAND:
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698