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

Unified Diff: lib/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 10834390: .resolveTypeAnnotation now returns TypedefType, not FunctionType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
index f7f071abdfc720d0c08f3069a5a9b61203bbbc12..dd2ae79cde0d6451c296142635d866ed7e3f9442 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -348,7 +348,7 @@ class PlaceholderCollector extends AbstractVisitor {
}
}
final type = compiler.resolveTypeAnnotation(currentElement, node);
- if (type is InterfaceType || type is FunctionType) {
+ if (type is InterfaceType || type is TypedefType) {
var target = node.typeName;
if (node.typeName is Send) {
final element = treeElements[node];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698