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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10795064: dart2dart: Introduce Renamer that is used by renaming unparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index 1c569db76aa3ae4dd5089a5a9c735ee873db2887..94808dc9e4b4d63e5c9a268f40e52da970dde9cf 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -941,6 +941,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
void setupFunction(FunctionExpression node, FunctionElement function) {
context = new MethodScope(context, function);
+ if (node.returnType !== null) resolveTypeAnnotation(node.returnType);
ahe 2012/08/02 18:37:14 I think you should be able to revert this since yo
// Put the parameters in scope.
FunctionSignature functionParameters =
function.computeSignature(compiler);

Powered by Google App Engine
This is Rietveld 408576698