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

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

Issue 2131303002: Validate only private sources, display statistics. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 library analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 class ApplyChangesStatus { 1546 class ApplyChangesStatus {
1547 /** 1547 /**
1548 * Is `true` if the given [ChangeSet] caused any changes in the context. 1548 * Is `true` if the given [ChangeSet] caused any changes in the context.
1549 */ 1549 */
1550 final bool hasChanges; 1550 final bool hasChanges;
1551 1551
1552 ApplyChangesStatus(this.hasChanges); 1552 ApplyChangesStatus(this.hasChanges);
1553 } 1553 }
1554 1554
1555 /** 1555 /**
1556 * Statistics about cache consistency validation.
1557 */
1558 class CacheConsistencyValidationStatistics {
1559 /**
1560 * Number of sources which were modified, but the context was not notified
1561 * about it, so this fact was detected only during cache consistency
1562 * validation.
1563 */
1564 int numOfModified = 0;
1565
1566 /**
1567 * Number of sources which were deleted, but the context was not notified
1568 * about it, so this fact was detected only during cache consistency
1569 * validation.
1570 */
1571 int numOfDeleted = 0;
1572 }
1573
1574 /**
1556 * The possible states of cached data. 1575 * The possible states of cached data.
1557 */ 1576 */
1558 class CacheState extends Enum<CacheState> { 1577 class CacheState extends Enum<CacheState> {
1559 /** 1578 /**
1560 * The data is not in the cache and the last time an attempt was made to 1579 * The data is not in the cache and the last time an attempt was made to
1561 * compute the data an exception occurred, making it pointless to attempt to 1580 * compute the data an exception occurred, making it pointless to attempt to
1562 * compute the data again. 1581 * compute the data again.
1563 * 1582 *
1564 * Valid Transitions: 1583 * Valid Transitions:
1565 * * [INVALID] if a source was modified that might cause the data to be 1584 * * [INVALID] if a source was modified that might cause the data to be
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 * The [PerformanceTag] for time spent during otherwise not accounted parts 2344 * The [PerformanceTag] for time spent during otherwise not accounted parts
2326 * incremental of analysis. 2345 * incremental of analysis.
2327 */ 2346 */
2328 static PerformanceTag incrementalAnalysis = 2347 static PerformanceTag incrementalAnalysis =
2329 new PerformanceTag('incrementalAnalysis'); 2348 new PerformanceTag('incrementalAnalysis');
2330 2349
2331 /** 2350 /**
2332 * The [PerformanceTag] for time spent in summaries support. 2351 * The [PerformanceTag] for time spent in summaries support.
2333 */ 2352 */
2334 static PerformanceTag summary = new PerformanceTag('summary'); 2353 static PerformanceTag summary = new PerformanceTag('summary');
2354
2355 /**
2356 * Statistics about cache consistency validation.
2357 */
2358 static final CacheConsistencyValidationStatistics
2359 cacheConsistencyValidationStatistics =
2360 new CacheConsistencyValidationStatistics();
2335 } 2361 }
2336 2362
2337 /** 2363 /**
2338 * An error listener that will record the errors that are reported to it in a 2364 * An error listener that will record the errors that are reported to it in a
2339 * way that is appropriate for caching those errors within an analysis context. 2365 * way that is appropriate for caching those errors within an analysis context.
2340 */ 2366 */
2341 class RecordingErrorListener implements AnalysisErrorListener { 2367 class RecordingErrorListener implements AnalysisErrorListener {
2342 /** 2368 /**
2343 * A map of sets containing the errors that were collected, keyed by each 2369 * A map of sets containing the errors that were collected, keyed by each
2344 * source. 2370 * source.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 * The data that was created from the source. 2691 * The data that was created from the source.
2666 */ 2692 */
2667 final E data; 2693 final E data;
2668 2694
2669 /** 2695 /**
2670 * Initialize a newly created holder to associate the given [data] with the 2696 * Initialize a newly created holder to associate the given [data] with the
2671 * given [modificationTime]. 2697 * given [modificationTime].
2672 */ 2698 */
2673 TimestampedData(this.modificationTime, this.data); 2699 TimestampedData(this.modificationTime, this.data);
2674 } 2700 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698