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

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1262163002: Implement DEP 34 (less restricted mixins) in analysis engine. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 @reflectiveTest 2256 @reflectiveTest
2257 class AnalysisOptionsImplTest extends EngineTestCase { 2257 class AnalysisOptionsImplTest extends EngineTestCase {
2258 void test_AnalysisOptionsImpl_copy() { 2258 void test_AnalysisOptionsImpl_copy() {
2259 bool booleanValue = true; 2259 bool booleanValue = true;
2260 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { 2260 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) {
2261 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2261 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2262 options.analyzeFunctionBodies = booleanValue; 2262 options.analyzeFunctionBodies = booleanValue;
2263 options.cacheSize = i; 2263 options.cacheSize = i;
2264 options.dart2jsHint = booleanValue; 2264 options.dart2jsHint = booleanValue;
2265 options.enableStrictCallChecks = booleanValue; 2265 options.enableStrictCallChecks = booleanValue;
2266 options.enableSuperMixins = booleanValue;
2266 options.generateImplicitErrors = booleanValue; 2267 options.generateImplicitErrors = booleanValue;
2267 options.generateSdkErrors = booleanValue; 2268 options.generateSdkErrors = booleanValue;
2268 options.hint = booleanValue; 2269 options.hint = booleanValue;
2269 options.incremental = booleanValue; 2270 options.incremental = booleanValue;
2270 options.preserveComments = booleanValue; 2271 options.preserveComments = booleanValue;
2271 options.strongMode = booleanValue; 2272 options.strongMode = booleanValue;
2272 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options); 2273 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options);
2273 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); 2274 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies);
2274 expect(copy.cacheSize, options.cacheSize); 2275 expect(copy.cacheSize, options.cacheSize);
2275 expect(copy.dart2jsHint, options.dart2jsHint); 2276 expect(copy.dart2jsHint, options.dart2jsHint);
2276 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks); 2277 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks);
2278 expect(copy.enableSuperMixins, options.enableSuperMixins);
2277 expect(copy.generateImplicitErrors, options.generateImplicitErrors); 2279 expect(copy.generateImplicitErrors, options.generateImplicitErrors);
2278 expect(copy.generateSdkErrors, options.generateSdkErrors); 2280 expect(copy.generateSdkErrors, options.generateSdkErrors);
2279 expect(copy.hint, options.hint); 2281 expect(copy.hint, options.hint);
2280 expect(copy.incremental, options.incremental); 2282 expect(copy.incremental, options.incremental);
2281 expect(copy.preserveComments, options.preserveComments); 2283 expect(copy.preserveComments, options.preserveComments);
2282 expect(copy.strongMode, options.strongMode); 2284 expect(copy.strongMode, options.strongMode);
2283 } 2285 }
2284 } 2286 }
2285 2287
2286 void test_analyzeFunctionBodies() { 2288 void test_analyzeFunctionBodies() {
(...skipping 11 matching lines...) Expand all
2298 expect(options.cacheSize, value); 2300 expect(options.cacheSize, value);
2299 } 2301 }
2300 2302
2301 void test_dart2jsHint() { 2303 void test_dart2jsHint() {
2302 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2304 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2303 bool value = !options.dart2jsHint; 2305 bool value = !options.dart2jsHint;
2304 options.dart2jsHint = value; 2306 options.dart2jsHint = value;
2305 expect(options.dart2jsHint, value); 2307 expect(options.dart2jsHint, value);
2306 } 2308 }
2307 2309
2308 void test_strongMode() { 2310 void test_enableSuperMixins() {
2309 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2311 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2310 bool value = !options.strongMode; 2312 bool value = !options.enableSuperMixins;
2311 options.strongMode = value; 2313 options.enableSuperMixins = value;
2312 expect(options.strongMode, value); 2314 expect(options.enableSuperMixins, value);
2313 } 2315 }
2314 2316
2315 void test_generateImplicitErrors() { 2317 void test_generateImplicitErrors() {
2316 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2318 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2317 bool value = !options.generateImplicitErrors; 2319 bool value = !options.generateImplicitErrors;
2318 options.generateImplicitErrors = value; 2320 options.generateImplicitErrors = value;
2319 expect(options.generateImplicitErrors, value); 2321 expect(options.generateImplicitErrors, value);
2320 } 2322 }
2321 2323
2322 void test_generateSdkErrors() { 2324 void test_generateSdkErrors() {
(...skipping 16 matching lines...) Expand all
2339 options.incremental = value; 2341 options.incremental = value;
2340 expect(options.incremental, value); 2342 expect(options.incremental, value);
2341 } 2343 }
2342 2344
2343 void test_preserveComments() { 2345 void test_preserveComments() {
2344 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2346 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2345 bool value = !options.preserveComments; 2347 bool value = !options.preserveComments;
2346 options.preserveComments = value; 2348 options.preserveComments = value;
2347 expect(options.preserveComments, value); 2349 expect(options.preserveComments, value);
2348 } 2350 }
2351
2352 void test_strongMode() {
2353 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2354 bool value = !options.strongMode;
2355 options.strongMode = value;
2356 expect(options.strongMode, value);
2357 }
2349 } 2358 }
2350 2359
2351 class AnalysisTask_test_perform_exception extends AnalysisTask { 2360 class AnalysisTask_test_perform_exception extends AnalysisTask {
2352 AnalysisTask_test_perform_exception(InternalAnalysisContext arg0) 2361 AnalysisTask_test_perform_exception(InternalAnalysisContext arg0)
2353 : super(arg0); 2362 : super(arg0);
2354 @override 2363 @override
2355 String get taskDescription => null; 2364 String get taskDescription => null;
2356 @override 2365 @override
2357 accept(AnalysisTaskVisitor visitor) { 2366 accept(AnalysisTaskVisitor visitor) {
2358 expect(exception, isNotNull); 2367 expect(exception, isNotNull);
(...skipping 4382 matching lines...) Expand 10 before | Expand all | Expand 10 after
6741 @override 6750 @override
6742 bool exists() => true; 6751 bool exists() => true;
6743 } 6752 }
6744 6753
6745 class _UniversalCachePartitionTest_test_setMaxCacheSize 6754 class _UniversalCachePartitionTest_test_setMaxCacheSize
6746 implements CacheRetentionPolicy { 6755 implements CacheRetentionPolicy {
6747 @override 6756 @override
6748 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6757 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6749 RetentionPriority.LOW; 6758 RetentionPriority.LOW;
6750 } 6759 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698