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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 304153014: Remove element from DynamicType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix infinite loop. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 3770c6f21464612cc05eef8ec2f536d1fdb8071d..880746ad38ef4c90280f36f52aab2c966b9bea0d 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1001,7 +1001,7 @@ class PrefixElementX extends ElementX implements PrefixElement {
Element lookupLocalMember(String memberName) => importScope[memberName];
- DartType computeType(Compiler compiler) => compiler.types.dynamicType;
+ DartType computeType(Compiler compiler) => const DynamicType();
Token get position => firstPosition;
@@ -1623,7 +1623,7 @@ class DeferredLoaderGetterElementX extends FunctionElementX {
FunctionSignature computeSignature(Compiler compiler) {
if (functionSignatureCache != null) return functionSignature;
compiler.withCurrentElement(this, () {
- DartType inner = new FunctionType(this, compiler.types.dynamicType);
+ DartType inner = new FunctionType(this);
functionSignatureCache = new FunctionSignatureX(const Link(),
const Link(), 0, 0, false, [], inner);
});
@@ -1795,7 +1795,7 @@ abstract class TypeDeclarationElementX<T extends GenericType>
Link<DartType> dynamicParameters = const Link<DartType>();
typeParameters.forEach((_) {
dynamicParameters =
- dynamicParameters.prepend(compiler.types.dynamicType);
+ dynamicParameters.prepend(const DynamicType());
});
rawTypeCache = createType(dynamicParameters);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/dart_types.dart ('k') | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698