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

Side by Side Diff: pkg/analyzer/test/generated/engine_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.engine_test; 8 library engine.engine_test;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 2234
2235 @reflectiveTest 2235 @reflectiveTest
2236 class AnalysisOptionsImplTest extends EngineTestCase { 2236 class AnalysisOptionsImplTest extends EngineTestCase {
2237 void test_AnalysisOptionsImpl_copy() { 2237 void test_AnalysisOptionsImpl_copy() {
2238 bool booleanValue = true; 2238 bool booleanValue = true;
2239 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { 2239 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) {
2240 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2240 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2241 options.analyzeFunctionBodies = booleanValue; 2241 options.analyzeFunctionBodies = booleanValue;
2242 options.cacheSize = i; 2242 options.cacheSize = i;
2243 options.dart2jsHint = booleanValue; 2243 options.dart2jsHint = booleanValue;
2244 options.enableNullAwareOperators = booleanValue;
2245 options.enableStrictCallChecks = booleanValue; 2244 options.enableStrictCallChecks = booleanValue;
2246 options.generateImplicitErrors = booleanValue; 2245 options.generateImplicitErrors = booleanValue;
2247 options.generateSdkErrors = booleanValue; 2246 options.generateSdkErrors = booleanValue;
2248 options.hint = booleanValue; 2247 options.hint = booleanValue;
2249 options.incremental = booleanValue; 2248 options.incremental = booleanValue;
2250 options.preserveComments = booleanValue; 2249 options.preserveComments = booleanValue;
2251 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options); 2250 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options);
2252 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); 2251 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies);
2253 expect(copy.cacheSize, options.cacheSize); 2252 expect(copy.cacheSize, options.cacheSize);
2254 expect(copy.dart2jsHint, options.dart2jsHint); 2253 expect(copy.dart2jsHint, options.dart2jsHint);
2255 expect(copy.enableNullAwareOperators, options.enableNullAwareOperators);
2256 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks); 2254 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks);
2257 expect(copy.generateImplicitErrors, options.generateImplicitErrors); 2255 expect(copy.generateImplicitErrors, options.generateImplicitErrors);
2258 expect(copy.generateSdkErrors, options.generateSdkErrors); 2256 expect(copy.generateSdkErrors, options.generateSdkErrors);
2259 expect(copy.hint, options.hint); 2257 expect(copy.hint, options.hint);
2260 expect(copy.incremental, options.incremental); 2258 expect(copy.incremental, options.incremental);
2261 expect(copy.preserveComments, options.preserveComments); 2259 expect(copy.preserveComments, options.preserveComments);
2262 } 2260 }
2263 } 2261 }
2264 2262
2265 void test_analyzeFunctionBodies() { 2263 void test_analyzeFunctionBodies() {
(...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after
6665 @override 6663 @override
6666 bool exists() => true; 6664 bool exists() => true;
6667 } 6665 }
6668 6666
6669 class _UniversalCachePartitionTest_test_setMaxCacheSize 6667 class _UniversalCachePartitionTest_test_setMaxCacheSize
6670 implements CacheRetentionPolicy { 6668 implements CacheRetentionPolicy {
6671 @override 6669 @override
6672 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6670 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6673 RetentionPriority.LOW; 6671 RetentionPriority.LOW;
6674 } 6672 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698