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

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

Issue 2979463002: Revert "Tweak public APIs and use them in patch_sdk, dart2js, and kernel-service." (Closed)
Patch Set: Created 3 years, 5 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/simple_error.dart
diff --git a/pkg/front_end/lib/src/simple_error.dart b/pkg/front_end/lib/src/simple_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..40e0a4183eb4743e841ee07f8e2a3f056e3ddd4e
--- /dev/null
+++ b/pkg/front_end/lib/src/simple_error.dart
@@ -0,0 +1,11 @@
+import 'package:front_end/compilation_error.dart';
+
+import 'package:source_span/source_span.dart' show SourceSpan;
+
+/// An error that only contains a message and no error location.
+class SimpleError implements CompilationError {
+ String get correction => null;
+ SourceSpan get span => null;
+ final String message;
+ SimpleError(this.message);
+}
« no previous file with comments | « pkg/front_end/lib/src/kernel_generator_impl.dart ('k') | pkg/front_end/lib/src/testing/compiler_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698