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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1181603004: Add AnalysisContext.onResultComputed(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rename ResultComputedEvent -> ComputedResult. Created 5 years, 6 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/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/driver.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/src/context/cache.dart'; 10 import 'package:analyzer/src/context/cache.dart';
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2866 void _addPublicNames(CompilationUnitElement compilationUnit) { 2866 void _addPublicNames(CompilationUnitElement compilationUnit) {
2867 compilationUnit.accessors.forEach(_addIfPublic); 2867 compilationUnit.accessors.forEach(_addIfPublic);
2868 compilationUnit.enums.forEach(_addIfPublic); 2868 compilationUnit.enums.forEach(_addIfPublic);
2869 compilationUnit.functions.forEach(_addIfPublic); 2869 compilationUnit.functions.forEach(_addIfPublic);
2870 compilationUnit.functionTypeAliases.forEach(_addIfPublic); 2870 compilationUnit.functionTypeAliases.forEach(_addIfPublic);
2871 compilationUnit.types.forEach(_addIfPublic); 2871 compilationUnit.types.forEach(_addIfPublic);
2872 } 2872 }
2873 } 2873 }
2874 2874
2875 /** 2875 /**
2876 * A task that finishes resolution by requesting [RESOLVED_UNIT6] for every 2876 * A task that finishes resolution by requesting [RESOLVED_UNIT_NO_CONSTANTS] fo r every
2877 * unit in the libraries closure and produces [LIBRARY_ELEMENT]. 2877 * unit in the libraries closure and produces [LIBRARY_ELEMENT].
2878 */ 2878 */
2879 class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask { 2879 class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
2880 /** 2880 /**
2881 * The name of the [LIBRARY_ELEMENT6] input. 2881 * The name of the [LIBRARY_ELEMENT6] input.
2882 */ 2882 */
2883 static const String LIBRARY_INPUT = 'LIBRARY_INPUT'; 2883 static const String LIBRARY_INPUT = 'LIBRARY_INPUT';
2884 2884
2885 /** 2885 /**
2886 * The task descriptor describing this kind of task. 2886 * The task descriptor describing this kind of task.
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
3519 @override 3519 @override
3520 bool moveNext() { 3520 bool moveNext() {
3521 if (_newSources.isEmpty) { 3521 if (_newSources.isEmpty) {
3522 return false; 3522 return false;
3523 } 3523 }
3524 currentTarget = _newSources.first; 3524 currentTarget = _newSources.first;
3525 _newSources.remove(currentTarget); 3525 _newSources.remove(currentTarget);
3526 return true; 3526 return true;
3527 } 3527 }
3528 } 3528 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698