diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-09-08 13:43:43 (GMT) |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-09-08 13:43:43 (GMT) |
commit | 7731e5f7d33d3ec251299c7651e777d7e0054573 (patch) | |
tree | b326e16b1ba93f53e7b5b91f69a61a13a97e24a2 /src/declarative/qml/parser/qmljsastfwd_p.h | |
parent | 914e331be160347a031cef131ac1cbc0a6787be0 (diff) | |
download | Qt-7731e5f7d33d3ec251299c7651e777d7e0054573.zip Qt-7731e5f7d33d3ec251299c7651e777d7e0054573.tar.gz Qt-7731e5f7d33d3ec251299c7651e777d7e0054573.tar.bz2 |
Added an option to the lexer to tell the engine of all comments in a QML
file.
Diffstat (limited to 'src/declarative/qml/parser/qmljsastfwd_p.h')
-rw-r--r-- | src/declarative/qml/parser/qmljsastfwd_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/parser/qmljsastfwd_p.h b/src/declarative/qml/parser/qmljsastfwd_p.h index f79cfc2..a6fee1d 100644 --- a/src/declarative/qml/parser/qmljsastfwd_p.h +++ b/src/declarative/qml/parser/qmljsastfwd_p.h @@ -62,9 +62,9 @@ namespace QmlJS { namespace AST { class SourceLocation { public: - SourceLocation(quint32 offset = 0, quint32 length = 0) + SourceLocation(quint32 offset = 0, quint32 length = 0, quint32 line = 0, quint32 column = 0) : offset(offset), length(length), - startLine(0), startColumn(0) + startLine(line), startColumn(column) { } bool isValid() const { return length != 0; } |