| 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 8501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8512 || descriptor == SOURCE_KIND | 8512 || descriptor == SOURCE_KIND |
| 8513 || descriptor == TOKEN_STREAM | 8513 || descriptor == TOKEN_STREAM |
| 8514 || super._isValidDescriptor(descriptor); | 8514 || super._isValidDescriptor(descriptor); |
| 8515 } | 8515 } |
| 8516 | 8516 |
| 8517 /** | 8517 /** |
| 8518 * Return `true` if the [descriptor] is valid for this entry when the data is | 8518 * Return `true` if the [descriptor] is valid for this entry when the data is |
| 8519 * relative to a library. | 8519 * relative to a library. |
| 8520 */ | 8520 */ |
| 8521 bool _isValidLibraryDescriptor(DataDescriptor descriptor) { | 8521 bool _isValidLibraryDescriptor(DataDescriptor descriptor) { |
| 8522 return descriptor == BUILT_ELEMENT | 8522 return descriptor == ANGULAR_ERRORS |
| 8523 || descriptor == BUILT_ELEMENT |
| 8523 || descriptor == BUILT_UNIT | 8524 || descriptor == BUILT_UNIT |
| 8524 || descriptor == HINTS | 8525 || descriptor == HINTS |
| 8525 || descriptor == RESOLUTION_ERRORS | 8526 || descriptor == RESOLUTION_ERRORS |
| 8526 || descriptor == RESOLVED_UNIT | 8527 || descriptor == RESOLVED_UNIT |
| 8527 || descriptor == VERIFICATION_ERRORS; | 8528 || descriptor == VERIFICATION_ERRORS; |
| 8528 } | 8529 } |
| 8529 | 8530 |
| 8530 /** | 8531 /** |
| 8531 * Given that the specified flag is being transitioned to the given state, set
the value of the | 8532 * Given that the specified flag is being transitioned to the given state, set
the value of the |
| 8532 * flag to the value that should be kept in the cache. | 8533 * flag to the value that should be kept in the cache. |
| (...skipping 3448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11981 } | 11982 } |
| 11982 | 11983 |
| 11983 /** | 11984 /** |
| 11984 * Record that an exception occurred while attempting to resolve the source | 11985 * Record that an exception occurred while attempting to resolve the source |
| 11985 * associated with this state. | 11986 * associated with this state. |
| 11986 */ | 11987 */ |
| 11987 void recordResolutionError() { | 11988 void recordResolutionError() { |
| 11988 setState(DartEntry.RESOLVED_UNIT, CacheState.ERROR); | 11989 setState(DartEntry.RESOLVED_UNIT, CacheState.ERROR); |
| 11989 setState(DartEntry.RESOLUTION_ERRORS, CacheState.ERROR); | 11990 setState(DartEntry.RESOLUTION_ERRORS, CacheState.ERROR); |
| 11990 recordVerificationError(); | 11991 recordVerificationError(); |
| 11992 setState(DartEntry.ANGULAR_ERRORS, CacheState.ERROR); |
| 11991 } | 11993 } |
| 11992 | 11994 |
| 11993 /** | 11995 /** |
| 11994 * Record that an exception occurred while attempting to scan or parse the | 11996 * Record that an exception occurred while attempting to scan or parse the |
| 11995 * source associated with this entry. This will set the state of all | 11997 * source associated with this entry. This will set the state of all |
| 11996 * resolution-based information as being in error. | 11998 * resolution-based information as being in error. |
| 11997 */ | 11999 */ |
| 11998 void recordResolutionErrorsInAllLibraries() { | 12000 void recordResolutionErrorsInAllLibraries() { |
| 11999 recordBuildElementError(); | 12001 recordBuildElementError(); |
| 12000 if (_nextState != null) { | 12002 if (_nextState != null) { |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13472 _index++; | 13474 _index++; |
| 13473 if (_index >= _manager._workQueues[_queueIndex].length) { | 13475 if (_index >= _manager._workQueues[_queueIndex].length) { |
| 13474 _index = 0; | 13476 _index = 0; |
| 13475 _queueIndex++; | 13477 _queueIndex++; |
| 13476 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 13478 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
| 13477 _queueIndex++; | 13479 _queueIndex++; |
| 13478 } | 13480 } |
| 13479 } | 13481 } |
| 13480 } | 13482 } |
| 13481 } | 13483 } |
| OLD | NEW |