diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-13 18:14:50 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-13 18:18:52 +0200 |
commit | a16f4fe660de843c1a392b5bf1649c2df21e1522 (patch) | |
tree | 327e0c00267df0bc2354e4c38b2d9f5aec0395d2 /src/qml/compiler/qv4compileddata.cpp | |
parent | 707e07461c6d4448c90e1d16314d5adf778b67a4 (diff) |
Move AST -> CompiledData location transformation to scan functions
That's the only place where we use it and this way we can remove the AST
dependency from the compiled data.
Change-Id: I530a0f18a08672acd7031a552885b819e6fe2b84
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compileddata.cpp')
-rw-r--r-- | src/qml/compiler/qv4compileddata.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index 813868b0ae..ee413a906d 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -269,13 +269,6 @@ bool Unit::verifyHeader(QDateTime expectedSourceTimeStamp, QString *errorString) return true; } -Location &Location::operator=(const QQmlJS::AST::SourceLocation &astLocation) -{ - line = astLocation.startLine; - column = astLocation.startColumn; - return *this; -} - } } |