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

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

Issue 2892173002: Update Listener implementations. (Closed)
Patch Set: Created 3 years, 7 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
11 import 'parser/parser.dart' show Parser; 11 import 'parser/parser.dart' show Parser;
12 12
13 import 'parser/listener.dart' show ParserError; 13 import 'parser/listener.dart' show ParserError;
14 14
15 export 'parser/parser.dart' show MemberKind, Parser, optional; 15 export 'parser/parser.dart'
16 show FormalParameterType, MemberKind, Parser, optional;
16 17
17 export 'parser/listener.dart' show Listener, ParserError; 18 export 'parser/listener.dart' show Listener, ParserError;
18 19
19 export 'parser/top_level_parser.dart' show TopLevelParser; 20 export 'parser/top_level_parser.dart' show TopLevelParser;
20 21
21 export 'parser/class_member_parser.dart' show ClassMemberParser; 22 export 'parser/class_member_parser.dart' show ClassMemberParser;
22 23
24 export 'parser/identifier_context.dart' show IdentifierContext;
25
23 List<ParserError> parse(Token tokens) { 26 List<ParserError> parse(Token tokens) {
24 Listener listener = new Listener(); 27 Listener listener = new Listener();
25 Parser parser = new Parser(listener); 28 Parser parser = new Parser(listener);
26 parser.parseUnit(tokens); 29 parser.parseUnit(tokens);
27 return listener.recoverableErrors; 30 return listener.recoverableErrors;
28 } 31 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/fasta/summary_builder.dart ('k') | pkg/front_end/test/fasta/testing.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698