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

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

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 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 8 import '../options.dart' show ParserOptions;
9 ParserOptions; 9 import '../util/characters.dart' as Characters show $CLOSE_CURLY_BRACKET;
10 import '../util/characters.dart' as Characters show 10 import '../tokens/token.dart' show BeginGroupToken, ErrorToken, Token;
11 $CLOSE_CURLY_BRACKET; 11 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN;
12 import '../tokens/token.dart' show
13 BeginGroupToken,
14 ErrorToken,
15 Token;
16 import '../tokens/token_constants.dart' as Tokens show
17 EOF_TOKEN;
18 12
19 import 'listener.dart' show 13 import 'listener.dart' show Listener;
20 Listener; 14 import 'parser.dart' show Parser;
21 import 'parser.dart' show
22 Parser;
23 15
24 class PartialParser extends Parser { 16 class PartialParser extends Parser {
25 PartialParser(Listener listener, ParserOptions options) 17 PartialParser(Listener listener, ParserOptions options)
26 : super(listener, options); 18 : super(listener, options);
27 19
28 Token parseClassBody(Token token) => skipClassBody(token); 20 Token parseClassBody(Token token) => skipClassBody(token);
29 21
30 Token fullParseClassBody(Token token) => super.parseClassBody(token); 22 Token fullParseClassBody(Token token) => super.parseClassBody(token);
31 23
32 Token parseExpression(Token token) => skipExpression(token); 24 Token parseExpression(Token token) => skipExpression(token);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return token; 167 return token;
176 } 168 }
177 return listener.unexpected(token); 169 return listener.unexpected(token);
178 } 170 }
179 BeginGroupToken beginGroupToken = token; 171 BeginGroupToken beginGroupToken = token;
180 Token endToken = beginGroupToken.endGroup; 172 Token endToken = beginGroupToken.endGroup;
181 listener.endFormalParameters(0, token, endToken); 173 listener.endFormalParameters(0, token, endToken);
182 return endToken.next; 174 return endToken.next;
183 } 175 }
184 } 176 }
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