| 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 library dart2js.resolution_strategy; | 5 library dart2js.resolution_strategy; |
| 6 | 6 |
| 7 import 'package:front_end/src/fasta/scanner.dart' show Token; | 7 import 'package:front_end/src/fasta/scanner.dart' show Token; |
| 8 | 8 |
| 9 import '../../compiler_new.dart' as api; |
| 9 import '../common.dart'; | 10 import '../common.dart'; |
| 10 import '../common_elements.dart'; | 11 import '../common_elements.dart'; |
| 11 import '../common/backend_api.dart'; | 12 import '../common/backend_api.dart'; |
| 12 import '../common/names.dart'; | 13 import '../common/names.dart'; |
| 13 import '../common/resolution.dart'; | 14 import '../common/resolution.dart'; |
| 14 import '../common/tasks.dart'; | 15 import '../common/tasks.dart'; |
| 15 import '../common/work.dart'; | 16 import '../common/work.dart'; |
| 16 import '../compiler.dart'; | 17 import '../compiler.dart'; |
| 17 import '../constants/values.dart'; | 18 import '../constants/values.dart'; |
| 18 import '../elements/elements.dart'; | 19 import '../elements/elements.dart'; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ResolutionFrontEndStrategy.internal( | 67 ResolutionFrontEndStrategy.internal( |
| 67 this._compiler, this._elementEnvironment, this.commonElements); | 68 this._compiler, this._elementEnvironment, this.commonElements); |
| 68 | 69 |
| 69 ElementEnvironment get elementEnvironment => _elementEnvironment; | 70 ElementEnvironment get elementEnvironment => _elementEnvironment; |
| 70 | 71 |
| 71 DartTypes get dartTypes => _compiler.resolution.types; | 72 DartTypes get dartTypes => _compiler.resolution.types; |
| 72 | 73 |
| 73 LibraryLoaderTask createLibraryLoader( | 74 LibraryLoaderTask createLibraryLoader( |
| 74 ResolvedUriTranslator uriTranslator, | 75 ResolvedUriTranslator uriTranslator, |
| 75 ScriptLoader scriptLoader, | 76 ScriptLoader scriptLoader, |
| 77 api.CompilerInput compilerInput, |
| 76 ElementScanner scriptScanner, | 78 ElementScanner scriptScanner, |
| 77 LibraryDeserializer deserializer, | 79 LibraryDeserializer deserializer, |
| 78 PatchResolverFunction patchResolverFunc, | 80 PatchResolverFunction patchResolverFunc, |
| 79 PatchParserTask patchParser, | 81 PatchParserTask patchParser, |
| 80 Environment environment, | 82 Environment environment, |
| 81 DiagnosticReporter reporter, | 83 DiagnosticReporter reporter, |
| 82 Measurer measurer) { | 84 Measurer measurer) { |
| 83 return new ResolutionLibraryLoaderTask( | 85 return new ResolutionLibraryLoaderTask( |
| 84 uriTranslator, | 86 uriTranslator, |
| 85 scriptLoader, | 87 scriptLoader, |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 | 952 |
| 951 @override | 953 @override |
| 952 void forEachConstructor( | 954 void forEachConstructor( |
| 953 covariant ClassElement cls, void f(ConstructorEntity constructor)) { | 955 covariant ClassElement cls, void f(ConstructorEntity constructor)) { |
| 954 cls.constructors.forEach((Element _constructor) { | 956 cls.constructors.forEach((Element _constructor) { |
| 955 ConstructorElement constructor = _constructor; | 957 ConstructorElement constructor = _constructor; |
| 956 f(constructor); | 958 f(constructor); |
| 957 }); | 959 }); |
| 958 } | 960 } |
| 959 } | 961 } |
| OLD | NEW |