Give featureSet to analysis options to fix resynthesis tests.
R=brianwilkerson@google.com, paulberry@google.com
Change-Id: I757327377b3fb2b8e945f0938d5d523f83decfaa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101940
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analyzer/test/src/summary/resynthesize_ast2_test.dart b/pkg/analyzer/test/src/summary/resynthesize_ast2_test.dart
index 14add4a..9677dbf 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_ast2_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_ast2_test.dart
@@ -71,7 +71,7 @@
_addNonDartLibraries(Set(), inputLibraries, source);
var linkResult = link(
- AnalysisOptionsImpl(),
+ AnalysisOptionsImpl()..contextFeatures = featureSet,
sourceFactory,
declaredVariables,
[sdkBundle],
@@ -114,61 +114,12 @@
@override
@failingTest
- test_class_ref_nullability_none() => super.test_class_ref_nullability_none();
-
- @override
- @failingTest
- test_class_ref_nullability_question() =>
- super.test_class_ref_nullability_question();
-
- @override
- @failingTest
- test_generic_function_type_nullability_none() =>
- super.test_generic_function_type_nullability_none();
-
- @override
- @failingTest
- test_generic_function_type_nullability_question() =>
- super.test_generic_function_type_nullability_question();
-
- @override
- @failingTest
- test_inferred_type_nullability_class_ref_none() =>
- super.test_inferred_type_nullability_class_ref_none();
-
- @override
- @failingTest
- test_inferred_type_nullability_class_ref_question() =>
- super.test_inferred_type_nullability_class_ref_question();
-
- @override
- @failingTest
- test_inferred_type_nullability_function_type_none() =>
- super.test_inferred_type_nullability_function_type_none();
-
- @override
- @failingTest
- test_inferred_type_nullability_function_type_question() =>
- super.test_inferred_type_nullability_function_type_question();
-
- @override
- @failingTest
test_syntheticFunctionType_genericClosure() async {
// TODO(scheglov) Bug in TypeSystem.getLeastUpperBound().
// LUB(<T>(T) → int, <T>(T) → int) gives `(T) → int`, note absence of `<T>`.
await super.test_syntheticFunctionType_genericClosure();
}
- @override
- @failingTest
- test_type_param_ref_nullability_none() =>
- super.test_type_param_ref_nullability_none();
-
- @override
- @failingTest
- test_type_param_ref_nullability_question() =>
- super.test_type_param_ref_nullability_question();
-
void _addLibraryUnits(
Source definingSource,
CompilationUnit definingUnit,