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

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

Issue 2303213003: RESOLVED_UNIT2 and RESOLVED_UNIT3 can be reused. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | 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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 /** 778 /**
779 * The partially resolved [CompilationUnit] associated with a compilation unit. 779 * The partially resolved [CompilationUnit] associated with a compilation unit.
780 * 780 *
781 * In addition to what is true of a [RESOLVED_UNIT1], tasks that use this value 781 * In addition to what is true of a [RESOLVED_UNIT1], tasks that use this value
782 * as an input can assume that its directives have been resolved. 782 * as an input can assume that its directives have been resolved.
783 * 783 *
784 * The result is only available for [LibrarySpecificUnit]s. 784 * The result is only available for [LibrarySpecificUnit]s.
785 */ 785 */
786 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT2 = 786 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT2 =
787 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT2', null, 787 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT2', null,
788 cachingPolicy: AST_CACHING_POLICY); 788 cachingPolicy: AST_REUSABLE_CACHING_POLICY);
789 789
790 /** 790 /**
791 * The partially resolved [CompilationUnit] associated with a compilation unit. 791 * The partially resolved [CompilationUnit] associated with a compilation unit.
792 * 792 *
793 * Tasks that use this value as an input can assume that the [SimpleIdentifier]s 793 * Tasks that use this value as an input can assume that the [SimpleIdentifier]s
794 * at all declaration sites have been bound to the element defined by the 794 * at all declaration sites have been bound to the element defined by the
795 * declaration, including the constants defined in an 'enum' declaration. 795 * declaration, including the constants defined in an 'enum' declaration.
796 * 796 *
797 * The result is only available for [LibrarySpecificUnit]s. 797 * The result is only available for [LibrarySpecificUnit]s.
798 */ 798 */
799 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT3 = 799 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT3 =
800 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT3', null, 800 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT3', null,
801 cachingPolicy: AST_CACHING_POLICY); 801 cachingPolicy: AST_REUSABLE_CACHING_POLICY);
802 802
803 /** 803 /**
804 * The partially resolved [CompilationUnit] associated with a compilation unit. 804 * The partially resolved [CompilationUnit] associated with a compilation unit.
805 * 805 *
806 * In addition to what is true of a [RESOLVED_UNIT3], tasks that use this value 806 * In addition to what is true of a [RESOLVED_UNIT3], tasks that use this value
807 * as an input can assume that the types associated with type bounds have been 807 * as an input can assume that the types associated with type bounds have been
808 * resolved. 808 * resolved.
809 * 809 *
810 * The result is only available for [LibrarySpecificUnit]s. 810 * The result is only available for [LibrarySpecificUnit]s.
811 */ 811 */
(...skipping 5541 matching lines...) Expand 10 before | Expand all | Expand 10 after
6353 6353
6354 @override 6354 @override
6355 bool moveNext() { 6355 bool moveNext() {
6356 if (_newSources.isEmpty) { 6356 if (_newSources.isEmpty) {
6357 return false; 6357 return false;
6358 } 6358 }
6359 currentTarget = _newSources.removeLast(); 6359 currentTarget = _newSources.removeLast();
6360 return true; 6360 return true;
6361 } 6361 }
6362 } 6362 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698