diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-06 08:07:02 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-06 08:13:38 (GMT) |
commit | 3350281b3b4640b24b09f2897b033678670ed37a (patch) | |
tree | afac2b1d8e5686e1a8619bb289f0562ab8f396fc /src/3rdparty/webkit/JavaScriptCore/parser/Parser.h | |
parent | 520378cfedd63544a9689687256d2c89352ee561 (diff) | |
download | Qt-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/JavaScriptCore/parser/Parser.h')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/parser/Parser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/parser/Parser.h b/src/3rdparty/webkit/JavaScriptCore/parser/Parser.h index 373dc00..5a182a6 100644 --- a/src/3rdparty/webkit/JavaScriptCore/parser/Parser.h +++ b/src/3rdparty/webkit/JavaScriptCore/parser/Parser.h @@ -76,7 +76,8 @@ namespace JSC { *m_source, m_features, m_numConstants); - result->setLoc(m_source->firstLine(), m_lastLine); + int column = m_source->startOffset(); //is it good way to find column number? + result->setLoc(m_source->firstLine(), m_lastLine, column); } m_arena.reset(); @@ -103,7 +104,8 @@ namespace JSC { *m_source, oldParsedNode->features(), m_numConstants); - result->setLoc(m_source->firstLine(), m_lastLine); + int column = m_source->startOffset(); //is it good way to find column number? + result->setLoc(m_source->firstLine(), m_lastLine, column); } m_arena.reset(); |