| 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 '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common_elements.dart'; | 8 import '../common_elements.dart'; |
| 9 import '../common/backend_api.dart'; | 9 import '../common/backend_api.dart'; |
| 10 import '../common/names.dart'; | 10 import '../common/names.dart'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 import '../js_backend/no_such_method_registry.dart'; | 28 import '../js_backend/no_such_method_registry.dart'; |
| 29 import '../library_loader.dart'; | 29 import '../library_loader.dart'; |
| 30 import '../native/resolver.dart'; | 30 import '../native/resolver.dart'; |
| 31 import '../serialization/task.dart'; | 31 import '../serialization/task.dart'; |
| 32 import '../patch_parser.dart'; | 32 import '../patch_parser.dart'; |
| 33 import '../resolved_uri_translator.dart'; | 33 import '../resolved_uri_translator.dart'; |
| 34 import '../universe/call_structure.dart'; | 34 import '../universe/call_structure.dart'; |
| 35 import '../universe/use.dart'; | 35 import '../universe/use.dart'; |
| 36 import '../universe/world_builder.dart'; | 36 import '../universe/world_builder.dart'; |
| 37 import '../universe/world_impact.dart'; | 37 import '../universe/world_impact.dart'; |
| 38 import 'no_such_method_resolver.dart'; |
| 38 | 39 |
| 39 /// [FrontendStrategy] that loads '.dart' files and creates a resolved element | 40 /// [FrontendStrategy] that loads '.dart' files and creates a resolved element |
| 40 /// model using the resolver. | 41 /// model using the resolver. |
| 41 class ResolutionFrontEndStrategy implements FrontEndStrategy { | 42 class ResolutionFrontEndStrategy implements FrontEndStrategy { |
| 42 final Compiler _compiler; | 43 final Compiler _compiler; |
| 43 final ElementEnvironment elementEnvironment; | 44 final ElementEnvironment elementEnvironment; |
| 44 AnnotationProcessor _annotationProcessor; | 45 AnnotationProcessor _annotationProcessor; |
| 45 | 46 |
| 46 ResolutionFrontEndStrategy(this._compiler) | 47 ResolutionFrontEndStrategy(this._compiler) |
| 47 : elementEnvironment = new _CompilerElementEnvironment(_compiler); | 48 : elementEnvironment = new _CompilerElementEnvironment(_compiler); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 75 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData) { | 76 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData) { |
| 76 return new ResolutionNativeClassFinder( | 77 return new ResolutionNativeClassFinder( |
| 77 _compiler.resolution, | 78 _compiler.resolution, |
| 78 _compiler.reporter, | 79 _compiler.reporter, |
| 79 elementEnvironment, | 80 elementEnvironment, |
| 80 _compiler.commonElements, | 81 _compiler.commonElements, |
| 81 nativeBasicData); | 82 nativeBasicData); |
| 82 } | 83 } |
| 83 | 84 |
| 84 NoSuchMethodResolver createNoSuchMethodResolver() => | 85 NoSuchMethodResolver createNoSuchMethodResolver() => |
| 85 new NoSuchMethodResolverImpl(); | 86 new ResolutionNoSuchMethodResolver(); |
| 86 | 87 |
| 87 CustomElementsResolutionAnalysis createCustomElementsResolutionAnalysis( | 88 CustomElementsResolutionAnalysis createCustomElementsResolutionAnalysis( |
| 88 NativeBasicData nativeBasicData, | 89 NativeBasicData nativeBasicData, |
| 89 BackendUsageBuilder backendUsageBuilder) { | 90 BackendUsageBuilder backendUsageBuilder) { |
| 90 return new CustomElementsResolutionAnalysis( | 91 return new CustomElementsResolutionAnalysis( |
| 91 _compiler.resolution, | 92 _compiler.resolution, |
| 92 _compiler.backend.constantSystem, | 93 _compiler.backend.constantSystem, |
| 93 _compiler.commonElements, | 94 _compiler.commonElements, |
| 94 nativeBasicData, | 95 nativeBasicData, |
| 95 backendUsageBuilder); | 96 backendUsageBuilder); |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 } | 628 } |
| 628 } | 629 } |
| 629 }); | 630 }); |
| 630 }); | 631 }); |
| 631 } | 632 } |
| 632 | 633 |
| 633 _compiler.libraryLoader.libraries | 634 _compiler.libraryLoader.libraries |
| 634 .forEach(processJsInteropAnnotationsInLibrary); | 635 .forEach(processJsInteropAnnotationsInLibrary); |
| 635 } | 636 } |
| 636 } | 637 } |
| OLD | NEW |