| 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 10347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10358 | 10358 |
| 10359 /** | 10359 /** |
| 10360 * Call the given callback function for eache cache item in the context. | 10360 * Call the given callback function for eache cache item in the context. |
| 10361 */ | 10361 */ |
| 10362 void visitCacheItems(void callback(Source source, SourceEntry dartEntry, | 10362 void visitCacheItems(void callback(Source source, SourceEntry dartEntry, |
| 10363 DataDescriptor rowDesc, | 10363 DataDescriptor rowDesc, |
| 10364 CacheState state)); | 10364 CacheState state)); |
| 10365 } | 10365 } |
| 10366 | 10366 |
| 10367 /** | 10367 /** |
| 10368 * The interface `Logger` defines the behavior of objects that can be used to re
ceive | 10368 * A `Logger` is an object that can be used to receive information about errors |
| 10369 * information about errors within the analysis engine. Implementations usually
write this | 10369 * within the analysis engine. Implementations usually write this information to |
| 10370 * information to a file, but can also record the information for later use (suc
h as during testing) | 10370 * a file, but can also record the information for later use (such as during |
| 10371 * or even ignore the information. | 10371 * testing) or even ignore the information. |
| 10372 */ | 10372 */ |
| 10373 abstract class Logger { | 10373 abstract class Logger { |
| 10374 static final Logger NULL = new Logger_NullLogger(); | 10374 /** |
| 10375 * A logger that ignores all logging. |
| 10376 */ |
| 10377 static final Logger NULL = new NullLogger(); |
| 10375 | 10378 |
| 10376 /** | 10379 /** |
| 10377 * Log the given message as an error. | 10380 * Log the given message as an error. The [message] is expected to be an |
| 10378 * | 10381 * explanation of why the error occurred or what it means. The [exception] is |
| 10379 * @param message an explanation of why the error occurred or what it means | 10382 * expected to be the reason for the error. At least one argument must be |
| 10383 * provided. |
| 10380 */ | 10384 */ |
| 10381 void logError(String message); | 10385 void logError(String message, [CaughtException exception]); |
| 10382 | 10386 |
| 10383 /** | 10387 /** |
| 10384 * Log the given exception as one representing an error. | 10388 * Log the given exception as one representing an error. |
| 10385 * | 10389 * |
| 10386 * @param message an explanation of why the error occurred or what it means | 10390 * @param message an explanation of why the error occurred or what it means |
| 10387 * @param exception the exception being logged | 10391 * @param exception the exception being logged |
| 10388 */ | 10392 */ |
| 10389 void logError2(String message, Exception exception); | 10393 @deprecated |
| 10394 void logError2(String message, Object exception); |
| 10390 | 10395 |
| 10391 /** | 10396 /** |
| 10392 * Log the given informational message. | 10397 * Log the given informational message. The [message] is expected to be an |
| 10393 * | 10398 * explanation of why the error occurred or what it means. The [exception] is |
| 10394 * @param message an explanation of why the error occurred or what it means | 10399 * expected to be the reason for the error. |
| 10395 * @param exception the exception being logged | |
| 10396 */ | 10400 */ |
| 10397 void logInformation(String message); | 10401 void logInformation(String message, [CaughtException exception]); |
| 10398 | 10402 |
| 10399 /** | 10403 /** |
| 10400 * Log the given exception as one representing an informational message. | 10404 * Log the given exception as one representing an informational message. |
| 10401 * | 10405 * |
| 10402 * @param message an explanation of why the error occurred or what it means | 10406 * @param message an explanation of why the error occurred or what it means |
| 10403 * @param exception the exception being logged | 10407 * @param exception the exception being logged |
| 10404 */ | 10408 */ |
| 10405 void logInformation2(String message, Exception exception); | 10409 @deprecated |
| 10410 void logInformation2(String message, Object exception); |
| 10406 } | 10411 } |
| 10407 | 10412 |
| 10408 /** | 10413 /** |
| 10409 * Implementation of [Logger] that does nothing. | 10414 * An implementation of [Logger] that does nothing. |
| 10410 */ | 10415 */ |
| 10411 class Logger_NullLogger implements Logger { | 10416 class NullLogger implements Logger { |
| 10412 @override | 10417 @override |
| 10413 void logError(String message) { | 10418 void logError(String message, [CaughtException exception]) { |
| 10414 } | 10419 } |
| 10415 | 10420 |
| 10416 @override | 10421 @override |
| 10417 void logError2(String message, Exception exception) { | 10422 void logError2(String message, Object exception) { |
| 10418 } | 10423 } |
| 10419 | 10424 |
| 10420 @override | 10425 @override |
| 10421 void logInformation(String message) { | 10426 void logInformation(String message, [CaughtException exception]) { |
| 10422 } | 10427 } |
| 10423 | 10428 |
| 10424 @override | 10429 @override |
| 10425 void logInformation2(String message, Exception exception) { | 10430 void logInformation2(String message, Object exception) { |
| 10426 } | 10431 } |
| 10427 } | 10432 } |
| 10428 | 10433 |
| 10429 /** | 10434 /** |
| 10430 * [NgComponentElementProcessor] applies [AngularComponentElement] by parsing ma
pped | 10435 * [NgComponentElementProcessor] applies [AngularComponentElement] by parsing ma
pped |
| 10431 * attributes as expressions. | 10436 * attributes as expressions. |
| 10432 */ | 10437 */ |
| 10433 class NgComponentElementProcessor extends NgDirectiveProcessor { | 10438 class NgComponentElementProcessor extends NgDirectiveProcessor { |
| 10434 final AngularComponentElement _element; | 10439 final AngularComponentElement _element; |
| 10435 | 10440 |
| (...skipping 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13538 _index++; | 13543 _index++; |
| 13539 if (_index >= _manager._workQueues[_queueIndex].length) { | 13544 if (_index >= _manager._workQueues[_queueIndex].length) { |
| 13540 _index = 0; | 13545 _index = 0; |
| 13541 _queueIndex++; | 13546 _queueIndex++; |
| 13542 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 13547 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
| 13543 _queueIndex++; | 13548 _queueIndex++; |
| 13544 } | 13549 } |
| 13545 } | 13550 } |
| 13546 } | 13551 } |
| 13547 } | 13552 } |
| OLD | NEW |