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

Unified Diff: pkg/front_end/lib/src/fasta/fasta.dart

Issue 2739213004: Improve detection of compile-time errors. (Closed)
Patch Set: dartfmt 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
Index: pkg/front_end/lib/src/fasta/fasta.dart
diff --git a/pkg/front_end/lib/src/fasta/outline.dart b/pkg/front_end/lib/src/fasta/fasta.dart
similarity index 97%
rename from pkg/front_end/lib/src/fasta/outline.dart
rename to pkg/front_end/lib/src/fasta/fasta.dart
index 7c0dea41547cf1bcb0c60054ee651df68d588c4a..97d155c45ef47fe48737c21df3cb5c3ad3d86dbd 100644
--- a/pkg/front_end/lib/src/fasta/outline.dart
+++ b/pkg/front_end/lib/src/fasta/fasta.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library fasta.outline;
+library fasta;
import 'dart:async' show Future;
@@ -188,12 +188,12 @@ Future<CompilationResult> parseScript(
program = await kernelTarget.writeOutline(null);
program = await kernelTarget.writeProgram(null);
if (kernelTarget.errors.isNotEmpty) {
- return new CompilationResult.error(kernelTarget.errors
+ return new CompilationResult.errors(kernelTarget.errors
.map((err) => err.toString())
.toList(growable: false));
}
} on InputError catch (e) {
- return new CompilationResult.error(<String>[e.format()]);
+ return new CompilationResult.error(e.format());
}
// Perform target-specific transformations.
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/library_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698