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

Side by Side Diff: pkg/front_end/lib/src/fasta/parser.dart

Issue 2978073002: Add closeBraceTokenFor and use it instead of BeginToken. (Closed)
Patch Set: Created 3 years, 5 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library fasta.parser; 5 library fasta.parser;
6 6
7 import '../scanner/token.dart' show Token; 7 import '../scanner/token.dart' show Token;
8 8
9 import 'parser/listener.dart' show Listener; 9 import 'parser/listener.dart' show Listener;
10 10
(...skipping 12 matching lines...) Expand all
23 export 'parser/listener.dart' show Listener; 23 export 'parser/listener.dart' show Listener;
24 24
25 export 'parser/member_kind.dart' show MemberKind; 25 export 'parser/member_kind.dart' show MemberKind;
26 26
27 export 'parser/parser.dart' show Parser; 27 export 'parser/parser.dart' show Parser;
28 28
29 export 'parser/parser_error.dart' show ParserError; 29 export 'parser/parser_error.dart' show ParserError;
30 30
31 export 'parser/top_level_parser.dart' show TopLevelParser; 31 export 'parser/top_level_parser.dart' show TopLevelParser;
32 32
33 export 'parser/util.dart' show optional; 33 export 'parser/util.dart' show closeBraceTokenFor, optional;
34 34
35 List<ParserError> parse(Token tokens) { 35 List<ParserError> parse(Token tokens) {
36 Listener listener = new Listener(); 36 Listener listener = new Listener();
37 Parser parser = new Parser(listener); 37 Parser parser = new Parser(listener);
38 parser.parseUnit(tokens); 38 parser.parseUnit(tokens);
39 return listener.recoverableErrors; 39 return listener.recoverableErrors;
40 } 40 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698