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

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

Issue 745513003: Match enums, class type alias, type parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/compile_time_error_code_test.dart
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
index 38868518c54746753e2b01455308624a9308a474..9c52615b91fa31967686a0af7b217a7df1bf94dd 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -201,9 +201,7 @@ f() {
}
void test_accessPrivateEnumField() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
String name(E e) {
@@ -1582,9 +1580,7 @@ class C = String with M;''');
}
void test_extendsEnum() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
class A extends E {}''');
@@ -2052,9 +2048,7 @@ class C = A with M implements String, num;''');
}
void test_implementsEnum() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
class A implements E {}''');
@@ -2496,9 +2490,7 @@ class A {
}
void test_instantiateEnum_const() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
E e(String name) {
@@ -2510,9 +2502,7 @@ E e(String name) {
}
void test_instantiateEnum_new() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
E e(String name) {
@@ -3082,9 +3072,7 @@ class A {
}
void test_missingEnumConstantInSwitch() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE, TWO, THREE, FOUR }
bool odd(E e) {
@@ -3385,9 +3373,7 @@ class C = A with String, num;''');
}
void test_mixinOfEnum() {
- AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
- analysisOptions.enableEnum = true;
- resetWithOptions(analysisOptions);
+ resetWithEnum();
Source source = addSource(r'''
enum E { ONE }
class A extends Object with E {}''');
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/test/generated/incremental_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698