OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine; | 8 library engine; |
9 | 9 |
10 import 'dart:collection'; | 10 import 'dart:collection'; |
(...skipping 9387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9398 CompilationUnit get compilationUnit => _updatedUnit; | 9398 CompilationUnit get compilationUnit => _updatedUnit; |
9399 | 9399 |
9400 /** | 9400 /** |
9401 * Return the source that is to be incrementally analyzed. | 9401 * Return the source that is to be incrementally analyzed. |
9402 * | 9402 * |
9403 * @return the source | 9403 * @return the source |
9404 */ | 9404 */ |
9405 Source get source => cache != null ? cache.source : null; | 9405 Source get source => cache != null ? cache.source : null; |
9406 | 9406 |
9407 @override | 9407 @override |
9408 String get taskDescription => "incremental analysis ${(cache != null ? cache.s
ource : "null")}"; | 9408 String get taskDescription => "incremental analysis ${cache != null ? cache.so
urce : "null"}"; |
9409 | 9409 |
9410 @override | 9410 @override |
9411 void internalPerform() { | 9411 void internalPerform() { |
9412 if (cache == null) { | 9412 if (cache == null) { |
9413 return; | 9413 return; |
9414 } | 9414 } |
9415 // Only handle small changes | 9415 // Only handle small changes |
9416 if (cache.oldLength > 0 || cache.newLength > 30) { | 9416 if (cache.oldLength > 0 || cache.newLength > 30) { |
9417 return; | 9417 return; |
9418 } | 9418 } |
(...skipping 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13472 _index++; | 13472 _index++; |
13473 if (_index >= _manager._workQueues[_queueIndex].length) { | 13473 if (_index >= _manager._workQueues[_queueIndex].length) { |
13474 _index = 0; | 13474 _index = 0; |
13475 _queueIndex++; | 13475 _queueIndex++; |
13476 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 13476 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
13477 _queueIndex++; | 13477 _queueIndex++; |
13478 } | 13478 } |
13479 } | 13479 } |
13480 } | 13480 } |
13481 } | 13481 } |
OLD | NEW |