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

Side by Side Diff: pkg/dart_parser/lib/parser.dart

Issue 2631503002: Modify scanner and parser to be standalone packages. (Closed)
Patch Set: Created 3 years, 11 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE.md file.
4
5 library parser;
6
7 import 'package:scanner/src/token.dart' show
Siggi Cherem (dart-lang) 2017/01/12 21:56:04 It doesn't have to be done now on this CL since yo
ahe 2017/01/13 07:16:20 The way dartfmt formats show clauses slow me down.
8 Token;
9
10 import 'src/listener.dart' show
11 Listener;
12
13 import 'src/parser.dart' show
14 Parser;
15
16 import 'src/listener.dart' show
17 ParserError;
18
19 export 'src/listener.dart' show
20 ParserError;
21
22 List<ParserError> parse(Token tokens, {bool enableGenericMethodSyntax: false}) {
Siggi Cherem (dart-lang) 2017/01/12 21:56:04 also can be done on a later CL, but the enableGene
ahe 2017/01/13 07:16:20 Yes. I'll address this when I have landed my other
23 Listener listener = new Listener();
24 Parser parser = new Parser(listener,
25 enableGenericMethodSyntax: enableGenericMethodSyntax);
26 parser.parseUnit(tokens);
27 return listener.recoverableErrors;
28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698