Sort declarations in pkg/analyzer/test/generated/parser_test.dart
Change-Id: Iee4ae779ddc94c0022ff04273bb54b84d2ec0eb8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100403 Commit-Queue: Paul Berry <paulberry@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Auto-Submit: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
ed984b6985
commit
296505e2e3
@@ -16478,16 +16478,6 @@ mixin TopLevelParserTestMixin implements AbstractParserTestCase {
|
||||
expect(unit.declarations, hasLength(1));
|
||||
}
|
||||
|
||||
void test_parseCompilationUnit_pseudo_prefixed() {
|
||||
for (Keyword keyword in Keyword.values) {
|
||||
if (keyword.isPseudo) {
|
||||
String lexeme = keyword.lexeme;
|
||||
parseCompilationUnit('M.$lexeme f;');
|
||||
parseCompilationUnit('class C {M.$lexeme f;}');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void test_parseCompilationUnit_pseudo_asTypeName() {
|
||||
for (Keyword keyword in Keyword.values) {
|
||||
if (keyword.isPseudo) {
|
||||
@@ -16500,6 +16490,16 @@ mixin TopLevelParserTestMixin implements AbstractParserTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
void test_parseCompilationUnit_pseudo_prefixed() {
|
||||
for (Keyword keyword in Keyword.values) {
|
||||
if (keyword.isPseudo) {
|
||||
String lexeme = keyword.lexeme;
|
||||
parseCompilationUnit('M.$lexeme f;');
|
||||
parseCompilationUnit('class C {M.$lexeme f;}');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void test_parseCompilationUnit_script() {
|
||||
createParser('#! /bin/dart');
|
||||
CompilationUnit unit = parser.parseCompilationUnit2();
|
||||
|
||||
Reference in New Issue
Block a user