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

Unified Diff: pkg/front_end/lib/compilation_error.dart

Issue 2417043003: Initial API for the Dart front_end package. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | pkg/front_end/lib/compiler_api.dart » ('j') | pkg/front_end/lib/compiler_api.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/compilation_error.dart
diff --git a/pkg/front_end/lib/compilation_error.dart b/pkg/front_end/lib/compilation_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6d034ebdccd34a25cb3cc63bc9b11d7f928c8bd5
--- /dev/null
+++ b/pkg/front_end/lib/compilation_error.dart
@@ -0,0 +1,21 @@
+// 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 file.
+
+/// Defines the API for the front end to communicate information about
+/// compilation errors to clients.
+library front_end.compilation_error;
+
+import 'source_location.dart';
Brian Wilkerson 2016/10/13 23:37:01 I'm not seeing this file in the CL. Did you forget
Paul Berry 2016/10/14 00:09:35 Whoops, you're correct. Thanks.
+
+/// A single error that occurred during compilation, and information about where
+/// it occurred.
+///
+/// TODO(paulberry): add a reference to the analyzer error code.
Brian Wilkerson 2016/10/13 23:37:01 We also need the correction message and support fo
Paul Berry 2016/10/14 00:09:35 I'm not convinced that we need these--they sound l
Paul Berry 2016/10/14 21:32:34 After further discussion this morning, I'm ok addi
+abstract class CompilationError {
+ /// A text description of the compile error.
+ String get message;
+
+ /// The source location where the error occurred.
+ SourceLocation get location;
+}
« no previous file with comments | « no previous file | pkg/front_end/lib/compiler_api.dart » ('j') | pkg/front_end/lib/compiler_api.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698