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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 2776733002: Include CompilationUnit begin/endToken(s) with Fasta. (Closed)
Patch Set: Verify begin/endToken(s) of CompilationUnit. 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 | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index b00f82ea60625a619e54cc4211ed120aa2fb5441..348274eece669167e00ada5a41f0bbf1d81bb5cf 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -13400,6 +13400,9 @@ abstract class TopLevelParserTestMixin implements AbstractParserTestCase {
expect(unit.scriptTag, isNull);
expect(unit.directives, hasLength(0));
expect(unit.declarations, hasLength(0));
+ expect(unit.beginToken, isNotNull);
+ expect(unit.endToken, isNotNull);
+ expect(unit.endToken.type, TokenType.EOF);
}
void test_parseCompilationUnit_exportAsPrefix() {
@@ -13460,6 +13463,10 @@ abstract class TopLevelParserTestMixin implements AbstractParserTestCase {
expect(unit.scriptTag, isNull);
expect(unit.directives, hasLength(0));
expect(unit.declarations, hasLength(1));
+ expect(unit.beginToken, isNotNull);
+ expect(unit.beginToken.keyword, Keyword.CLASS);
+ expect(unit.endToken, isNotNull);
+ expect(unit.endToken.type, TokenType.EOF);
}
void test_parseCompilationUnit_typedefAsPrefix() {
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698