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

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

Issue 994253002: Add an analyzer option to properly check ".call" methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 2211
2212 @reflectiveTest 2212 @reflectiveTest
2213 class AnalysisOptionsImplTest extends EngineTestCase { 2213 class AnalysisOptionsImplTest extends EngineTestCase {
2214 void test_AnalysisOptionsImpl_copy() { 2214 void test_AnalysisOptionsImpl_copy() {
2215 bool booleanValue = true; 2215 bool booleanValue = true;
2216 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { 2216 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) {
2217 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2217 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2218 options.analyzeFunctionBodies = booleanValue; 2218 options.analyzeFunctionBodies = booleanValue;
2219 options.cacheSize = i; 2219 options.cacheSize = i;
2220 options.dart2jsHint = booleanValue; 2220 options.dart2jsHint = booleanValue;
2221 options.enableStrictCallChecks = booleanValue;
2221 options.generateImplicitErrors = booleanValue; 2222 options.generateImplicitErrors = booleanValue;
2222 options.generateSdkErrors = booleanValue; 2223 options.generateSdkErrors = booleanValue;
2223 options.hint = booleanValue; 2224 options.hint = booleanValue;
2224 options.incremental = booleanValue; 2225 options.incremental = booleanValue;
2225 options.preserveComments = booleanValue; 2226 options.preserveComments = booleanValue;
2226 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options); 2227 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options);
2227 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); 2228 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies);
2228 expect(copy.cacheSize, options.cacheSize); 2229 expect(copy.cacheSize, options.cacheSize);
2229 expect(copy.dart2jsHint, options.dart2jsHint); 2230 expect(copy.dart2jsHint, options.dart2jsHint);
2231 expect(copy.enableStrictCallChecks, options.enableStrictCallChecks);
2230 expect(copy.generateImplicitErrors, options.generateImplicitErrors); 2232 expect(copy.generateImplicitErrors, options.generateImplicitErrors);
2231 expect(copy.generateSdkErrors, options.generateSdkErrors); 2233 expect(copy.generateSdkErrors, options.generateSdkErrors);
2232 expect(copy.hint, options.hint); 2234 expect(copy.hint, options.hint);
2233 expect(copy.incremental, options.incremental); 2235 expect(copy.incremental, options.incremental);
2234 expect(copy.preserveComments, options.preserveComments); 2236 expect(copy.preserveComments, options.preserveComments);
2235 } 2237 }
2236 } 2238 }
2237 2239
2238 void test_analyzeFunctionBodies() { 2240 void test_analyzeFunctionBodies() {
2239 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2241 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
(...skipping 4330 matching lines...) Expand 10 before | Expand all | Expand 10 after
6570 @override 6572 @override
6571 bool exists() => true; 6573 bool exists() => true;
6572 } 6574 }
6573 6575
6574 class _UniversalCachePartitionTest_test_setMaxCacheSize 6576 class _UniversalCachePartitionTest_test_setMaxCacheSize
6575 implements CacheRetentionPolicy { 6577 implements CacheRetentionPolicy {
6576 @override 6578 @override
6577 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6579 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6578 RetentionPriority.LOW; 6580 RetentionPriority.LOW;
6579 } 6581 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698