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

Side by Side Diff: lib/compiler/implementation/scanner/partial_parser.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of scanner;
6
5 class PartialParser extends Parser { 7 class PartialParser extends Parser {
6 PartialParser(Listener listener) : super(listener); 8 PartialParser(Listener listener) : super(listener);
7 9
8 Token parseClassBody(Token token) => skipClassBody(token); 10 Token parseClassBody(Token token) => skipClassBody(token);
9 11
10 Token fullParseClassBody(Token token) => super.parseClassBody(token); 12 Token fullParseClassBody(Token token) => super.parseClassBody(token);
11 13
12 Token parseExpression(Token token) => skipExpression(token); 14 Token parseExpression(Token token) => skipExpression(token);
13 15
14 Token parseArgumentsOpt(Token token) { 16 Token parseArgumentsOpt(Token token) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return token; 121 return token;
120 } 122 }
121 return listener.unexpected(token); 123 return listener.unexpected(token);
122 } 124 }
123 BeginGroupToken beginGroupToken = token; 125 BeginGroupToken beginGroupToken = token;
124 Token endToken = beginGroupToken.endGroup; 126 Token endToken = beginGroupToken.endGroup;
125 listener.endFormalParameters(0, token, endToken); 127 listener.endFormalParameters(0, token, endToken);
126 return endToken.next; 128 return endToken.next;
127 } 129 }
128 } 130 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/scanner/parser_task.dart ('k') | lib/compiler/implementation/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698