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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2488043002: Enable generic method support by default (Closed)
Patch Set: clean up Created 4 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/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index bf040c6ea0b03e155d0b2a3491260bc5604495e1..ef23b657a338ebb1a962f78b8ae62cd21899a1e5 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -1116,8 +1116,7 @@ abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest {
/**
* Determine the analysis options that should be used for this test.
*/
- AnalysisOptionsImpl createOptions() =>
- new AnalysisOptionsImpl()..enableGenericMethods = true;
+ AnalysisOptionsImpl createOptions() => new AnalysisOptionsImpl();
ElementImpl getActualElement(Element element, String desc) {
if (element == null) {
@@ -3200,12 +3199,12 @@ f() {}''');
}
test_function_type_parameter() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('T f<T, U>(U u) => null;');
}
test_function_type_parameter_with_function_typed_parameter() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('void f<T, U>(T x(U u)) {}');
}
@@ -3214,7 +3213,7 @@ f() {}''');
}
test_generic_gClass_gMethodStatic() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('''
class C<T, U> {
static void m<V, W>(V v, W w) {
@@ -4035,17 +4034,17 @@ class C {
}
test_method_type_parameter() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('class C { T f<T, U>(U u) => null; }');
}
test_method_type_parameter_in_generic_class() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('class C<T, U> { V f<V, W>(T t, U u, W w) => null; }');
}
test_method_type_parameter_with_function_typed_parameter() {
- prepareAnalysisContext(createOptions()..enableGenericMethods = true);
+ prepareAnalysisContext(createOptions());
checkLibrary('class C { void f<T, U>(T x(U u)) {} }');
}
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_ast_test.dart ('k') | pkg/analyzer/test/src/summary/summarize_ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698