summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-06 08:07:02 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-06 08:13:38 (GMT)
commit3350281b3b4640b24b09f2897b033678670ed37a (patch)
treeafac2b1d8e5686e1a8619bb289f0562ab8f396fc /src/3rdparty/webkit/WebCore
parent520378cfedd63544a9689687256d2c89352ee561 (diff)
downloadQt-3350281b3b4640b24b09f2897b033678670ed37a.zip
Qt-3350281b3b4640b24b09f2897b033678670ed37a.tar.gz
Qt-3350281b3b4640b24b09f2897b033678670ed37a.tar.bz2
Force parser to send information about current column number.
Add new member in all statements nodes which suppose to be a column number from parser. All calls to setLoc were changed, they should pass 2xline number (first and last line) and column number of current "cursor"(token?) position. Develop op_debug opcode to contain column number. Review by: Kent Hansen
Diffstat (limited to 'src/3rdparty/webkit/WebCore')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/Grammar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/Grammar.cpp b/src/3rdparty/webkit/WebCore/generated/Grammar.cpp
index 6e976b9..76f90d7 100644
--- a/src/3rdparty/webkit/WebCore/generated/Grammar.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/Grammar.cpp
@@ -139,7 +139,7 @@ static inline bool allowAutomaticSemicolon(JSC::Lexer&, int);
#define AUTO_SEMICOLON do { if (!allowAutomaticSemicolon(*LEXER, yychar)) YYABORT; } while (0)
#define SET_EXCEPTION_LOCATION(node, start, divot, end) node->setExceptionSourceCode((divot), (divot) - (start), (end) - (divot))
-#define DBG(l, s, e) (l)->setLoc((s).first_line, (e).last_line)
+#define DBG(l, s, e) (l)->setLoc((s).first_line, (e).last_line, (s).first_column + 1)
using namespace JSC;
using namespace std;