Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: pkg/compiler/lib/src/kernel/env.dart

Issue 2997033002: Revert "Implement .getCallType" and "Update status" (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
431 430
432 InterfaceType thisType; 431 InterfaceType thisType;
433 InterfaceType rawType; 432 InterfaceType rawType;
434 InterfaceType supertype; 433 InterfaceType supertype;
435 InterfaceType mixedInType; 434 InterfaceType mixedInType;
436 List<InterfaceType> interfaces; 435 List<InterfaceType> interfaces;
437 OrderedTypeSet orderedTypeSet; 436 OrderedTypeSet orderedTypeSet;
438 DartType callType;
439 437
440 Iterable<ConstantValue> _metadata; 438 Iterable<ConstantValue> _metadata;
441 439
442 ClassData(this.cls, this.definition); 440 ClassData(this.cls, this.definition);
443 441
444 Iterable<ConstantValue> getMetadata(KernelToElementMapBase elementMap) { 442 Iterable<ConstantValue> getMetadata(KernelToElementMapBase elementMap) {
445 return _metadata ??= elementMap.getMetadata(cls.annotations); 443 return _metadata ??= elementMap.getMetadata(cls.annotations);
446 } 444 }
447 445
448 ClassData copy() { 446 ClassData copy() {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } 594 }
597 } 595 }
598 596
599 class TypedefData { 597 class TypedefData {
600 final ir.Typedef node; 598 final ir.Typedef node;
601 final TypedefEntity element; 599 final TypedefEntity element;
602 final TypedefType rawType; 600 final TypedefType rawType;
603 601
604 TypedefData(this.node, this.element, this.rawType); 602 TypedefData(this.node, this.element, this.rawType);
605 } 603 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/kernel/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698