| OLD | NEW | 
|---|
| 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 861  * In addition to what is true of a [RESOLVED_UNIT8], tasks that use this value | 861  * In addition to what is true of a [RESOLVED_UNIT8], tasks that use this value | 
| 862  * as an input can assume that the types of static variables have been inferred. | 862  * as an input can assume that the types of static variables have been inferred. | 
| 863  * | 863  * | 
| 864  * The result is only available for [LibrarySpecificUnit]s. | 864  * The result is only available for [LibrarySpecificUnit]s. | 
| 865  */ | 865  */ | 
| 866 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT9 = | 866 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT9 = | 
| 867     new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT9', null, | 867     new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT9', null, | 
| 868         cachingPolicy: AST_CACHING_POLICY); | 868         cachingPolicy: AST_CACHING_POLICY); | 
| 869 | 869 | 
| 870 /** | 870 /** | 
|  | 871  * List of all `RESOLVED_UNITx` results. | 
|  | 872  */ | 
|  | 873 final List<ResultDescriptor<CompilationUnit>> RESOLVED_UNIT_RESULTS = | 
|  | 874     <ResultDescriptor<CompilationUnit>>[ | 
|  | 875   RESOLVED_UNIT1, | 
|  | 876   RESOLVED_UNIT2, | 
|  | 877   RESOLVED_UNIT3, | 
|  | 878   RESOLVED_UNIT4, | 
|  | 879   RESOLVED_UNIT5, | 
|  | 880   RESOLVED_UNIT6, | 
|  | 881   RESOLVED_UNIT7, | 
|  | 882   RESOLVED_UNIT8, | 
|  | 883   RESOLVED_UNIT9, | 
|  | 884   RESOLVED_UNIT10, | 
|  | 885   RESOLVED_UNIT11, | 
|  | 886   RESOLVED_UNIT12, | 
|  | 887   RESOLVED_UNIT13, | 
|  | 888   RESOLVED_UNIT | 
|  | 889 ]; | 
|  | 890 | 
|  | 891 /** | 
| 871  * The errors produced while scanning a compilation unit. | 892  * The errors produced while scanning a compilation unit. | 
| 872  * | 893  * | 
| 873  * The list will be empty if there were no errors, but will not be `null`. | 894  * The list will be empty if there were no errors, but will not be `null`. | 
| 874  * | 895  * | 
| 875  * The result is only available for [Source]s representing a compilation unit. | 896  * The result is only available for [Source]s representing a compilation unit. | 
| 876  */ | 897  */ | 
| 877 final ListResultDescriptor<AnalysisError> SCAN_ERRORS = | 898 final ListResultDescriptor<AnalysisError> SCAN_ERRORS = | 
| 878     new ListResultDescriptor<AnalysisError>( | 899     new ListResultDescriptor<AnalysisError>( | 
| 879         'SCAN_ERRORS', AnalysisError.NO_ERRORS); | 900         'SCAN_ERRORS', AnalysisError.NO_ERRORS); | 
| 880 | 901 | 
| (...skipping 4690 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5571   } | 5592   } | 
| 5572 | 5593 | 
| 5573   /** | 5594   /** | 
| 5574    * Return a map from the names of the inputs of this kind of task to the task | 5595    * Return a map from the names of the inputs of this kind of task to the task | 
| 5575    * input descriptors describing those inputs for a task with the given | 5596    * input descriptors describing those inputs for a task with the given | 
| 5576    * [target]. | 5597    * [target]. | 
| 5577    */ | 5598    */ | 
| 5578   static Map<String, TaskInput> buildInputs(AnalysisTarget target) { | 5599   static Map<String, TaskInput> buildInputs(AnalysisTarget target) { | 
| 5579     if (target is Source) { | 5600     if (target is Source) { | 
| 5580       return <String, TaskInput>{ | 5601       return <String, TaskInput>{ | 
| 5581         CONTENT_INPUT_NAME: CONTENT.of(target), | 5602         CONTENT_INPUT_NAME: CONTENT.of(target, flushOnAccess: true), | 
| 5582         MODIFICATION_TIME_INPUT: MODIFICATION_TIME.of(target) | 5603         MODIFICATION_TIME_INPUT: MODIFICATION_TIME.of(target) | 
| 5583       }; | 5604       }; | 
| 5584     } else if (target is DartScript) { | 5605     } else if (target is DartScript) { | 
| 5585       // This task does not use the following input; it is included only to add | 5606       // This task does not use the following input; it is included only to add | 
| 5586       // a dependency between this value and the containing source so that when | 5607       // a dependency between this value and the containing source so that when | 
| 5587       // the containing source is modified these results will be invalidated. | 5608       // the containing source is modified these results will be invalidated. | 
| 5588       Source source = target.source; | 5609       Source source = target.source; | 
| 5589       return <String, TaskInput>{ | 5610       return <String, TaskInput>{ | 
| 5590         '-': DART_SCRIPTS.of(source), | 5611         '-': DART_SCRIPTS.of(source), | 
| 5591         MODIFICATION_TIME_INPUT: MODIFICATION_TIME.of(source) | 5612         MODIFICATION_TIME_INPUT: MODIFICATION_TIME.of(source) | 
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5967 | 5988 | 
| 5968   @override | 5989   @override | 
| 5969   bool moveNext() { | 5990   bool moveNext() { | 
| 5970     if (_newSources.isEmpty) { | 5991     if (_newSources.isEmpty) { | 
| 5971       return false; | 5992       return false; | 
| 5972     } | 5993     } | 
| 5973     currentTarget = _newSources.removeLast(); | 5994     currentTarget = _newSources.removeLast(); | 
| 5974     return true; | 5995     return true; | 
| 5975   } | 5996   } | 
| 5976 } | 5997 } | 
| OLD | NEW | 
|---|