summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-05-11 08:10:23 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-05-11 08:18:05 (GMT)
commit205885831029730ee8faf28dcc7083806cfd5205 (patch)
tree565912a0f722ac54c52f065bb3791f637e12dc64 /src/declarative/qml/qmlscriptparser.cpp
parent4b474ca66f17d9c6a97fbfa521fcfeb68aa977e1 (diff)
downloadQt-205885831029730ee8faf28dcc7083806cfd5205.zip
Qt-205885831029730ee8faf28dcc7083806cfd5205.tar.gz
Qt-205885831029730ee8faf28dcc7083806cfd5205.tar.bz2
Added positioning information to the dom as position+length.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index 169e2ea..36005c2 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -339,6 +339,8 @@ LocationSpan ProcessAST::location(AST::SourceLocation start, AST::SourceLocation
rv.start.column = start.startColumn;
rv.end.line = end.startLine;
rv.end.column = end.startColumn + end.length - 1;
+ rv.range.offset = start.offset;
+ rv.range.length = end.offset + end.length - start.offset;
return rv;
}