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

Unified Diff: lib/compiler/implementation/scanner/listener.dart

Issue 10378030: Revert r7368: parseMember should only be used for partial parsing. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« 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/scanner/listener.dart
===================================================================
--- lib/compiler/implementation/scanner/listener.dart (revision 7369)
+++ lib/compiler/implementation/scanner/listener.dart (working copy)
@@ -1459,14 +1459,9 @@
FunctionExpression parseNode(DiagnosticListener listener) {
if (cachedNode != null) return cachedNode;
- Token parseFunction(Parser p) {
- if (isMember()) {
- return p.parseMember(beginToken);
- } else {
- return p.parseFunction(beginToken, getOrSet);
- }
- }
- cachedNode = parse(listener, getCompilationUnit(), parseFunction);
+ cachedNode = parse(listener,
+ getCompilationUnit(),
+ (p) => p.parseFunction(beginToken, getOrSet));
return cachedNode;
}
« 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