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

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

Issue 1211243003: Re-implement the status page for the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed file Created 5 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
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_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 // 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:async'; 10 import 'dart:async';
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 buffer.writeln(" removed"); 2632 buffer.writeln(" removed");
2633 for (Source source in missingSources) { 2633 for (Source source in missingSources) {
2634 buffer.write(" "); 2634 buffer.write(" ");
2635 buffer.writeln(source.fullName); 2635 buffer.writeln(source.fullName);
2636 } 2636 }
2637 _logInformation(buffer.toString()); 2637 _logInformation(buffer.toString());
2638 } 2638 }
2639 return changedSources.length > 0; 2639 return changedSources.length > 0;
2640 } 2640 }
2641 2641
2642 @deprecated
2642 @override 2643 @override
2643 void visitCacheItems(void callback(Source source, SourceEntry dartEntry, 2644 void visitCacheItems(void callback(Source source, SourceEntry dartEntry,
2644 DataDescriptor rowDesc, CacheState state)) { 2645 DataDescriptor rowDesc, CacheState state)) {
2645 bool hintsEnabled = _options.hint; 2646 bool hintsEnabled = _options.hint;
2646 bool lintsEnabled = _options.lint; 2647 bool lintsEnabled = _options.lint;
2647 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 2648 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
2648 while (iterator.moveNext()) { 2649 while (iterator.moveNext()) {
2649 Source source = iterator.key; 2650 Source source = iterator.key;
2650 SourceEntry sourceEntry = iterator.value; 2651 SourceEntry sourceEntry = iterator.value;
2651 for (DataDescriptor descriptor in sourceEntry.descriptors) { 2652 for (DataDescriptor descriptor in sourceEntry.descriptors) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 continue; 2696 continue;
2696 } 2697 }
2697 callback(librarySource, sourceEntry, descriptor, 2698 callback(librarySource, sourceEntry, descriptor,
2698 sourceEntry.getStateInLibrary(descriptor, librarySource)); 2699 sourceEntry.getStateInLibrary(descriptor, librarySource));
2699 } 2700 }
2700 } 2701 }
2701 } 2702 }
2702 } 2703 }
2703 } 2704 }
2704 2705
2705 /** 2706 @override
2706 * Visit all entries of the content cache.
2707 */
2708 void visitContentCache(ContentCacheVisitor visitor) { 2707 void visitContentCache(ContentCacheVisitor visitor) {
2709 _contentCache.accept(visitor); 2708 _contentCache.accept(visitor);
2710 } 2709 }
2711 2710
2712 /** 2711 /**
2713 * Record that we have accessed the AST structure associated with the given 2712 * Record that we have accessed the AST structure associated with the given
2714 * [source]. At the moment, there is no differentiation between the parsed and 2713 * [source]. At the moment, there is no differentiation between the parsed and
2715 * resolved forms of the AST. 2714 * resolved forms of the AST.
2716 */ 2715 */
2717 void _accessedAst(Source source) { 2716 void _accessedAst(Source source) {
(...skipping 6612 matching lines...) Expand 10 before | Expand all | Expand 10 after
9330 9329
9331 /** 9330 /**
9332 * For testing only: flush all representations of the AST (both resolved and 9331 * For testing only: flush all representations of the AST (both resolved and
9333 * unresolved) for the given [source] out of the cache. 9332 * unresolved) for the given [source] out of the cache.
9334 */ 9333 */
9335 void test_flushAstStructures(Source source); 9334 void test_flushAstStructures(Source source);
9336 9335
9337 /** 9336 /**
9338 * Call the given callback function for eache cache item in the context. 9337 * Call the given callback function for eache cache item in the context.
9339 */ 9338 */
9339 @deprecated
9340 void visitCacheItems(void callback(Source source, SourceEntry dartEntry, 9340 void visitCacheItems(void callback(Source source, SourceEntry dartEntry,
9341 DataDescriptor rowDesc, CacheState state)); 9341 DataDescriptor rowDesc, CacheState state));
9342
9343 /**
9344 * Visit all entries of the content cache.
9345 */
9346 void visitContentCache(ContentCacheVisitor visitor);
9342 } 9347 }
9343 9348
9344 /** 9349 /**
9345 * An object that can be used to receive information about errors within the 9350 * An object that can be used to receive information about errors within the
9346 * analysis engine. Implementations usually write this information to a file, 9351 * analysis engine. Implementations usually write this information to a file,
9347 * but can also record the information for later use (such as during testing) or 9352 * but can also record the information for later use (such as during testing) or
9348 * even ignore the information. 9353 * even ignore the information.
9349 */ 9354 */
9350 abstract class Logger { 9355 abstract class Logger {
9351 /** 9356 /**
(...skipping 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
11862 PendingFuture pendingFuture = 11867 PendingFuture pendingFuture =
11863 new PendingFuture<T>(_context, source, computeValue); 11868 new PendingFuture<T>(_context, source, computeValue);
11864 if (!pendingFuture.evaluate(sourceEntry)) { 11869 if (!pendingFuture.evaluate(sourceEntry)) {
11865 _context._pendingFutureSources 11870 _context._pendingFutureSources
11866 .putIfAbsent(source, () => <PendingFuture>[]) 11871 .putIfAbsent(source, () => <PendingFuture>[])
11867 .add(pendingFuture); 11872 .add(pendingFuture);
11868 } 11873 }
11869 return pendingFuture.future; 11874 return pendingFuture.future;
11870 } 11875 }
11871 } 11876 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698