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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/precedence.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
Index: pkg/front_end/lib/src/fasta/scanner/precedence.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/precedence.dart b/pkg/front_end/lib/src/fasta/scanner/precedence.dart
index 5aadf82071bb8ee73c773278abc38c90a3477935..40f96e95500640933369b77e79c3925a57ed1ec1 100644
--- a/pkg/front_end/lib/src/fasta/scanner/precedence.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/precedence.dart
@@ -93,7 +93,8 @@ class PrecedenceInfo implements TokenType {
STRING_INTERPOLATION_INFO,
STRING_INTERPOLATION_IDENTIFIER_INFO,
HEXADECIMAL_INFO,
- COMMENT_INFO,
+ SINGLE_LINE_COMMENT_INFO,
+ MULTI_LINE_COMMENT_INFO,
];
@override
@@ -337,8 +338,7 @@ const PrecedenceInfo QUESTION_PERIOD_INFO = const PrecedenceInfo(
const PrecedenceInfo KEYWORD_INFO =
const PrecedenceInfo('keyword', 'KEYWORD', 0, KEYWORD_TOKEN);
-const PrecedenceInfo EOF_INFO =
- const PrecedenceInfo('', 'EOF', 0, EOF_TOKEN);
+const PrecedenceInfo EOF_INFO = const PrecedenceInfo('', 'EOF', 0, EOF_TOKEN);
/// Precedence info used by synthetic tokens that are created during parser
/// recovery (non-analyzer use case).
@@ -391,5 +391,8 @@ const PrecedenceInfo STRING_INTERPOLATION_IDENTIFIER_INFO =
const PrecedenceInfo HEXADECIMAL_INFO =
const PrecedenceInfo('hexadecimal', 'HEXADECIMAL', 0, HEXADECIMAL_TOKEN);
-const PrecedenceInfo COMMENT_INFO =
- const PrecedenceInfo('comment', 'COMMENT', 0, COMMENT_TOKEN);
+const PrecedenceInfo SINGLE_LINE_COMMENT_INFO =
+ const PrecedenceInfo('comment', 'SINGLE_LINE_COMMENT', 0, COMMENT_TOKEN);
+
+const PrecedenceInfo MULTI_LINE_COMMENT_INFO =
+ const PrecedenceInfo('comment', 'MULTI_LINE_COMMENT', 0, COMMENT_TOKEN);
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart ('k') | pkg/front_end/lib/src/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698