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 8794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8805 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 8805 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); |
8806 TypeProvider typeProvider = context.typeProvider; | 8806 TypeProvider typeProvider = context.typeProvider; |
8807 // | 8807 // |
8808 // Validate the directives | 8808 // Validate the directives |
8809 // | 8809 // |
8810 validateDirectives(context, source, _unit, errorListener); | 8810 validateDirectives(context, source, _unit, errorListener); |
8811 // | 8811 // |
8812 // Use the ConstantVerifier to verify the use of constants. This needs to
happen before using | 8812 // Use the ConstantVerifier to verify the use of constants. This needs to
happen before using |
8813 // the ErrorVerifier because some error codes need the computed constant v
alues. | 8813 // the ErrorVerifier because some error codes need the computed constant v
alues. |
8814 // | 8814 // |
8815 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, li
braryElement, typeProvider); | 8815 // TODO(paulberry): as a temporary workaround for issue 21572, |
8816 _unit.accept(constantVerifier); | 8816 // ConstantVerifier is being run right after ConstantValueComputer, so we |
| 8817 // don't need to run it here. Once issue 21572 is fixed, re-enable the |
| 8818 // call to ConstantVerifier. |
| 8819 // ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter,
libraryElement, typeProvider); |
| 8820 // _unit.accept(constantVerifier); |
8817 // | 8821 // |
8818 // Use the ErrorVerifier to compute the rest of the errors. | 8822 // Use the ErrorVerifier to compute the rest of the errors. |
8819 // | 8823 // |
8820 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, libraryElem
ent, typeProvider, new InheritanceManager(libraryElement)); | 8824 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, libraryElem
ent, typeProvider, new InheritanceManager(libraryElement)); |
8821 _unit.accept(errorVerifier); | 8825 _unit.accept(errorVerifier); |
8822 _errors = errorListener.getErrorsForSource(source); | 8826 _errors = errorListener.getErrorsForSource(source); |
8823 } finally { | 8827 } finally { |
8824 timeCounter.stop(); | 8828 timeCounter.stop(); |
8825 } | 8829 } |
8826 } | 8830 } |
(...skipping 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12625 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement,
source, typeProvider, inheritanceManager, errorListener); | 12629 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement,
source, typeProvider, inheritanceManager, errorListener); |
12626 unit.accept(resolverVisitor); | 12630 unit.accept(resolverVisitor); |
12627 // | 12631 // |
12628 // Perform additional error checking. | 12632 // Perform additional error checking. |
12629 // | 12633 // |
12630 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er
rors.start(); | 12634 TimeCounter_TimeCounterHandle counterHandleErrors = PerformanceStatistics.er
rors.start(); |
12631 try { | 12635 try { |
12632 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 12636 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); |
12633 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle
ment, typeProvider, inheritanceManager); | 12637 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, _libraryEle
ment, typeProvider, inheritanceManager); |
12634 unit.accept(errorVerifier); | 12638 unit.accept(errorVerifier); |
12635 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, _l
ibraryElement, typeProvider); | 12639 // TODO(paulberry): as a temporary workaround for issue 21572, |
12636 unit.accept(constantVerifier); | 12640 // ConstantVerifier is being run right after ConstantValueComputer, so we |
| 12641 // don't need to run it here. Once issue 21572 is fixed, re-enable the |
| 12642 // call to ConstantVerifier. |
| 12643 // ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter,
_libraryElement, typeProvider); |
| 12644 // unit.accept(constantVerifier); |
12637 } finally { | 12645 } finally { |
12638 counterHandleErrors.stop(); | 12646 counterHandleErrors.stop(); |
12639 } | 12647 } |
12640 // | 12648 // |
12641 // Capture the results. | 12649 // Capture the results. |
12642 // | 12650 // |
12643 _resolvedUnit = unit; | 12651 _resolvedUnit = unit; |
12644 } | 12652 } |
12645 | 12653 |
12646 /** | 12654 /** |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13561 _index++; | 13569 _index++; |
13562 if (_index >= _manager._workQueues[_queueIndex].length) { | 13570 if (_index >= _manager._workQueues[_queueIndex].length) { |
13563 _index = 0; | 13571 _index = 0; |
13564 _queueIndex++; | 13572 _queueIndex++; |
13565 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 13573 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
13566 _queueIndex++; | 13574 _queueIndex++; |
13567 } | 13575 } |
13568 } | 13576 } |
13569 } | 13577 } |
13570 } | 13578 } |
OLD | NEW |