| 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:async'; | 10 import 'dart:async'; |
| (...skipping 10710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10721 "Internal error: computeResolvableCompilationUnit returned a value wit
hout a parsed Dart unit"); | 10721 "Internal error: computeResolvableCompilationUnit returned a value wit
hout a parsed Dart unit"); |
| 10722 } | 10722 } |
| 10723 // | 10723 // |
| 10724 // Resolve names in declarations. | 10724 // Resolve names in declarations. |
| 10725 // | 10725 // |
| 10726 new DeclarationResolver().resolve(unit, _find(_libraryElement, source)); | 10726 new DeclarationResolver().resolve(unit, _find(_libraryElement, source)); |
| 10727 // | 10727 // |
| 10728 // Resolve the type names. | 10728 // Resolve the type names. |
| 10729 // | 10729 // |
| 10730 RecordingErrorListener errorListener = new RecordingErrorListener(); | 10730 RecordingErrorListener errorListener = new RecordingErrorListener(); |
| 10731 TypeResolverVisitor typeResolverVisitor = new TypeResolverVisitor.con2( | 10731 TypeResolverVisitor typeResolverVisitor = new TypeResolverVisitor( |
| 10732 _libraryElement, source, typeProvider, errorListener); | 10732 _libraryElement, source, typeProvider, errorListener); |
| 10733 unit.accept(typeResolverVisitor); | 10733 unit.accept(typeResolverVisitor); |
| 10734 // | 10734 // |
| 10735 // Resolve the rest of the structure | 10735 // Resolve the rest of the structure |
| 10736 // | 10736 // |
| 10737 InheritanceManager inheritanceManager = | 10737 InheritanceManager inheritanceManager = |
| 10738 new InheritanceManager(_libraryElement); | 10738 new InheritanceManager(_libraryElement); |
| 10739 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement, | 10739 ResolverVisitor resolverVisitor = new ResolverVisitor( |
| 10740 source, typeProvider, inheritanceManager, errorListener); | 10740 _libraryElement, source, typeProvider, errorListener, |
| 10741 inheritanceManager: inheritanceManager); |
| 10741 unit.accept(resolverVisitor); | 10742 unit.accept(resolverVisitor); |
| 10742 // | 10743 // |
| 10743 // Perform additional error checking. | 10744 // Perform additional error checking. |
| 10744 // | 10745 // |
| 10745 PerformanceStatistics.errors.makeCurrentWhile(() { | 10746 PerformanceStatistics.errors.makeCurrentWhile(() { |
| 10746 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 10747 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); |
| 10747 ErrorVerifier errorVerifier = new ErrorVerifier( | 10748 ErrorVerifier errorVerifier = new ErrorVerifier( |
| 10748 errorReporter, _libraryElement, typeProvider, inheritanceManager); | 10749 errorReporter, _libraryElement, typeProvider, inheritanceManager); |
| 10749 unit.accept(errorVerifier); | 10750 unit.accept(errorVerifier); |
| 10750 // TODO(paulberry): as a temporary workaround for issue 21572, | 10751 // TODO(paulberry): as a temporary workaround for issue 21572, |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11834 PendingFuture pendingFuture = | 11835 PendingFuture pendingFuture = |
| 11835 new PendingFuture<T>(_context, source, computeValue); | 11836 new PendingFuture<T>(_context, source, computeValue); |
| 11836 if (!pendingFuture.evaluate(sourceEntry)) { | 11837 if (!pendingFuture.evaluate(sourceEntry)) { |
| 11837 _context._pendingFutureSources | 11838 _context._pendingFutureSources |
| 11838 .putIfAbsent(source, () => <PendingFuture>[]) | 11839 .putIfAbsent(source, () => <PendingFuture>[]) |
| 11839 .add(pendingFuture); | 11840 .add(pendingFuture); |
| 11840 } | 11841 } |
| 11841 return pendingFuture.future; | 11842 return pendingFuture.future; |
| 11842 } | 11843 } |
| 11843 } | 11844 } |
| OLD | NEW |