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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/signatures.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/resolution/signatures.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart b/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
index 746741862f9ff3896438b92512fd38d912f1c45e..97326a3cf7ac11b28bad8196ba609e41d0565b86 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
@@ -118,7 +118,7 @@ class SignatureResolver extends MappingVisitor<ParameterElementX> {
if (fieldElement != null) {
element.typeCache = fieldElement.computeType(compiler);
} else {
- element.typeCache = compiler.types.dynamicType;
+ element.typeCache = const DynamicType();
}
}
}
@@ -343,10 +343,10 @@ class SignatureResolver extends MappingVisitor<ParameterElementX> {
}
DartType resolveReturnType(TypeAnnotation annotation) {
- if (annotation == null) return compiler.types.dynamicType;
+ if (annotation == null) return const DynamicType();
DartType result = resolver.resolveTypeAnnotation(annotation);
if (result == null) {
- return compiler.types.dynamicType;
+ return const DynamicType();
}
return result;
}

Powered by Google App Engine
This is Rietveld 408576698