diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-10-26 11:46:40 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-10-26 11:48:20 (GMT) |
commit | f30bcbd8409efdb48790ec09f603887d5763ea7c (patch) | |
tree | bec81699dbee7cdc9d207fedb6a113700a9a375c /src/declarative/qml/parser/qdeclarativejs.g | |
parent | a721eb2fc6f0b95bb95b508baf60798ca60b1172 (diff) | |
download | Qt-f30bcbd8409efdb48790ec09f603887d5763ea7c.zip Qt-f30bcbd8409efdb48790ec09f603887d5763ea7c.tar.gz Qt-f30bcbd8409efdb48790ec09f603887d5763ea7c.tar.bz2 |
Set the location of the closing brace.
Reviewed-by: Christian Kamm
Diffstat (limited to 'src/declarative/qml/parser/qdeclarativejs.g')
-rw-r--r-- | src/declarative/qml/parser/qdeclarativejs.g | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/parser/qdeclarativejs.g b/src/declarative/qml/parser/qdeclarativejs.g index 1b66ba0..c84f0b3 100644 --- a/src/declarative/qml/parser/qdeclarativejs.g +++ b/src/declarative/qml/parser/qdeclarativejs.g @@ -1254,7 +1254,7 @@ case $rule_number: { else node = makeAstNode<AST::ObjectLiteral> (driver->nodePool()); node->lbraceToken = loc(1); - node->lbraceToken = loc(3); + node->rbraceToken = loc(3); sym(1).Node = node; } break; ./ @@ -1265,7 +1265,7 @@ case $rule_number: { AST::ObjectLiteral *node = makeAstNode<AST::ObjectLiteral> (driver->nodePool(), sym(2).PropertyNameAndValueList->finish ()); node->lbraceToken = loc(1); - node->lbraceToken = loc(4); + node->rbraceToken = loc(4); sym(1).Node = node; } break; ./ |