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

Unified Diff: dart/frog/leg/elements/elements.dart

Issue 8497011: Parse formal parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased, frogsh, type warning Created 9 years, 1 month 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 | « dart/frog/frogsh ('k') | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/elements/elements.dart
diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart
index f82cccd9792d2b50ef4b5d780c50d503cc701b60..ef5aebd8d95dc26d06e71e91159d754906e26a85 100644
--- a/dart/frog/leg/elements/elements.dart
+++ b/dart/frog/leg/elements/elements.dart
@@ -59,8 +59,8 @@ class FunctionElement extends Element {
LinkBuilder<Type> parameterTypes = new LinkBuilder<Type>();
for (var link = node.parameters.nodes; !link.isEmpty(); link = link.tail) {
compiler.cancel('parameters not supported.');
- var parameter = link.head;
- parameterTypes.addLast(getType(parameter.typeAnnotation, types));
+ VariableDefinitions parameter = link.head;
+ parameterTypes.addLast(getType(parameter.type, types));
}
type = new FunctionType(returnType, parameterTypes.toLink());
return type;
« no previous file with comments | « dart/frog/frogsh ('k') | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698