| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.common.resolution; | 5 library dart2js.common.resolution; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../compile_time_constants.dart'; | 8 import '../compile_time_constants.dart'; |
| 9 import '../compiler.dart' show Compiler; | |
| 10 import '../constants/expressions.dart' show ConstantExpression; | 9 import '../constants/expressions.dart' show ConstantExpression; |
| 11 import '../constants/values.dart' show ConstantValue; | 10 import '../constants/values.dart' show ConstantValue; |
| 12 import '../core_types.dart' show CommonElements; | 11 import '../core_types.dart' show CommonElements; |
| 13 import '../elements/resolution_types.dart' show ResolutionDartType, Types; | 12 import '../elements/resolution_types.dart' show ResolutionDartType, Types; |
| 14 import '../elements/elements.dart' | 13 import '../elements/elements.dart' |
| 15 show | 14 show |
| 16 AstElement, | 15 AstElement, |
| 17 ClassElement, | 16 ClassElement, |
| 18 Element, | 17 Element, |
| 19 Entity, | |
| 20 ExecutableElement, | 18 ExecutableElement, |
| 21 FunctionElement, | 19 FunctionElement, |
| 22 FunctionSignature, | 20 FunctionSignature, |
| 23 LibraryElement, | 21 LibraryElement, |
| 24 MetadataAnnotation, | 22 MetadataAnnotation, |
| 25 MethodElement, | 23 MethodElement, |
| 26 ResolvedAst, | 24 ResolvedAst, |
| 27 TypedefElement; | 25 TypedefElement; |
| 26 import '../elements/entities.dart'; |
| 28 import '../enqueue.dart' show ResolutionEnqueuer; | 27 import '../enqueue.dart' show ResolutionEnqueuer; |
| 29 import '../id_generator.dart'; | 28 import '../id_generator.dart'; |
| 30 import '../mirrors_used.dart'; | 29 import '../mirrors_used.dart'; |
| 31 import '../options.dart' show CompilerOptions; | 30 import '../options.dart' show CompilerOptions; |
| 32 import '../parser/element_listener.dart' show ScannerOptions; | 31 import '../parser/element_listener.dart' show ScannerOptions; |
| 33 import '../parser/parser_task.dart'; | 32 import '../parser/parser_task.dart'; |
| 34 import '../patch_parser.dart'; | 33 import '../patch_parser.dart'; |
| 35 import '../resolution/resolution.dart'; | 34 import '../resolution/resolution.dart'; |
| 36 import '../tree/tree.dart' show Send, TypeAnnotation; | 35 import '../tree/tree.dart' show Send, TypeAnnotation; |
| 37 import '../universe/call_structure.dart' show CallStructure; | 36 import '../universe/call_structure.dart' show CallStructure; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 if (cls.isPatch) { | 250 if (cls.isPatch) { |
| 252 patchParser.parsePatchClassNode(cls); | 251 patchParser.parsePatchClassNode(cls); |
| 253 } | 252 } |
| 254 }); | 253 }); |
| 255 } | 254 } |
| 256 | 255 |
| 257 @override | 256 @override |
| 258 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( | 257 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( |
| 259 canUseNative: backend.canLibraryUseNative(element.library)); | 258 canUseNative: backend.canLibraryUseNative(element.library)); |
| 260 } | 259 } |
| OLD | NEW |