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

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

Issue 1239513005: Switch on null-aware operators by default in analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/static_type_warning_code_test.dart
diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
index f35d057a9d0cb042e3adb4f69cf0f48b4ecfb2e5..a346a872116509e12f3534600ac7032135a83d58 100644
--- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
+++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
@@ -385,9 +385,6 @@ main() {
}
void test_invalidAssignment_ifNullAssignment() {
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
void f(int i) {
double d;
@@ -1397,9 +1394,6 @@ var a = A.B;''');
void test_undefinedGetter_static_conditionalAccess() {
// The conditional access operator '?.' cannot be used to access static
// fields.
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
class A {
static var x;
@@ -1571,9 +1565,6 @@ main() {
void test_undefinedMethod_static_conditionalAccess() {
// The conditional access operator '?.' cannot be used to access static
// methods.
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
class A {
static void m() {}
@@ -1663,9 +1654,6 @@ f() { A.B = 0;}''');
void test_undefinedSetter_static_conditionalAccess() {
// The conditional access operator '?.' cannot be used to access static
// fields.
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
class A {
static var x;
« no previous file with comments | « pkg/analyzer/test/generated/scanner_test.dart ('k') | tests/language/conditional_method_invocation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698