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

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

Issue 2802753002: Include ':' before constructor separators into AST with Fasta. (Closed)
Patch Set: Created 3 years, 8 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/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 3438e7db1de1f672617e083c9b8386ff4d573b02..e7a3725cd62ef2771e93e018aaee1908822aac24 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -1198,9 +1198,8 @@ abstract class ClassMemberParserTestMixin implements AbstractParserTestCase {
}
void test_parseConstructorFieldInitializer_qualified() {
- createParser('this.a = b');
- ConstructorFieldInitializer initializer =
- parser.parseConstructorFieldInitializer(true);
+ var initializer = parseConstructorInitializer('this.a = b')
+ as ConstructorFieldInitializer;
expect(initializer, isNotNull);
assertNoErrors();
expect(initializer.equals, isNotNull);
@@ -1211,9 +1210,8 @@ abstract class ClassMemberParserTestMixin implements AbstractParserTestCase {
}
void test_parseConstructorFieldInitializer_unqualified() {
- createParser('a = b');
- ConstructorFieldInitializer initializer =
- parser.parseConstructorFieldInitializer(false);
+ var initializer =
+ parseConstructorInitializer('a = b') as ConstructorFieldInitializer;
expect(initializer, isNotNull);
assertNoErrors();
expect(initializer.equals, isNotNull);
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698