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

Unified Diff: dart/frog/leg/scanner/parser.dart

Issue 9817006: Parse function expressions correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/parser.dart
diff --git a/dart/frog/leg/scanner/parser.dart b/dart/frog/leg/scanner/parser.dart
index 104bb4f5b3e12a7ae48ca59abe05379e39878310..d71b5c70a32f17ad9e04d14dcdf7c5a563d52ad6 100644
--- a/dart/frog/leg/scanner/parser.dart
+++ b/dart/frog/leg/scanner/parser.dart
@@ -1001,7 +1001,7 @@ class Parser {
} else if (value === 'const') {
return parseConstExpression(token);
} else if (value === 'void') {
- return parseFunction(token, null);
+ return parseFunctionExpression(token);
} else if (isIdentifier(token)) {
return parseSendOrFunctionLiteral(token);
} else {
« no previous file with comments | « no previous file | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698