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

Side by Side Diff: pkg/compiler/lib/src/parser/partial_parser.dart

Issue 2521073003: Remove the ability in dart2js to turn off syntax-only generic methods. (Closed)
Patch Set: eernst Created 4 years 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
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 library dart2js.parser.partial; 5 library dart2js.parser.partial;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../options.dart' show ParserOptions;
9 import '../tokens/token.dart' show BeginGroupToken, ErrorToken, Token; 8 import '../tokens/token.dart' show BeginGroupToken, ErrorToken, Token;
10 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; 9 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN;
11 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET; 10 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET;
12 import 'listener.dart' show Listener; 11 import 'listener.dart' show Listener;
13 import 'parser.dart' show Parser; 12 import 'parser.dart' show Parser;
14 13
15 class PartialParser extends Parser { 14 class PartialParser extends Parser {
16 PartialParser(Listener listener, ParserOptions options) 15 PartialParser(Listener listener): super(listener);
17 : super(listener, options);
18 16
19 Token parseClassBody(Token token) => skipClassBody(token); 17 Token parseClassBody(Token token) => skipClassBody(token);
20 18
21 Token fullParseClassBody(Token token) => super.parseClassBody(token); 19 Token fullParseClassBody(Token token) => super.parseClassBody(token);
22 20
23 Token parseExpression(Token token) => skipExpression(token); 21 Token parseExpression(Token token) => skipExpression(token);
24 22
25 Token parseArgumentsOpt(Token token) { 23 Token parseArgumentsOpt(Token token) {
26 // This method is overridden for two reasons: 24 // This method is overridden for two reasons:
27 // 1. Avoid generating events for arguments. 25 // 1. Avoid generating events for arguments.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return token; 166 return token;
169 } 167 }
170 return listener.unexpected(token); 168 return listener.unexpected(token);
171 } 169 }
172 BeginGroupToken beginGroupToken = token; 170 BeginGroupToken beginGroupToken = token;
173 Token endToken = beginGroupToken.endGroup; 171 Token endToken = beginGroupToken.endGroup;
174 listener.endFormalParameters(0, token, endToken); 172 listener.endFormalParameters(0, token, endToken);
175 return endToken.next; 173 return endToken.next;
176 } 174 }
177 } 175 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/partial_elements.dart ('k') | pkg/compiler/lib/src/patch_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698