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

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

Issue 967703002: Avoid unnecessary parsing/resolution when running command line analyzer. (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 2315 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 expect(copy.hint, options.hint); 2326 expect(copy.hint, options.hint);
2327 expect(copy.incremental, options.incremental); 2327 expect(copy.incremental, options.incremental);
2328 expect(copy.preserveComments, options.preserveComments); 2328 expect(copy.preserveComments, options.preserveComments);
2329 } 2329 }
2330 } 2330 }
2331 2331
2332 void test_getAnalyzeFunctionBodies() { 2332 void test_getAnalyzeFunctionBodies() {
2333 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2333 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2334 bool value = !options.analyzeFunctionBodies; 2334 bool value = !options.analyzeFunctionBodies;
2335 options.analyzeFunctionBodies = value; 2335 options.analyzeFunctionBodies = value;
2336 expect(options.analyzeFunctionBodies, value); 2336 expect(options.analyzeFunctionBodies, same(value));
Brian Wilkerson 2015/02/27 23:52:05 What's the value of wrapping the value?
Paul Berry 2015/03/02 19:09:46 Sorry--this was left over from a previous experime
2337 } 2337 }
2338 2338
2339 void test_getCacheSize() { 2339 void test_getCacheSize() {
2340 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 2340 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
2341 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); 2341 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE);
2342 int value = options.cacheSize + 1; 2342 int value = options.cacheSize + 1;
2343 options.cacheSize = value; 2343 options.cacheSize = value;
2344 expect(options.cacheSize, value); 2344 expect(options.cacheSize, value);
2345 } 2345 }
2346 2346
(...skipping 4860 matching lines...) Expand 10 before | Expand all | Expand 10 after
7207 bool exists() => true; 7207 bool exists() => true;
7208 } 7208 }
7209 7209
7210 7210
7211 class _UniversalCachePartitionTest_test_setMaxCacheSize implements 7211 class _UniversalCachePartitionTest_test_setMaxCacheSize implements
7212 CacheRetentionPolicy { 7212 CacheRetentionPolicy {
7213 @override 7213 @override
7214 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 7214 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
7215 RetentionPriority.LOW; 7215 RetentionPriority.LOW;
7216 } 7216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698