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

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

Issue 1121963002: Record dependencies and invalidate results. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and fixes for review comments. Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/context/context.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/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 @override 328 @override
329 void internalPerform() { 329 void internalPerform() {
330 List<AnalysisError> errors = <AnalysisError>[]; 330 List<AnalysisError> errors = <AnalysisError>[];
331 // 331 //
332 // Prepare inputs. 332 // Prepare inputs.
333 // 333 //
334 ClassElementImpl classElement = this.target; 334 ClassElementImpl classElement = this.target;
335 List<ConstructorElement> superConstructors = inputs[SUPER_CONSTRUCTORS]; 335 List<ConstructorElement> superConstructors = inputs[SUPER_CONSTRUCTORS];
336 DartType superType = classElement.supertype; 336 DartType superType = classElement.supertype;
337 if (superType == null) {
338 return;
339 }
337 // 340 //
338 // Shortcut for ClassElement(s) without implicit constructors. 341 // Shortcut for ClassElement(s) without implicit constructors.
339 // 342 //
340 if (superConstructors == null) { 343 if (superConstructors == null) {
341 outputs[CONSTRUCTORS] = classElement.constructors; 344 outputs[CONSTRUCTORS] = classElement.constructors;
342 outputs[CONSTRUCTORS_ERRORS] = AnalysisError.NO_ERRORS; 345 outputs[CONSTRUCTORS_ERRORS] = AnalysisError.NO_ERRORS;
343 return; 346 return;
344 } 347 }
345 // 348 //
346 // ClassTypeAlias 349 // ClassTypeAlias
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 @override 2607 @override
2605 bool moveNext() { 2608 bool moveNext() {
2606 if (_newSources.isEmpty) { 2609 if (_newSources.isEmpty) {
2607 return false; 2610 return false;
2608 } 2611 }
2609 currentTarget = _newSources.first; 2612 currentTarget = _newSources.first;
2610 _newSources.remove(currentTarget); 2613 _newSources.remove(currentTarget);
2611 return true; 2614 return true;
2612 } 2615 }
2613 } 2616 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698