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

Unified Diff: runtime/vm/exceptions.h

Issue 1778133002: Enumerate URIs of all types in type errors in order to help the user diagnose (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 4 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 | « runtime/vm/code_generator.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.h
diff --git a/runtime/vm/exceptions.h b/runtime/vm/exceptions.h
index 86e32617159544986c76a3ba5deeaa5b19389f8a..e0a64c86f9d2efea5294a0d01467c41b7375b4ea 100644
--- a/runtime/vm/exceptions.h
+++ b/runtime/vm/exceptions.h
@@ -11,28 +11,21 @@
namespace dart {
// Forward declarations.
+class AbstractType;
class Array;
-class Class;
class DartFrameIterator;
class Error;
class Instance;
class Integer;
-class Object;
class RawInstance;
class RawObject;
class RawScript;
class RawStacktrace;
-class RawString;
-class Script;
-class StackFrame;
-class Stacktrace;
class String;
class Thread;
class Exceptions : AllStatic {
public:
- static const char* kCastErrorDstName;
-
static void Throw(Thread* thread, const Instance& exception);
static void ReThrow(Thread* thread,
const Instance& exception,
@@ -44,10 +37,10 @@ class Exceptions : AllStatic {
static RawScript* GetCallerScript(DartFrameIterator* iterator);
static RawInstance* NewInstance(const char* class_name);
static void CreateAndThrowTypeError(TokenPosition location,
- const String& src_type_name,
- const String& dst_type_name,
+ const AbstractType& src_type,
+ const AbstractType& dst_type,
const String& dst_name,
- const String& error_msg);
+ const String& bound_error_msg);
enum ExceptionType {
kNone,
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698