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:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/names.dart'; | 8 import '../common/names.dart'; |
9 import '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
11 import '../constants/values.dart'; | 11 import '../constants/values.dart'; |
12 import '../common_elements.dart'; | 12 import '../common_elements.dart'; |
13 import '../elements/elements.dart'; | 13 import '../elements/elements.dart'; |
14 import '../elements/entities.dart'; | 14 import '../elements/entities.dart'; |
| 15 import '../elements/operators.dart'; |
15 import '../elements/types.dart'; | 16 import '../elements/types.dart'; |
16 import '../js_backend/backend.dart' show JavaScriptBackend; | 17 import '../js_backend/backend.dart' show JavaScriptBackend; |
17 import '../native/native.dart' as native; | 18 import '../native/native.dart' as native; |
18 import '../resolution/operators.dart'; | |
19 import '../universe/call_structure.dart'; | 19 import '../universe/call_structure.dart'; |
20 import '../universe/selector.dart'; | 20 import '../universe/selector.dart'; |
21 import 'kernel_debug.dart'; | 21 import 'kernel_debug.dart'; |
22 | 22 |
23 /// Interface that translates between Kernel IR nodes and entities. | 23 /// Interface that translates between Kernel IR nodes and entities. |
24 abstract class KernelElementAdapter { | 24 abstract class KernelElementAdapter { |
25 /// Access to the commonly used elements and types. | 25 /// Access to the commonly used elements and types. |
26 CommonElements get commonElements; | 26 CommonElements get commonElements; |
27 | 27 |
28 /// [ElementEnvironment] for library, class and member lookup. | 28 /// [ElementEnvironment] for library, class and member lookup. |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 } | 779 } |
780 if (isRedirecting) { | 780 if (isRedirecting) { |
781 return new RedirectingGenerativeConstantConstructor( | 781 return new RedirectingGenerativeConstantConstructor( |
782 defaultValues, superConstructorInvocation); | 782 defaultValues, superConstructorInvocation); |
783 } else { | 783 } else { |
784 return new GenerativeConstantConstructor( | 784 return new GenerativeConstantConstructor( |
785 type, defaultValues, fieldMap, superConstructorInvocation); | 785 type, defaultValues, fieldMap, superConstructorInvocation); |
786 } | 786 } |
787 } | 787 } |
788 } | 788 } |
OLD | NEW |