diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-08-08 16:59:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-20 14:20:44 +0200 |
commit | e43b6bd9c7a3d584e488cd3c84f9deb2d8955b64 (patch) | |
tree | 0d1a33571d2f75630db3dfe84b1a4ead23f87958 /src/qml/jsruntime/qv4context_p.h | |
parent | 42b2685d0069e746dee344054831b6f08e482860 (diff) |
Remove QV4::DiagnosticMessage
QQmlError provides the same functionality, so let's rather
use that where required. Remove the dependency of
codegen onto the ExecutionContext that was only
required for error handling.
Change-Id: Ib0b61c0e138f89ff989c32996c93c339e4b62223
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4context_p.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h index 79d43c69f3..bf1269d2dc 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -52,25 +52,6 @@ struct Object; struct ExecutionEngine; struct DeclarativeEnvironment; struct Lookup; - -struct Q_QML_EXPORT DiagnosticMessage -{ - enum { Error, Warning }; - - QString fileName; - quint32 offset; - quint32 length; - quint32 startLine; - unsigned startColumn: 31; - unsigned type: 1; - QString message; - DiagnosticMessage *next; - - DiagnosticMessage(); - ~DiagnosticMessage(); - String *buildFullMessage(ExecutionContext *ctx) const; -}; - struct CallContext; struct Q_QML_EXPORT ExecutionContext @@ -128,11 +109,12 @@ struct Q_QML_EXPORT ExecutionContext void Q_NORETURN throwError(const Value &value); void Q_NORETURN throwError(const QString &message); - void Q_NORETURN throwSyntaxError(DiagnosticMessage *message); + void Q_NORETURN throwSyntaxError(const QString &message); + void Q_NORETURN throwSyntaxError(const QString &message, const QString &fileName, int line, int column); void Q_NORETURN throwTypeError(); void Q_NORETURN throwTypeError(const QString &message); void Q_NORETURN throwReferenceError(Value value); - void Q_NORETURN throwReferenceError(Value value, const QString &fileName, int line); + void Q_NORETURN throwReferenceError(const QString &value, const QString &fileName, int line, int column); void Q_NORETURN throwRangeError(Value value); void Q_NORETURN throwURIError(Value msg); void Q_NORETURN throwUnimplemented(const QString &message); |