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

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_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
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index 06336a4614c3c90692c1f90075bd88495cdcaecc..c77d424e657979e532d2cf9f2ea6349aed7b1e0e 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -2372,9 +2372,6 @@ f([String x = '0']) {
}
void test_invalidAssignment_ifNullAssignment_compatibleType() {
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
void f(int i) {
num n;
@@ -2387,9 +2384,6 @@ void f(int i) {
}
void test_invalidAssignment_ifNullAssignment_sameType() {
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
void f(int i) {
int j;
@@ -5011,9 +5005,6 @@ class Bar extends Foo {
void test_undefinedGetter_typeLiteral_conditionalAccess() {
// When applied to a type literal, the conditional access operator '?.' can
// be used to access instance getters of Type.
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
class A {}
f() => A?.hashCode;
@@ -5101,9 +5092,6 @@ main() {
void test_undefinedMethod_typeLiteral_conditionalAccess() {
// When applied to a type literal, the conditional access operator '?.' can
// be used to access instance methods of Type.
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.enableNullAwareOperators = true;
- resetWithOptions(options);
Source source = addSource('''
class A {}
f() => A?.toString();
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698