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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1000873002: Deprecate utility method (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; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 if (this._options.cacheSize != cacheSize) { 1151 if (this._options.cacheSize != cacheSize) {
1152 this._options.cacheSize = cacheSize; 1152 this._options.cacheSize = cacheSize;
1153 //cache.setMaxCacheSize(cacheSize); 1153 //cache.setMaxCacheSize(cacheSize);
1154 _privatePartition.maxCacheSize = cacheSize; 1154 _privatePartition.maxCacheSize = cacheSize;
1155 // 1155 //
1156 // Cap the size of the priority list to being less than the cache size. 1156 // Cap the size of the priority list to being less than the cache size.
1157 // Failure to do so can result in an infinite loop in 1157 // Failure to do so can result in an infinite loop in
1158 // performAnalysisTask() because re-caching one AST structure 1158 // performAnalysisTask() because re-caching one AST structure
1159 // can cause another priority source's AST structure to be flushed. 1159 // can cause another priority source's AST structure to be flushed.
1160 // 1160 //
1161 // TODO(brianwilkerson) Remove this constraint when the new task model is
1162 // implemented.
1163 //
1161 int maxPriorityOrderSize = cacheSize - _PRIORITY_ORDER_SIZE_DELTA; 1164 int maxPriorityOrderSize = cacheSize - _PRIORITY_ORDER_SIZE_DELTA;
1162 if (_priorityOrder.length > maxPriorityOrderSize) { 1165 if (_priorityOrder.length > maxPriorityOrderSize) {
1163 List<Source> newPriorityOrder = new List<Source>(maxPriorityOrderSize); 1166 _priorityOrder = _priorityOrder.sublist(0, maxPriorityOrderSize);
1164 JavaSystem.arraycopy(
1165 _priorityOrder, 0, newPriorityOrder, 0, maxPriorityOrderSize);
1166 _priorityOrder = newPriorityOrder;
1167 } 1167 }
1168 } 1168 }
1169 this._options.analyzeFunctionBodiesPredicate = 1169 this._options.analyzeFunctionBodiesPredicate =
1170 options.analyzeFunctionBodiesPredicate; 1170 options.analyzeFunctionBodiesPredicate;
1171 this._options.generateImplicitErrors = options.generateImplicitErrors; 1171 this._options.generateImplicitErrors = options.generateImplicitErrors;
1172 this._options.generateSdkErrors = options.generateSdkErrors; 1172 this._options.generateSdkErrors = options.generateSdkErrors;
1173 this._options.dart2jsHint = options.dart2jsHint; 1173 this._options.dart2jsHint = options.dart2jsHint;
1174 this._options.enableStrictCallChecks = options.enableStrictCallChecks; 1174 this._options.enableStrictCallChecks = options.enableStrictCallChecks;
1175 this._options.hint = options.hint; 1175 this._options.hint = options.hint;
1176 this._options.incremental = options.incremental; 1176 this._options.incremental = options.incremental;
(...skipping 11042 matching lines...) Expand 10 before | Expand all | Expand 10 after
12219 visitElement(Element element) { 12219 visitElement(Element element) {
12220 if (element.id == _id) { 12220 if (element.id == _id) {
12221 result = element; 12221 result = element;
12222 throw new _ElementByIdFinderException(); 12222 throw new _ElementByIdFinderException();
12223 } 12223 }
12224 super.visitElement(element); 12224 super.visitElement(element);
12225 } 12225 }
12226 } 12226 }
12227 12227
12228 class _ElementByIdFinderException {} 12228 class _ElementByIdFinderException {}
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698