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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 232563006: Insert checks before deferred calls and accesses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to stage deferred_load.dart Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 elements; 5 library elements;
6 6
7 7
8 import '../tree/tree.dart'; 8 import '../tree/tree.dart';
9 import '../util/util.dart'; 9 import '../util/util.dart';
10 import '../resolution/resolution.dart'; 10 import '../resolution/resolution.dart';
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 DartType get type; 824 DartType get type;
825 FunctionSignature get functionSignature; 825 FunctionSignature get functionSignature;
826 FunctionElement get redirectionTarget; 826 FunctionElement get redirectionTarget;
827 FunctionElement get defaultImplementation; 827 FunctionElement get defaultImplementation;
828 828
829 FunctionElement get patch; 829 FunctionElement get patch;
830 FunctionElement get origin; 830 FunctionElement get origin;
831 831
832 bool get isRedirectingFactory; 832 bool get isRedirectingFactory;
833 833
834 /// Used to retrieve a link to the abstract field element representing this
835 /// element.
836 AbstractFieldElement get abstractField;
837
834 /** 838 /**
835 * Compute the type of the target of a constructor for an instantiation site 839 * Compute the type of the target of a constructor for an instantiation site
836 * with type [:newType:]. 840 * with type [:newType:].
837 */ 841 */
838 InterfaceType computeTargetType(InterfaceType newType); 842 InterfaceType computeTargetType(InterfaceType newType);
839 843
840 // TODO(kasperl): These are bit fishy. Do we really need them? 844 // TODO(kasperl): These are bit fishy. Do we really need them?
841 void set patch(FunctionElement value); 845 void set patch(FunctionElement value);
842 void set origin(FunctionElement value); 846 void set origin(FunctionElement value);
843 void set defaultImplementation(FunctionElement value); 847 void set defaultImplementation(FunctionElement value);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 int get resolutionState; 1050 int get resolutionState;
1047 Token get beginToken; 1051 Token get beginToken;
1048 Token get endToken; 1052 Token get endToken;
1049 1053
1050 // TODO(kasperl): Try to get rid of these. 1054 // TODO(kasperl): Try to get rid of these.
1051 void set annotatedElement(Element value); 1055 void set annotatedElement(Element value);
1052 1056
1053 MetadataAnnotation ensureResolved(Compiler compiler); 1057 MetadataAnnotation ensureResolved(Compiler compiler);
1054 } 1058 }
1055 1059
1060 // TODO(johnniwinther): Remove this element.
1056 abstract class VoidElement extends Element {} 1061 abstract class VoidElement extends Element {}
1057 1062
1058 /// An [Element] that has a type. 1063 /// An [Element] that has a type.
1059 abstract class TypedElement extends Element { 1064 abstract class TypedElement extends Element {
1060 DartType get type; 1065 DartType get type;
1061 } 1066 }
1062 1067
1063 /// A [MemberSignature] is a member of an interface. 1068 /// A [MemberSignature] is a member of an interface.
1064 /// 1069 ///
1065 /// A signature is either a method or a getter or setter, possibly implicitly 1070 /// A signature is either a method or a getter or setter, possibly implicitly
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 InterfaceType get declarer; 1131 InterfaceType get declarer;
1127 1132
1128 /// Returns `true` if this member is static. 1133 /// Returns `true` if this member is static.
1129 bool get isStatic; 1134 bool get isStatic;
1130 1135
1131 /// Returns `true` if this member is a getter or setter implicitly declared 1136 /// Returns `true` if this member is a getter or setter implicitly declared
1132 /// by a field. 1137 /// by a field.
1133 bool get isDeclaredByField; 1138 bool get isDeclaredByField;
1134 } 1139 }
1135 1140
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698