Index: pkg/dart_parser/lib/parser.dart |
diff --git a/pkg/dart_parser/lib/parser.dart b/pkg/dart_parser/lib/parser.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0120fe2d4d60de35b6963f835c84bc6873768555 |
--- /dev/null |
+++ b/pkg/dart_parser/lib/parser.dart |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE.md file. |
+ |
+library parser; |
+ |
+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.
|
+ Token; |
+ |
+import 'src/listener.dart' show |
+ Listener; |
+ |
+import 'src/parser.dart' show |
+ Parser; |
+ |
+import 'src/listener.dart' show |
+ ParserError; |
+ |
+export 'src/listener.dart' show |
+ ParserError; |
+ |
+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
|
+ Listener listener = new Listener(); |
+ Parser parser = new Parser(listener, |
+ enableGenericMethodSyntax: enableGenericMethodSyntax); |
+ parser.parseUnit(tokens); |
+ return listener.recoverableErrors; |
+} |