| 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.kernel.env; | 5 library dart2js.kernel.env; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' as ir; | 7 import 'package:kernel/ast.dart' as ir; |
| 8 import 'package:kernel/clone.dart'; | 8 import 'package:kernel/clone.dart'; |
| 9 import 'package:kernel/type_algebra.dart'; | 9 import 'package:kernel/type_algebra.dart'; |
| 10 | 10 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 @override | 420 @override |
| 421 ir.Class get cls => null; | 421 ir.Class get cls => null; |
| 422 } | 422 } |
| 423 | 423 |
| 424 class ClassData { | 424 class ClassData { |
| 425 /// TODO(johnniwinther): Remove this from the [ClassData] interface. Use | 425 /// TODO(johnniwinther): Remove this from the [ClassData] interface. Use |
| 426 /// `definition.node` instead. | 426 /// `definition.node` instead. |
| 427 final ir.Class cls; | 427 final ir.Class cls; |
| 428 final ClassDefinition definition; | 428 final ClassDefinition definition; |
| 429 bool isMixinApplication; | 429 bool isMixinApplication; |
| 430 bool isCallTypeComputed = false; |
| 430 | 431 |
| 431 InterfaceType thisType; | 432 InterfaceType thisType; |
| 432 InterfaceType rawType; | 433 InterfaceType rawType; |
| 433 InterfaceType supertype; | 434 InterfaceType supertype; |
| 434 InterfaceType mixedInType; | 435 InterfaceType mixedInType; |
| 435 List<InterfaceType> interfaces; | 436 List<InterfaceType> interfaces; |
| 436 OrderedTypeSet orderedTypeSet; | 437 OrderedTypeSet orderedTypeSet; |
| 438 DartType callType; |
| 437 | 439 |
| 438 Iterable<ConstantValue> _metadata; | 440 Iterable<ConstantValue> _metadata; |
| 439 | 441 |
| 440 ClassData(this.cls, this.definition); | 442 ClassData(this.cls, this.definition); |
| 441 | 443 |
| 442 Iterable<ConstantValue> getMetadata(KernelToElementMapBase elementMap) { | 444 Iterable<ConstantValue> getMetadata(KernelToElementMapBase elementMap) { |
| 443 return _metadata ??= elementMap.getMetadata(cls.annotations); | 445 return _metadata ??= elementMap.getMetadata(cls.annotations); |
| 444 } | 446 } |
| 445 | 447 |
| 446 ClassData copy() { | 448 ClassData copy() { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 } | 596 } |
| 595 } | 597 } |
| 596 | 598 |
| 597 class TypedefData { | 599 class TypedefData { |
| 598 final ir.Typedef node; | 600 final ir.Typedef node; |
| 599 final TypedefEntity element; | 601 final TypedefEntity element; |
| 600 final TypedefType rawType; | 602 final TypedefType rawType; |
| 601 | 603 |
| 602 TypedefData(this.node, this.element, this.rawType); | 604 TypedefData(this.node, this.element, this.rawType); |
| 603 } | 605 } |
| OLD | NEW |