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

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

Issue 2535373003: Resolve type arguments to generic methods. (Closed)
Patch Set: 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 '../tokens/token.dart' show BeginGroupToken, ErrorToken, Token; 8 import '../tokens/token.dart' show BeginGroupToken, ErrorToken, Token;
9 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; 9 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN;
10 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET; 10 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET;
11 import 'listener.dart' show Listener; 11 import 'listener.dart' show Listener;
12 import 'parser.dart' show Parser; 12 import 'parser.dart' show Parser;
13 13
14 class PartialParser extends Parser { 14 class PartialParser extends Parser {
15 PartialParser(Listener listener): super(listener); 15 PartialParser(Listener listener) : super(listener);
16 16
17 Token parseClassBody(Token token) => skipClassBody(token); 17 Token parseClassBody(Token token) => skipClassBody(token);
18 18
19 Token fullParseClassBody(Token token) => super.parseClassBody(token); 19 Token fullParseClassBody(Token token) => super.parseClassBody(token);
20 20
21 Token parseExpression(Token token) => skipExpression(token); 21 Token parseExpression(Token token) => skipExpression(token);
22 22
23 Token parseArgumentsOpt(Token token) { 23 Token parseArgumentsOpt(Token token) {
24 // This method is overridden for two reasons: 24 // This method is overridden for two reasons:
25 // 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
166 return token; 166 return token;
167 } 167 }
168 return listener.unexpected(token); 168 return listener.unexpected(token);
169 } 169 }
170 BeginGroupToken beginGroupToken = token; 170 BeginGroupToken beginGroupToken = token;
171 Token endToken = beginGroupToken.endGroup; 171 Token endToken = beginGroupToken.endGroup;
172 listener.endFormalParameters(0, token, endToken); 172 listener.endFormalParameters(0, token, endToken);
173 return endToken.next; 173 return endToken.next;
174 } 174 }
175 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698