summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser/qmljsastfwd_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-09-08 13:43:43 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-09-08 13:43:43 (GMT)
commit7731e5f7d33d3ec251299c7651e777d7e0054573 (patch)
treeb326e16b1ba93f53e7b5b91f69a61a13a97e24a2 /src/declarative/qml/parser/qmljsastfwd_p.h
parent914e331be160347a031cef131ac1cbc0a6787be0 (diff)
downloadQt-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.h4
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; }