| 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:math" as math; | 10 import "dart:math" as math; |
| (...skipping 11085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11096 } | 11096 } |
| 11097 // | 11097 // |
| 11098 // Resolve names in declarations. | 11098 // Resolve names in declarations. |
| 11099 // | 11099 // |
| 11100 new DeclarationResolver().resolve(unit, _find(_libraryElement, source)); | 11100 new DeclarationResolver().resolve(unit, _find(_libraryElement, source)); |
| 11101 // | 11101 // |
| 11102 // Resolve the type names. | 11102 // Resolve the type names. |
| 11103 // | 11103 // |
| 11104 RecordingErrorListener errorListener = new RecordingErrorListener(); | 11104 RecordingErrorListener errorListener = new RecordingErrorListener(); |
| 11105 TypeResolverVisitor typeResolverVisitor = new TypeResolverVisitor.con2( | 11105 TypeResolverVisitor typeResolverVisitor = new TypeResolverVisitor.con2( |
| 11106 _libraryElement, source, typeProvider, errorListener); | 11106 _libraryElement, new LibraryScope(_libraryElement, |
| 11107 new LibraryImportScope(_libraryElement, errorListener), |
| 11108 errorListener), source, typeProvider, errorListener); |
| 11107 unit.accept(typeResolverVisitor); | 11109 unit.accept(typeResolverVisitor); |
| 11108 // | 11110 // |
| 11109 // Resolve the rest of the structure | 11111 // Resolve the rest of the structure |
| 11110 // | 11112 // |
| 11111 InheritanceManager inheritanceManager = | 11113 InheritanceManager inheritanceManager = |
| 11112 new InheritanceManager(_libraryElement); | 11114 new InheritanceManager(_libraryElement); |
| 11113 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement, | 11115 ResolverVisitor resolverVisitor = new ResolverVisitor.con2(_libraryElement, |
| 11114 source, typeProvider, inheritanceManager, errorListener); | 11116 new LibraryScope(_libraryElement, |
| 11117 new LibraryImportScope(_libraryElement, errorListener), |
| 11118 errorListener), source, typeProvider, inheritanceManager, |
| 11119 errorListener); |
| 11115 unit.accept(resolverVisitor); | 11120 unit.accept(resolverVisitor); |
| 11116 // | 11121 // |
| 11117 // Perform additional error checking. | 11122 // Perform additional error checking. |
| 11118 // | 11123 // |
| 11119 PerformanceStatistics.errors.makeCurrentWhile(() { | 11124 PerformanceStatistics.errors.makeCurrentWhile(() { |
| 11120 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 11125 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); |
| 11121 ErrorVerifier errorVerifier = new ErrorVerifier( | 11126 ErrorVerifier errorVerifier = new ErrorVerifier( |
| 11122 errorReporter, _libraryElement, typeProvider, inheritanceManager); | 11127 errorReporter, _libraryElement, typeProvider, inheritanceManager); |
| 11123 unit.accept(errorVerifier); | 11128 unit.accept(errorVerifier); |
| 11124 // TODO(paulberry): as a temporary workaround for issue 21572, | 11129 // TODO(paulberry): as a temporary workaround for issue 21572, |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12240 visitElement(Element element) { | 12245 visitElement(Element element) { |
| 12241 if (element.id == _id) { | 12246 if (element.id == _id) { |
| 12242 result = element; | 12247 result = element; |
| 12243 throw new _ElementByIdFinderException(); | 12248 throw new _ElementByIdFinderException(); |
| 12244 } | 12249 } |
| 12245 super.visitElement(element); | 12250 super.visitElement(element); |
| 12246 } | 12251 } |
| 12247 } | 12252 } |
| 12248 | 12253 |
| 12249 class _ElementByIdFinderException {} | 12254 class _ElementByIdFinderException {} |
| OLD | NEW |