Merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba

Proposed by Markos Zaharioudakis
Status: Merged
Approved by: Markos Zaharioudakis
Approved revision: 11083
Merged at revision: 11414
Proposed branch: lp:~zorba-coders/zorba/markos-scratch
Merge into: lp:zorba
Diff against target: 40 lines (+7/-3)
2 files modified
src/compiler/translator/translator.cpp (+7/-1)
test/fots/CMakeLists.txt (+0/-2)
To merge this branch: bzr merge lp:~zorba-coders/zorba/markos-scratch
Reviewer Review Type Date Requested Status
Markos Zaharioudakis Approve
Review via email: mp+161331@code.launchpad.net

Commit message

count clause defines a new variables scope

Description of the change

count clause defines a new variables scope

To post a comment you must log in.
Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job markos-scratch-2013-04-28T16-29-50.639Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp 2013-04-27 13:42:09 +0000
+++ src/compiler/translator/translator.cpp 2013-04-28 16:24:25 +0000
@@ -6756,9 +6756,13 @@
6756 pop_scope();6756 pop_scope();
6757 break;6757 break;
6758 }6758 }
6759 case flwor_clause::count_clause:
6760 {
6761 pop_scope();
6762 break;
6763 }
6759 case flwor_clause::orderby_clause:6764 case flwor_clause::orderby_clause:
6760 case flwor_clause::where_clause:6765 case flwor_clause::where_clause:
6761 case flwor_clause::count_clause:
6762 {6766 {
6763 break;6767 break;
6764 }6768 }
@@ -7756,6 +7760,8 @@
7756{7760{
7757 TRACE_VISIT_OUT();7761 TRACE_VISIT_OUT();
77587762
7763 push_scope();
7764
7759 var_expr* varExpr = bind_var(loc, v.get_varname(), var_expr::count_var, NULL);7765 var_expr* varExpr = bind_var(loc, v.get_varname(), var_expr::count_var, NULL);
77607766
7761 count_clause* clause = theExprManager->create_count_clause(theRootSctx,7767 count_clause* clause = theExprManager->create_count_clause(theRootSctx,
77627768
=== modified file 'test/fots/CMakeLists.txt'
--- test/fots/CMakeLists.txt 2013-04-27 14:31:20 +0000
+++ test/fots/CMakeLists.txt 2013-04-28 16:24:25 +0000
@@ -294,8 +294,6 @@
294EXPECTED_FOTS_FAILURE (prod-CastableExpr K-SeqExprCastable-5a 0)294EXPECTED_FOTS_FAILURE (prod-CastableExpr K-SeqExprCastable-5a 0)
295EXPECTED_FOTS_FAILURE (prod-CompDocConstructor K2-ConDocNode-2 0)295EXPECTED_FOTS_FAILURE (prod-CompDocConstructor K2-ConDocNode-2 0)
296EXPECTED_FOTS_FAILURE (prod-ContextItemDecl contextDecl-047 0)296EXPECTED_FOTS_FAILURE (prod-ContextItemDecl contextDecl-047 0)
297EXPECTED_FOTS_FAILURE (prod-CountClause count-007 0)
298EXPECTED_FOTS_FAILURE (prod-CountClause count-008 0)
299EXPECTED_FOTS_FAILURE (prod-DefaultNamespaceDecl defaultnamespacedeclerr-6 0)297EXPECTED_FOTS_FAILURE (prod-DefaultNamespaceDecl defaultnamespacedeclerr-6 0)
300EXPECTED_FOTS_FAILURE (prod-DefaultNamespaceDecl defaultnamespacedeclerr-8 0)298EXPECTED_FOTS_FAILURE (prod-DefaultNamespaceDecl defaultnamespacedeclerr-8 0)
301EXPECTED_FOTS_FAILURE (prod-DirElemContent Constr-cont-charref-2 1130998)299EXPECTED_FOTS_FAILURE (prod-DirElemContent Constr-cont-charref-2 1130998)

Subscribers

People subscribed via source and target branches