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

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

Issue 1468973004: No functional change. Sort some files in pkg/analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/ast_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library engine; 5 library engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:math' as math; 9 import 'dart:math' as math;
10 10
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 new StreamController<ImplicitAnalysisEvent>.broadcast(); 1153 new StreamController<ImplicitAnalysisEvent>.broadcast();
1154 } 1154 }
1155 1155
1156 @override 1156 @override
1157 AnalysisCache get analysisCache => _cache; 1157 AnalysisCache get analysisCache => _cache;
1158 1158
1159 @override 1159 @override
1160 AnalysisOptions get analysisOptions => _options; 1160 AnalysisOptions get analysisOptions => _options;
1161 1161
1162 @override 1162 @override
1163 EmbedderYamlLocator get embedderYamlLocator => _embedderYamlLocator;
1164
1165 @override
1166 void set analysisOptions(AnalysisOptions options) { 1163 void set analysisOptions(AnalysisOptions options) {
1167 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate != 1164 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate !=
1168 options.analyzeFunctionBodiesPredicate || 1165 options.analyzeFunctionBodiesPredicate ||
1169 this._options.generateImplicitErrors != 1166 this._options.generateImplicitErrors !=
1170 options.generateImplicitErrors || 1167 options.generateImplicitErrors ||
1171 this._options.generateSdkErrors != options.generateSdkErrors || 1168 this._options.generateSdkErrors != options.generateSdkErrors ||
1172 this._options.dart2jsHint != options.dart2jsHint || 1169 this._options.dart2jsHint != options.dart2jsHint ||
1173 (this._options.hint && !options.hint) || 1170 (this._options.hint && !options.hint) ||
1174 this._options.preserveComments != options.preserveComments || 1171 this._options.preserveComments != options.preserveComments ||
1175 this._options.strongMode != options.strongMode || 1172 this._options.strongMode != options.strongMode ||
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 1248
1252 @override 1249 @override
1253 set contentCache(ContentCache value) { 1250 set contentCache(ContentCache value) {
1254 _contentCache = value; 1251 _contentCache = value;
1255 } 1252 }
1256 1253
1257 @override 1254 @override
1258 DeclaredVariables get declaredVariables => _declaredVariables; 1255 DeclaredVariables get declaredVariables => _declaredVariables;
1259 1256
1260 @override 1257 @override
1258 EmbedderYamlLocator get embedderYamlLocator => _embedderYamlLocator;
1259
1260 @override
1261 List<AnalysisTarget> get explicitTargets { 1261 List<AnalysisTarget> get explicitTargets {
1262 List<AnalysisTarget> targets = <AnalysisTarget>[]; 1262 List<AnalysisTarget> targets = <AnalysisTarget>[];
1263 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 1263 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
1264 while (iterator.moveNext()) { 1264 while (iterator.moveNext()) {
1265 if (iterator.value.explicitlyAdded) { 1265 if (iterator.value.explicitlyAdded) {
1266 targets.add(iterator.key); 1266 targets.add(iterator.key);
1267 } 1267 }
1268 } 1268 }
1269 return targets; 1269 return targets;
1270 } 1270 }
(...skipping 8142 matching lines...) Expand 10 before | Expand all | Expand 10 after
9413 */ 9413 */
9414 dynamic get analysisCache; 9414 dynamic get analysisCache;
9415 9415
9416 /** 9416 /**
9417 * Allow the client to supply its own content cache. This will take the 9417 * Allow the client to supply its own content cache. This will take the
9418 * place of the content cache created by default, allowing clients to share 9418 * place of the content cache created by default, allowing clients to share
9419 * the content cache between contexts. 9419 * the content cache between contexts.
9420 */ 9420 */
9421 set contentCache(ContentCache value); 9421 set contentCache(ContentCache value);
9422 9422
9423 /// Get the [EmbedderYamlLocator] for this context.
9424 EmbedderYamlLocator get embedderYamlLocator;
9425
9423 /** 9426 /**
9424 * Return a list of the explicit targets being analyzed by this context. 9427 * Return a list of the explicit targets being analyzed by this context.
9425 */ 9428 */
9426 List<AnalysisTarget> get explicitTargets; 9429 List<AnalysisTarget> get explicitTargets;
9427 9430
9428 /** 9431 /**
9429 * A factory to override how [LibraryResolver] is created. 9432 * A factory to override how [LibraryResolver] is created.
9430 */ 9433 */
9431 LibraryResolverFactory get libraryResolverFactory; 9434 LibraryResolverFactory get libraryResolverFactory;
9432 9435
9433 /** 9436 /**
9434 * Return a list containing all of the sources that have been marked as 9437 * Return a list containing all of the sources that have been marked as
9435 * priority sources. Clients must not modify the returned list. 9438 * priority sources. Clients must not modify the returned list.
9436 */ 9439 */
9437 List<Source> get prioritySources; 9440 List<Source> get prioritySources;
9438 9441
9439 /** 9442 /**
9440 * Return a list of the priority targets being analyzed by this context. 9443 * Return a list of the priority targets being analyzed by this context.
9441 */ 9444 */
9442 List<AnalysisTarget> get priorityTargets; 9445 List<AnalysisTarget> get priorityTargets;
9443 9446
9444 /** 9447 /**
9445 * The partition that contains analysis results that are not shared with other 9448 * The partition that contains analysis results that are not shared with other
9446 * contexts. 9449 * contexts.
9447 * 9450 *
9448 * TODO(scheglov) add the type, once we have only one cache. 9451 * TODO(scheglov) add the type, once we have only one cache.
9449 */ 9452 */
9450 dynamic get privateAnalysisCachePartition; 9453 dynamic get privateAnalysisCachePartition;
9451 9454
9452 /// Get the [EmbedderYamlLocator] for this context.
9453 EmbedderYamlLocator get embedderYamlLocator;
9454
9455 /** 9455 /**
9456 * A factory to override how [ResolverVisitor] is created. 9456 * A factory to override how [ResolverVisitor] is created.
9457 */ 9457 */
9458 ResolverVisitorFactory get resolverVisitorFactory; 9458 ResolverVisitorFactory get resolverVisitorFactory;
9459 9459
9460 /** 9460 /**
9461 * Returns a statistics about this context. 9461 * Returns a statistics about this context.
9462 */ 9462 */
9463 AnalysisContextStatistics get statistics; 9463 AnalysisContextStatistics get statistics;
9464 9464
(...skipping 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after
12136 PendingFuture pendingFuture = 12136 PendingFuture pendingFuture =
12137 new PendingFuture<T>(_context, source, computeValue); 12137 new PendingFuture<T>(_context, source, computeValue);
12138 if (!pendingFuture.evaluate(sourceEntry)) { 12138 if (!pendingFuture.evaluate(sourceEntry)) {
12139 _context._pendingFutureSources 12139 _context._pendingFutureSources
12140 .putIfAbsent(source, () => <PendingFuture>[]) 12140 .putIfAbsent(source, () => <PendingFuture>[])
12141 .add(pendingFuture); 12141 .add(pendingFuture);
12142 } 12142 }
12143 return pendingFuture.future; 12143 return pendingFuture.future;
12144 } 12144 }
12145 } 12145 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698