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

Unified Diff: pkg/front_end/test/fasta/parser/parser_suite.dart

Issue 2737753002: Make parser and scanner suites able to run standalone. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/test/fasta/parser/parser.status ('k') | pkg/front_end/test/fasta/scanner/scanner_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/fasta/parser/parser_suite.dart
diff --git a/pkg/front_end/test/fasta/parser/parser_suite.dart b/pkg/front_end/test/fasta/parser/parser_suite.dart
index 1ac6b2bb85542f71eaace0ba428c6c00fd66c5b4..6e710a0f5064e236518c2089fe1c4f08bf337d84 100644
--- a/pkg/front_end/test/fasta/parser/parser_suite.dart
+++ b/pkg/front_end/test/fasta/parser/parser_suite.dart
@@ -17,9 +17,9 @@ Future<ChainContext> createContext(
class ScannerContext extends ChainContext {
final List<Step> steps = const <Step>[
- const Read(),
- const Scan(),
- const Parse(),
+ const Read(),
+ const Scan(),
+ const Parse(),
];
}
@@ -28,8 +28,7 @@ class Parse extends Step<ScannerResult, Null, ChainContext> {
String get name => "parse";
- Future<Result<Null>> run(
- ScannerResult result, ChainContext context) async {
+ Future<Result<Null>> run(ScannerResult result, ChainContext context) async {
try {
List<ParserError> errors = parse(result.tokens);
if (errors.isNotEmpty) {
@@ -42,4 +41,5 @@ class Parse extends Step<ScannerResult, Null, ChainContext> {
}
}
-main(List<String> arguments) => runMe(arguments, createContext);
+main(List<String> arguments) =>
+ runMe(arguments, createContext, "../testing.json");
« no previous file with comments | « pkg/front_end/test/fasta/parser/parser.status ('k') | pkg/front_end/test/fasta/scanner/scanner_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698