| 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 10514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10525 List<AnalysisError> get errors => _errors; | 10525 List<AnalysisError> get errors => _errors; |
| 10526 | 10526 |
| 10527 @override | 10527 @override |
| 10528 String get taskDescription => "generate errors and warnings for ${source.fullN
ame}"; | 10528 String get taskDescription => "generate errors and warnings for ${source.fullN
ame}"; |
| 10529 | 10529 |
| 10530 @override | 10530 @override |
| 10531 void internalPerform() { | 10531 void internalPerform() { |
| 10532 TimeCounter_TimeCounterHandle timeCounter = PerformanceStatistics.errors.sta
rt(); | 10532 TimeCounter_TimeCounterHandle timeCounter = PerformanceStatistics.errors.sta
rt(); |
| 10533 try { | 10533 try { |
| 10534 RecordingErrorListener errorListener = new RecordingErrorListener(); | 10534 RecordingErrorListener errorListener = new RecordingErrorListener(); |
| 10535 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 10535 ErrorReporter errorReporter = new ErrorReporterImpl(errorListener, source)
; |
| 10536 TypeProvider typeProvider = context.typeProvider; | 10536 TypeProvider typeProvider = context.typeProvider; |
| 10537 // | 10537 // |
| 10538 // Validate the directives | 10538 // Validate the directives |
| 10539 // | 10539 // |
| 10540 validateDirectives(context, source, _unit, errorListener); | 10540 validateDirectives(context, source, _unit, errorListener); |
| 10541 // | 10541 // |
| 10542 // Use the ConstantVerifier to verify the use of constants. This needs to
happen before using | 10542 // Use the ConstantVerifier to verify the use of constants. This needs to
happen before using |
| 10543 // the ErrorVerifier because some error codes need the computed constant v
alues. | 10543 // the ErrorVerifier because some error codes need the computed constant v
alues. |
| 10544 // | 10544 // |
| 10545 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, li
braryElement, typeProvider); | 10545 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, li
braryElement, typeProvider); |
| (...skipping 4032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14578 // Resolve the rest of the structure | 14578 // Resolve the rest of the structure |
| 14579 // | 14579 // |
| 14580 InheritanceManager inheritanceManager = new InheritanceManager(_libraryEleme
nt); | 14580 InheritanceManager inheritanceManager = new InheritanceManager(_libraryEleme
nt); |
| 14581 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement,
source, typeProvider, inheritanceManager, errorListener); | 14581 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement,
source, typeProvider, inheritanceManager, errorListener); |
| 14582 unit.accept(resolverVisitor); | 14582 unit.accept(resolverVisitor); |
| 14583 // | 14583 // |
| 14584 // Perform additional error checking. | 14584 // Perform additional error checking. |
| 14585 // | 14585 // |
| 14586 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er
rors.start(); | 14586 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er
rors.start(); |
| 14587 try { | 14587 try { |
| 14588 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 14588 ErrorReporter errorReporter = new ErrorReporterImpl(errorListener, source)
; |
| 14589 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle
ment, typeProvider, inheritanceManager); | 14589 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle
ment, typeProvider, inheritanceManager); |
| 14590 unit.accept(errorVerifier); | 14590 unit.accept(errorVerifier); |
| 14591 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _l
ibraryElement, typeProvider); | 14591 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _l
ibraryElement, typeProvider); |
| 14592 unit.accept(constantVerifier); | 14592 unit.accept(constantVerifier); |
| 14593 } finally { | 14593 } finally { |
| 14594 counterHandleErrors.stop(); | 14594 counterHandleErrors.stop(); |
| 14595 } | 14595 } |
| 14596 // | 14596 // |
| 14597 // Capture the results. | 14597 // Capture the results. |
| 14598 // | 14598 // |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15640 _index++; | 15640 _index++; |
| 15641 if (_index >= _manager._workQueues[_queueIndex].length) { | 15641 if (_index >= _manager._workQueues[_queueIndex].length) { |
| 15642 _index = 0; | 15642 _index = 0; |
| 15643 _queueIndex++; | 15643 _queueIndex++; |
| 15644 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 15644 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
| 15645 _queueIndex++; | 15645 _queueIndex++; |
| 15646 } | 15646 } |
| 15647 } | 15647 } |
| 15648 } | 15648 } |
| 15649 } | 15649 } |
| OLD | NEW |