| 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 28 matching lines...) Expand all Loading... |
| 39 import 'package:analyzer/src/task/strong/checker.dart'; | 39 import 'package:analyzer/src/task/strong/checker.dart'; |
| 40 import 'package:analyzer/src/task/strong_mode.dart'; | 40 import 'package:analyzer/src/task/strong_mode.dart'; |
| 41 import 'package:analyzer/task/dart.dart'; | 41 import 'package:analyzer/task/dart.dart'; |
| 42 import 'package:analyzer/task/general.dart'; | 42 import 'package:analyzer/task/general.dart'; |
| 43 import 'package:analyzer/task/model.dart'; | 43 import 'package:analyzer/task/model.dart'; |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * The [ResultCachingPolicy] for ASTs. | 46 * The [ResultCachingPolicy] for ASTs. |
| 47 */ | 47 */ |
| 48 const ResultCachingPolicy AST_CACHING_POLICY = | 48 const ResultCachingPolicy AST_CACHING_POLICY = |
| 49 const SimpleResultCachingPolicy(8192, 8192); | 49 const SimpleResultCachingPolicy(16384, 16384); |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * The [ResultCachingPolicy] for [Element]s. | 52 * The [ResultCachingPolicy] for [Element]s. |
| 53 */ | 53 */ |
| 54 const ResultCachingPolicy ELEMENT_CACHING_POLICY = | 54 const ResultCachingPolicy ELEMENT_CACHING_POLICY = |
| 55 const SimpleResultCachingPolicy(-1, -1); | 55 const SimpleResultCachingPolicy(-1, -1); |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * The [ResultCachingPolicy] for [TOKEN_STREAM]. | 58 * The [ResultCachingPolicy] for [TOKEN_STREAM]. |
| 59 */ | 59 */ |
| (...skipping 5294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5354 | 5354 |
| 5355 @override | 5355 @override |
| 5356 bool moveNext() { | 5356 bool moveNext() { |
| 5357 if (_newSources.isEmpty) { | 5357 if (_newSources.isEmpty) { |
| 5358 return false; | 5358 return false; |
| 5359 } | 5359 } |
| 5360 currentTarget = _newSources.removeLast(); | 5360 currentTarget = _newSources.removeLast(); |
| 5361 return true; | 5361 return true; |
| 5362 } | 5362 } |
| 5363 } | 5363 } |
| OLD | NEW |