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

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

Issue 2171673002: Fix for limited invalidation in the middle, and the unlimited invalidation for an exported library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update tasks. 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
« no previous file with comments | « pkg/analyzer/doc/tasks.html ('k') | pkg/analyzer/test/src/context/context_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) 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 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 5700 matching lines...) Expand 10 before | Expand all | Expand 10 after
5711 * given [target]. 5711 * given [target].
5712 */ 5712 */
5713 static Map<String, TaskInput> buildInputs(AnalysisTarget target) { 5713 static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
5714 // TODO(brianwilkerson) This task updates the element model to have type 5714 // TODO(brianwilkerson) This task updates the element model to have type
5715 // information and updates the class hierarchy. It should produce a new 5715 // information and updates the class hierarchy. It should produce a new
5716 // version of the element model in order to record those changes. 5716 // version of the element model in order to record those changes.
5717 LibrarySpecificUnit unit = target; 5717 LibrarySpecificUnit unit = target;
5718 return <String, TaskInput>{ 5718 return <String, TaskInput>{
5719 'importsExportNamespace': 5719 'importsExportNamespace':
5720 IMPORTED_LIBRARIES.of(unit.library).toMapOf(LIBRARY_ELEMENT4), 5720 IMPORTED_LIBRARIES.of(unit.library).toMapOf(LIBRARY_ELEMENT4),
5721 'dependOnAllExportedSources':
5722 IMPORTED_LIBRARIES.of(unit.library).toMapOf(EXPORT_SOURCE_CLOSURE),
5721 LIBRARY_INPUT: LIBRARY_ELEMENT4.of(unit.library), 5723 LIBRARY_INPUT: LIBRARY_ELEMENT4.of(unit.library),
5722 UNIT_INPUT: RESOLVED_UNIT3.of(unit), 5724 UNIT_INPUT: RESOLVED_UNIT3.of(unit),
5723 TYPE_PROVIDER_INPUT: TYPE_PROVIDER.of(AnalysisContextTarget.request) 5725 TYPE_PROVIDER_INPUT: TYPE_PROVIDER.of(AnalysisContextTarget.request)
5724 }; 5726 };
5725 } 5727 }
5726 5728
5727 /** 5729 /**
5728 * Create a [ResolveTopLevelUnitTypeBoundsTask] based on the given [target] in 5730 * Create a [ResolveTopLevelUnitTypeBoundsTask] based on the given [target] in
5729 * the given [context]. 5731 * the given [context].
5730 */ 5732 */
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
6522 6524
6523 @override 6525 @override
6524 bool moveNext() { 6526 bool moveNext() {
6525 if (_newSources.isEmpty) { 6527 if (_newSources.isEmpty) {
6526 return false; 6528 return false;
6527 } 6529 }
6528 currentTarget = _newSources.removeLast(); 6530 currentTarget = _newSources.removeLast();
6529 return true; 6531 return true;
6530 } 6532 }
6531 } 6533 }
OLDNEW
« no previous file with comments | « pkg/analyzer/doc/tasks.html ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698