| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer/context/declared_variables.dart'; | 5 import 'package:analyzer/context/declared_variables.dart'; |
| 6 import 'package:analyzer/dart/ast/ast.dart'; | 6 import 'package:analyzer/dart/ast/ast.dart'; |
| 7 import 'package:analyzer/dart/ast/visitor.dart'; | 7 import 'package:analyzer/dart/ast/visitor.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/error/error.dart'; | 9 import 'package:analyzer/error/error.dart'; |
| 10 import 'package:analyzer/error/listener.dart'; | 10 import 'package:analyzer/error/listener.dart'; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 _resolveUriBasedDirectives(file, unit); | 79 _resolveUriBasedDirectives(file, unit); |
| 80 }); | 80 }); |
| 81 | 81 |
| 82 _createAnalysisContext(); | 82 _createAnalysisContext(); |
| 83 | 83 |
| 84 try { | 84 try { |
| 85 _resynthesizer = new StoreBasedSummaryResynthesizer( | 85 _resynthesizer = new StoreBasedSummaryResynthesizer( |
| 86 _context, _sourceFactory, _analysisOptions.strongMode, _store); | 86 _context, _sourceFactory, _analysisOptions.strongMode, _store); |
| 87 _typeProvider = _resynthesizer.typeProvider; | 87 _typeProvider = _resynthesizer.typeProvider; |
| 88 _context.typeProvider = _typeProvider; | 88 _context.typeProvider = _typeProvider; |
| 89 _resynthesizer.finishCoreAsyncLibraries(); |
| 89 | 90 |
| 90 _libraryElement = _resynthesizer.getLibraryElement(_library.uriStr); | 91 _libraryElement = _resynthesizer.getLibraryElement(_library.uriStr); |
| 91 | 92 |
| 92 _resolveDirectives(units); | 93 _resolveDirectives(units); |
| 93 | 94 |
| 94 units.forEach((file, unit) { | 95 units.forEach((file, unit) { |
| 95 _resolveFile(file, unit); | 96 _resolveFile(file, unit); |
| 96 _computePendingMissingRequiredParameters(file, unit); | 97 _computePendingMissingRequiredParameters(file, unit); |
| 97 }); | 98 }); |
| 98 | 99 |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 } | 800 } |
| 800 | 801 |
| 801 /** | 802 /** |
| 802 * Either the name or the source associated with a part-of directive. | 803 * Either the name or the source associated with a part-of directive. |
| 803 */ | 804 */ |
| 804 class _NameOrSource { | 805 class _NameOrSource { |
| 805 final String name; | 806 final String name; |
| 806 final Source source; | 807 final Source source; |
| 807 _NameOrSource(this.name, this.source); | 808 _NameOrSource(this.name, this.source); |
| 808 } | 809 } |
| OLD | NEW |