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

Unified Diff: pkg/front_end/test/scanner_test.dart

Issue 2686293002: Use Keyword.isPseudo to translate Fasta's "pseudo-keywords" properly. (Closed)
Patch Set: Created 3 years, 10 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/front_end/lib/src/fasta/analyzer/token_utils.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/test/scanner_test.dart
diff --git a/pkg/front_end/test/scanner_test.dart b/pkg/front_end/test/scanner_test.dart
index aea7bf5f7e609571c698aef6a87c8797dc8896f1..caddea4c6625f146ae463acaeea0796273a07c92 100644
--- a/pkg/front_end/test/scanner_test.dart
+++ b/pkg/front_end/test/scanner_test.dart
@@ -541,6 +541,10 @@ abstract class ScannerTestBase {
_assertKeywordToken("get");
}
+ void test_keyword_hide() {
+ _assertIdentifierToken("hide");
+ }
+
void test_keyword_if() {
_assertKeywordToken("if");
}
@@ -565,6 +569,10 @@ abstract class ScannerTestBase {
_assertKeywordToken("library");
}
+ void test_keyword_native() {
+ _assertIdentifierToken("native");
+ }
+
void test_keyword_new() {
_assertKeywordToken("new");
}
@@ -573,6 +581,14 @@ abstract class ScannerTestBase {
_assertKeywordToken("null");
}
+ void test_keyword_of() {
+ _assertIdentifierToken("of");
+ }
+
+ void test_keyword_on() {
+ _assertIdentifierToken("on");
+ }
+
void test_keyword_operator() {
_assertKeywordToken("operator");
}
@@ -581,6 +597,10 @@ abstract class ScannerTestBase {
_assertKeywordToken("part");
}
+ void test_keyword_patch() {
+ _assertIdentifierToken("patch");
+ }
+
void test_keyword_rethrow() {
_assertKeywordToken("rethrow");
}
@@ -593,6 +613,14 @@ abstract class ScannerTestBase {
_assertKeywordToken("set");
}
+ void test_keyword_show() {
+ _assertIdentifierToken("show");
+ }
+
+ void test_keyword_source() {
+ _assertIdentifierToken("source");
+ }
+
void test_keyword_static() {
_assertKeywordToken("static");
}
@@ -645,6 +673,10 @@ abstract class ScannerTestBase {
_assertKeywordToken("with");
}
+ void test_keyword_yield() {
+ _assertIdentifierToken("yield");
+ }
+
void test_lt() {
_assertToken(TokenType.LT, "<");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/token_utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698