Merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba
- markos-scratch
- Merge into trunk
Proposed by
Markos Zaharioudakis
Status: | Merged |
---|---|
Merged at revision: | 11595 |
Proposed branch: | lp:~zorba-coders/zorba/markos-scratch |
Merge into: | lp:zorba |
Diff against target: |
395 lines (+33/-141) 15 files modified
modules/org/jsoniq/www/functions.xq (+1/-11) src/functions/func_jsoniq_functions_impl.cpp (+12/-0) src/functions/pregenerated/func_jsoniq_functions.cpp (+2/-24) src/functions/pregenerated/func_jsoniq_functions.h (+2/-15) src/functions/pregenerated/function_enum.h (+0/-1) src/runtime/json/jsoniq_functions_impl.cpp (+10/-7) src/runtime/json/pregenerated/jsoniq_functions.cpp (+0/-24) src/runtime/json/pregenerated/jsoniq_functions.h (+0/-30) src/runtime/pregenerated/iterator_enum.h (+0/-1) src/runtime/spec/json/jsoniq_functions.xml (+4/-4) src/runtime/visitors/pregenerated/planiter_visitor.h (+0/-5) src/runtime/visitors/pregenerated/printer_visitor.cpp (+0/-14) src/runtime/visitors/pregenerated/printer_visitor.h (+0/-3) test/rbkt/Queries/zorba/jsoniq/null04.xq (+1/-1) test/rbkt/Queries/zorba/jsoniq/null05.xq (+1/-1) |
To merge this branch: | bzr merge lp:~zorba-coders/zorba/markos-scratch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Markos Zaharioudakis | Approve | ||
Review via email: mp+179692@code.launchpad.net |
Commit message
removed jn:null() + allow empty seq as input to jn:size()
Description of the change
removed jn:null() + allow empty seq as input to jn:size()
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 result for https:/
Stage "TestZorbaUbuntu" failed.
1 tests failed (8402 total tests run).
Check test results at http://
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue succeeded - proposal merged!
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'modules/org/jsoniq/www/functions.xq' | |||
2 | --- modules/org/jsoniq/www/functions.xq 2013-08-12 09:59:18 +0000 | |||
3 | +++ modules/org/jsoniq/www/functions.xq 2013-08-12 12:50:29 +0000 | |||
4 | @@ -215,7 +215,7 @@ | |||
5 | 215 | : @param $j A JSON Array. | 215 | : @param $j A JSON Array. |
6 | 216 | : @return The number of items in $j. | 216 | : @return The number of items in $j. |
7 | 217 | :) | 217 | :) |
9 | 218 | declare function jn:size($j as array()) as xs:integer external; | 218 | declare function jn:size($j as array()?) as xs:integer? external; |
10 | 219 | 219 | ||
11 | 220 | 220 | ||
12 | 221 | (:~ | 221 | (:~ |
13 | @@ -260,14 +260,4 @@ | |||
14 | 260 | declare function jn:null() as js:null external; | 260 | declare function jn:null() as js:null external; |
15 | 261 | 261 | ||
16 | 262 | 262 | ||
17 | 263 | (:~ | ||
18 | 264 | : Tests whether the supplied atomic item is a JSON null. | ||
19 | 265 | : | ||
20 | 266 | : @param An atomic item. | ||
21 | 267 | : | ||
22 | 268 | : @return true if the item is of type js:null. | ||
23 | 269 | :) | ||
24 | 270 | declare function jn:is-null($i as xs:anyAtomicType) as xs:boolean external; | ||
25 | 271 | |||
26 | 272 | |||
27 | 273 | 263 | ||
28 | 274 | 264 | ||
29 | === modified file 'src/functions/func_jsoniq_functions_impl.cpp' | |||
30 | --- src/functions/func_jsoniq_functions_impl.cpp 2013-08-09 10:23:10 +0000 | |||
31 | +++ src/functions/func_jsoniq_functions_impl.cpp 2013-08-12 12:50:29 +0000 | |||
32 | @@ -70,6 +70,18 @@ | |||
33 | 70 | /******************************************************************************* | 70 | /******************************************************************************* |
34 | 71 | 71 | ||
35 | 72 | ********************************************************************************/ | 72 | ********************************************************************************/ |
36 | 73 | xqtref_t fn_jsoniq_size::getReturnType(const fo_expr* caller) const | ||
37 | 74 | { | ||
38 | 75 | if (caller->get_arg(0)->get_return_type()->get_quantifier() == TypeConstants::QUANT_ONE) | ||
39 | 76 | return GENV_TYPESYSTEM.INTEGER_TYPE_ONE; | ||
40 | 77 | |||
41 | 78 | return theSignature.returnType(); | ||
42 | 79 | } | ||
43 | 80 | |||
44 | 81 | |||
45 | 82 | /******************************************************************************* | ||
46 | 83 | |||
47 | 84 | ********************************************************************************/ | ||
48 | 73 | PlanIter_t fn_jsoniq_keys::codegen( | 85 | PlanIter_t fn_jsoniq_keys::codegen( |
49 | 74 | CompilerCB*, | 86 | CompilerCB*, |
50 | 75 | static_context* sctx, | 87 | static_context* sctx, |
51 | 76 | 88 | ||
52 | === modified file 'src/functions/pregenerated/func_jsoniq_functions.cpp' | |||
53 | --- src/functions/pregenerated/func_jsoniq_functions.cpp 2013-08-12 10:27:18 +0000 | |||
54 | +++ src/functions/pregenerated/func_jsoniq_functions.cpp 2013-08-12 12:50:29 +0000 | |||
55 | @@ -154,16 +154,6 @@ | |||
56 | 154 | return new JSONNullIterator(sctx, loc); | 154 | return new JSONNullIterator(sctx, loc); |
57 | 155 | } | 155 | } |
58 | 156 | 156 | ||
59 | 157 | PlanIter_t fn_jsoniq_is_null::codegen( | ||
60 | 158 | CompilerCB*, | ||
61 | 159 | static_context* sctx, | ||
62 | 160 | const QueryLoc& loc, | ||
63 | 161 | std::vector<PlanIter_t>& argv, | ||
64 | 162 | expr& ann) const | ||
65 | 163 | { | ||
66 | 164 | return new JSONIsNullIterator(sctx, loc, argv[0]); | ||
67 | 165 | } | ||
68 | 166 | |||
69 | 167 | PlanIter_t op_zorba_json_object_insert::codegen( | 157 | PlanIter_t op_zorba_json_object_insert::codegen( |
70 | 168 | CompilerCB*, | 158 | CompilerCB*, |
71 | 169 | static_context* sctx, | 159 | static_context* sctx, |
72 | @@ -431,8 +421,8 @@ | |||
73 | 431 | { | 421 | { |
74 | 432 | DECL_WITH_KIND(sctx, fn_jsoniq_size, | 422 | DECL_WITH_KIND(sctx, fn_jsoniq_size, |
75 | 433 | (createQName("http://jsoniq.org/functions","","size"), | 423 | (createQName("http://jsoniq.org/functions","","size"), |
78 | 434 | GENV_TYPESYSTEM.JSON_ARRAY_TYPE_ONE, | 424 | GENV_TYPESYSTEM.JSON_ARRAY_TYPE_QUESTION, |
79 | 435 | GENV_TYPESYSTEM.INTEGER_TYPE_ONE), | 425 | GENV_TYPESYSTEM.INTEGER_TYPE_QUESTION), |
80 | 436 | FunctionConsts::FN_JSONIQ_SIZE_1); | 426 | FunctionConsts::FN_JSONIQ_SIZE_1); |
81 | 437 | 427 | ||
82 | 438 | } | 428 | } |
83 | @@ -464,18 +454,6 @@ | |||
84 | 464 | 454 | ||
85 | 465 | 455 | ||
86 | 466 | { | 456 | { |
87 | 467 | DECL_WITH_KIND(sctx, fn_jsoniq_is_null, | ||
88 | 468 | (createQName("http://jsoniq.org/functions","","is-null"), | ||
89 | 469 | GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_ONE, | ||
90 | 470 | GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE), | ||
91 | 471 | FunctionConsts::FN_JSONIQ_IS_NULL_1); | ||
92 | 472 | |||
93 | 473 | } | ||
94 | 474 | |||
95 | 475 | |||
96 | 476 | |||
97 | 477 | |||
98 | 478 | { | ||
99 | 479 | DECL_WITH_KIND(sctx, op_zorba_json_object_insert, | 457 | DECL_WITH_KIND(sctx, op_zorba_json_object_insert, |
100 | 480 | (createQName("http://zorba.io/internal/zorba-ops","","json-object-insert"), | 458 | (createQName("http://zorba.io/internal/zorba-ops","","json-object-insert"), |
101 | 481 | GENV_TYPESYSTEM.JSON_OBJECT_TYPE_ONE, | 459 | GENV_TYPESYSTEM.JSON_OBJECT_TYPE_ONE, |
102 | 482 | 460 | ||
103 | === modified file 'src/functions/pregenerated/func_jsoniq_functions.h' | |||
104 | --- src/functions/pregenerated/func_jsoniq_functions.h 2013-08-09 10:23:10 +0000 | |||
105 | +++ src/functions/pregenerated/func_jsoniq_functions.h 2013-08-12 12:50:29 +0000 | |||
106 | @@ -287,6 +287,8 @@ | |||
107 | 287 | 287 | ||
108 | 288 | } | 288 | } |
109 | 289 | 289 | ||
110 | 290 | xqtref_t getReturnType(const fo_expr* caller) const; | ||
111 | 291 | |||
112 | 290 | bool propagatesInputNodes(expr* fo, csize producer) const { return false; } | 292 | bool propagatesInputNodes(expr* fo, csize producer) const { return false; } |
113 | 291 | 293 | ||
114 | 292 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 294 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
115 | @@ -329,21 +331,6 @@ | |||
116 | 329 | }; | 331 | }; |
117 | 330 | 332 | ||
118 | 331 | 333 | ||
119 | 332 | //fn-jsoniq:is-null | ||
120 | 333 | class fn_jsoniq_is_null : public function | ||
121 | 334 | { | ||
122 | 335 | public: | ||
123 | 336 | fn_jsoniq_is_null(const signature& sig, FunctionConsts::FunctionKind kind) | ||
124 | 337 | : | ||
125 | 338 | function(sig, kind) | ||
126 | 339 | { | ||
127 | 340 | |||
128 | 341 | } | ||
129 | 342 | |||
130 | 343 | CODEGEN_DECL(); | ||
131 | 344 | }; | ||
132 | 345 | |||
133 | 346 | |||
134 | 347 | //op-zorba:json-object-insert | 334 | //op-zorba:json-object-insert |
135 | 348 | class op_zorba_json_object_insert : public function | 335 | class op_zorba_json_object_insert : public function |
136 | 349 | { | 336 | { |
137 | 350 | 337 | ||
138 | === modified file 'src/functions/pregenerated/function_enum.h' | |||
139 | --- src/functions/pregenerated/function_enum.h 2013-08-09 10:23:10 +0000 | |||
140 | +++ src/functions/pregenerated/function_enum.h 2013-08-12 12:50:29 +0000 | |||
141 | @@ -271,7 +271,6 @@ | |||
142 | 271 | FN_JSONIQ_SIZE_1, | 271 | FN_JSONIQ_SIZE_1, |
143 | 272 | FN_JSONIQ_FLATTEN_1, | 272 | FN_JSONIQ_FLATTEN_1, |
144 | 273 | FN_JSONIQ_NULL_0, | 273 | FN_JSONIQ_NULL_0, |
145 | 274 | FN_JSONIQ_IS_NULL_1, | ||
146 | 275 | OP_ZORBA_JSON_OBJECT_INSERT_2, | 274 | OP_ZORBA_JSON_OBJECT_INSERT_2, |
147 | 276 | OP_ZORBA_JSON_ARRAY_INSERT_3, | 275 | OP_ZORBA_JSON_ARRAY_INSERT_3, |
148 | 277 | OP_ZORBA_JSON_DELETE_2, | 276 | OP_ZORBA_JSON_DELETE_2, |
149 | 278 | 277 | ||
150 | === modified file 'src/runtime/json/jsoniq_functions_impl.cpp' | |||
151 | --- src/runtime/json/jsoniq_functions_impl.cpp 2013-08-09 10:23:10 +0000 | |||
152 | +++ src/runtime/json/jsoniq_functions_impl.cpp 2013-08-12 12:50:29 +0000 | |||
153 | @@ -1278,17 +1278,18 @@ | |||
154 | 1278 | store::Item_t& result, | 1278 | store::Item_t& result, |
155 | 1279 | PlanState& planState) const | 1279 | PlanState& planState) const |
156 | 1280 | { | 1280 | { |
159 | 1281 | store::Item_t lJSONItem; | 1281 | store::Item_t item; |
160 | 1282 | xs_integer lSize; | 1282 | xs_integer size; |
161 | 1283 | 1283 | ||
162 | 1284 | PlanIteratorState* state; | 1284 | PlanIteratorState* state; |
163 | 1285 | DEFAULT_STACK_INIT(PlanIteratorState, state, planState); | 1285 | DEFAULT_STACK_INIT(PlanIteratorState, state, planState); |
164 | 1286 | 1286 | ||
170 | 1287 | consumeNext(lJSONItem, theChild.getp(), planState); | 1287 | if (consumeNext(item, theChild.getp(), planState)) |
171 | 1288 | 1288 | { | |
172 | 1289 | lSize = lJSONItem->getArraySize(); | 1289 | size = item->getArraySize(); |
173 | 1290 | 1290 | ||
174 | 1291 | STACK_PUSH(GENV_ITEMFACTORY->createInteger(result, lSize), state); | 1291 | STACK_PUSH(GENV_ITEMFACTORY->createInteger(result, size), state); |
175 | 1292 | } | ||
176 | 1292 | 1293 | ||
177 | 1293 | STACK_END(state); | 1294 | STACK_END(state); |
178 | 1294 | } | 1295 | } |
179 | @@ -1516,6 +1517,7 @@ | |||
180 | 1516 | } | 1517 | } |
181 | 1517 | 1518 | ||
182 | 1518 | 1519 | ||
183 | 1520 | #if 0 | ||
184 | 1519 | /******************************************************************************* | 1521 | /******************************************************************************* |
185 | 1520 | jn:is-null(xs:anyAtomicType) as xs:boolean | 1522 | jn:is-null(xs:anyAtomicType) as xs:boolean |
186 | 1521 | ********************************************************************************/ | 1523 | ********************************************************************************/ |
187 | @@ -1537,6 +1539,7 @@ | |||
188 | 1537 | 1539 | ||
189 | 1538 | STACK_END(state); | 1540 | STACK_END(state); |
190 | 1539 | } | 1541 | } |
191 | 1542 | #endif | ||
192 | 1540 | 1543 | ||
193 | 1541 | 1544 | ||
194 | 1542 | /******************************************************************************* | 1545 | /******************************************************************************* |
195 | 1543 | 1546 | ||
196 | === modified file 'src/runtime/json/pregenerated/jsoniq_functions.cpp' | |||
197 | --- src/runtime/json/pregenerated/jsoniq_functions.cpp 2013-06-18 18:55:33 +0000 | |||
198 | +++ src/runtime/json/pregenerated/jsoniq_functions.cpp 2013-08-12 12:50:29 +0000 | |||
199 | @@ -505,30 +505,6 @@ | |||
200 | 505 | // </JSONNullIterator> | 505 | // </JSONNullIterator> |
201 | 506 | 506 | ||
202 | 507 | 507 | ||
203 | 508 | // <JSONIsNullIterator> | ||
204 | 509 | SERIALIZABLE_CLASS_VERSIONS(JSONIsNullIterator) | ||
205 | 510 | |||
206 | 511 | void JSONIsNullIterator::serialize(::zorba::serialization::Archiver& ar) | ||
207 | 512 | { | ||
208 | 513 | serialize_baseclass(ar, | ||
209 | 514 | (UnaryBaseIterator<JSONIsNullIterator, PlanIteratorState>*)this); | ||
210 | 515 | } | ||
211 | 516 | |||
212 | 517 | |||
213 | 518 | void JSONIsNullIterator::accept(PlanIterVisitor& v) const | ||
214 | 519 | { | ||
215 | 520 | v.beginVisit(*this); | ||
216 | 521 | |||
217 | 522 | theChild->accept(v); | ||
218 | 523 | |||
219 | 524 | v.endVisit(*this); | ||
220 | 525 | } | ||
221 | 526 | |||
222 | 527 | JSONIsNullIterator::~JSONIsNullIterator() {} | ||
223 | 528 | |||
224 | 529 | // </JSONIsNullIterator> | ||
225 | 530 | |||
226 | 531 | |||
227 | 532 | // <JSONObjectInsertIterator> | 508 | // <JSONObjectInsertIterator> |
228 | 533 | SERIALIZABLE_CLASS_VERSIONS(JSONObjectInsertIterator) | 509 | SERIALIZABLE_CLASS_VERSIONS(JSONObjectInsertIterator) |
229 | 534 | 510 | ||
230 | 535 | 511 | ||
231 | === modified file 'src/runtime/json/pregenerated/jsoniq_functions.h' | |||
232 | --- src/runtime/json/pregenerated/jsoniq_functions.h 2013-06-18 18:55:33 +0000 | |||
233 | +++ src/runtime/json/pregenerated/jsoniq_functions.h 2013-08-12 12:50:29 +0000 | |||
234 | @@ -655,36 +655,6 @@ | |||
235 | 655 | 655 | ||
236 | 656 | /** | 656 | /** |
237 | 657 | * | 657 | * |
238 | 658 | * Author: | ||
239 | 659 | */ | ||
240 | 660 | class JSONIsNullIterator : public UnaryBaseIterator<JSONIsNullIterator, PlanIteratorState> | ||
241 | 661 | { | ||
242 | 662 | public: | ||
243 | 663 | SERIALIZABLE_CLASS(JSONIsNullIterator); | ||
244 | 664 | |||
245 | 665 | SERIALIZABLE_CLASS_CONSTRUCTOR2T(JSONIsNullIterator, | ||
246 | 666 | UnaryBaseIterator<JSONIsNullIterator, PlanIteratorState>); | ||
247 | 667 | |||
248 | 668 | void serialize( ::zorba::serialization::Archiver& ar); | ||
249 | 669 | |||
250 | 670 | JSONIsNullIterator( | ||
251 | 671 | static_context* sctx, | ||
252 | 672 | const QueryLoc& loc, | ||
253 | 673 | PlanIter_t& child) | ||
254 | 674 | : | ||
255 | 675 | UnaryBaseIterator<JSONIsNullIterator, PlanIteratorState>(sctx, loc, child) | ||
256 | 676 | {} | ||
257 | 677 | |||
258 | 678 | virtual ~JSONIsNullIterator(); | ||
259 | 679 | |||
260 | 680 | void accept(PlanIterVisitor& v) const; | ||
261 | 681 | |||
262 | 682 | bool nextImpl(store::Item_t& result, PlanState& aPlanState) const; | ||
263 | 683 | }; | ||
264 | 684 | |||
265 | 685 | |||
266 | 686 | /** | ||
267 | 687 | * | ||
268 | 688 | * internal function | 658 | * internal function |
269 | 689 | * | 659 | * |
270 | 690 | * Author: Zorba Team | 660 | * Author: Zorba Team |
271 | 691 | 661 | ||
272 | === modified file 'src/runtime/pregenerated/iterator_enum.h' | |||
273 | --- src/runtime/pregenerated/iterator_enum.h 2013-07-26 21:05:40 +0000 | |||
274 | +++ src/runtime/pregenerated/iterator_enum.h 2013-08-12 12:50:29 +0000 | |||
275 | @@ -179,7 +179,6 @@ | |||
276 | 179 | TYPE_JSONArraySizeIterator, | 179 | TYPE_JSONArraySizeIterator, |
277 | 180 | TYPE_JSONArrayFlattenIterator, | 180 | TYPE_JSONArrayFlattenIterator, |
278 | 181 | TYPE_JSONNullIterator, | 181 | TYPE_JSONNullIterator, |
279 | 182 | TYPE_JSONIsNullIterator, | ||
280 | 183 | TYPE_JSONObjectInsertIterator, | 182 | TYPE_JSONObjectInsertIterator, |
281 | 184 | TYPE_JSONArrayInsertIterator, | 183 | TYPE_JSONArrayInsertIterator, |
282 | 185 | TYPE_JSONDeleteIterator, | 184 | TYPE_JSONDeleteIterator, |
283 | 186 | 185 | ||
284 | === modified file 'src/runtime/spec/json/jsoniq_functions.xml' | |||
285 | --- src/runtime/spec/json/jsoniq_functions.xml 2013-08-09 10:23:10 +0000 | |||
286 | +++ src/runtime/spec/json/jsoniq_functions.xml 2013-08-12 12:50:29 +0000 | |||
287 | @@ -479,11 +479,12 @@ | |||
288 | 479 | 479 | ||
289 | 480 | <zorba:function isDeterministic="true"> | 480 | <zorba:function isDeterministic="true"> |
290 | 481 | <zorba:signature localname="size" prefix="fn-jsoniq"> | 481 | <zorba:signature localname="size" prefix="fn-jsoniq"> |
293 | 482 | <zorba:param>array()</zorba:param> | 482 | <zorba:param>array()?</zorba:param> |
294 | 483 | <zorba:output>xs:integer</zorba:output> | 483 | <zorba:output>xs:integer?</zorba:output> |
295 | 484 | </zorba:signature> | 484 | </zorba:signature> |
296 | 485 | 485 | ||
297 | 486 | <zorba:methods> | 486 | <zorba:methods> |
298 | 487 | <zorba:getReturnType/> | ||
299 | 487 | <zorba:propagatesInputNodes value="false"/> | 488 | <zorba:propagatesInputNodes value="false"/> |
300 | 488 | <zorba:mustCopyInputNodes value="false"/> | 489 | <zorba:mustCopyInputNodes value="false"/> |
301 | 489 | </zorba:methods> | 490 | </zorba:methods> |
302 | @@ -543,7 +544,6 @@ | |||
303 | 543 | <!-- | 544 | <!-- |
304 | 544 | /******************************************************************************* | 545 | /******************************************************************************* |
305 | 545 | ********************************************************************************/ | 546 | ********************************************************************************/ |
306 | 546 | --> | ||
307 | 547 | <zorba:iterator name="JSONIsNullIterator" arity="unary"> | 547 | <zorba:iterator name="JSONIsNullIterator" arity="unary"> |
308 | 548 | 548 | ||
309 | 549 | <zorba:function isDeterministic="true"> | 549 | <zorba:function isDeterministic="true"> |
310 | @@ -555,7 +555,7 @@ | |||
311 | 555 | </zorba:function> | 555 | </zorba:function> |
312 | 556 | 556 | ||
313 | 557 | </zorba:iterator> | 557 | </zorba:iterator> |
315 | 558 | 558 | --> | |
316 | 559 | 559 | ||
317 | 560 | <!-- | 560 | <!-- |
318 | 561 | /******************************************************************************* | 561 | /******************************************************************************* |
319 | 562 | 562 | ||
320 | === modified file 'src/runtime/visitors/pregenerated/planiter_visitor.h' | |||
321 | --- src/runtime/visitors/pregenerated/planiter_visitor.h 2013-07-26 21:05:40 +0000 | |||
322 | +++ src/runtime/visitors/pregenerated/planiter_visitor.h 2013-08-12 12:50:29 +0000 | |||
323 | @@ -364,8 +364,6 @@ | |||
324 | 364 | 364 | ||
325 | 365 | class JSONNullIterator; | 365 | class JSONNullIterator; |
326 | 366 | 366 | ||
327 | 367 | class JSONIsNullIterator; | ||
328 | 368 | |||
329 | 369 | class JSONObjectInsertIterator; | 367 | class JSONObjectInsertIterator; |
330 | 370 | 368 | ||
331 | 371 | class JSONArrayInsertIterator; | 369 | class JSONArrayInsertIterator; |
332 | @@ -1252,9 +1250,6 @@ | |||
333 | 1252 | virtual void beginVisit ( const JSONNullIterator& ) = 0; | 1250 | virtual void beginVisit ( const JSONNullIterator& ) = 0; |
334 | 1253 | virtual void endVisit ( const JSONNullIterator& ) = 0; | 1251 | virtual void endVisit ( const JSONNullIterator& ) = 0; |
335 | 1254 | 1252 | ||
336 | 1255 | virtual void beginVisit ( const JSONIsNullIterator& ) = 0; | ||
337 | 1256 | virtual void endVisit ( const JSONIsNullIterator& ) = 0; | ||
338 | 1257 | |||
339 | 1258 | virtual void beginVisit ( const JSONObjectInsertIterator& ) = 0; | 1253 | virtual void beginVisit ( const JSONObjectInsertIterator& ) = 0; |
340 | 1259 | virtual void endVisit ( const JSONObjectInsertIterator& ) = 0; | 1254 | virtual void endVisit ( const JSONObjectInsertIterator& ) = 0; |
341 | 1260 | 1255 | ||
342 | 1261 | 1256 | ||
343 | === modified file 'src/runtime/visitors/pregenerated/printer_visitor.cpp' | |||
344 | --- src/runtime/visitors/pregenerated/printer_visitor.cpp 2013-08-05 11:54:06 +0000 | |||
345 | +++ src/runtime/visitors/pregenerated/printer_visitor.cpp 2013-08-12 12:50:29 +0000 | |||
346 | @@ -2220,20 +2220,6 @@ | |||
347 | 2220 | // </JSONNullIterator> | 2220 | // </JSONNullIterator> |
348 | 2221 | 2221 | ||
349 | 2222 | 2222 | ||
350 | 2223 | // <JSONIsNullIterator> | ||
351 | 2224 | void PrinterVisitor::beginVisit ( const JSONIsNullIterator& a) { | ||
352 | 2225 | thePrinter.startBeginVisit("JSONIsNullIterator", ++theId); | ||
353 | 2226 | printCommons( &a, theId ); | ||
354 | 2227 | thePrinter.endBeginVisit( theId ); | ||
355 | 2228 | } | ||
356 | 2229 | |||
357 | 2230 | void PrinterVisitor::endVisit ( const JSONIsNullIterator& ) { | ||
358 | 2231 | thePrinter.startEndVisit(); | ||
359 | 2232 | thePrinter.endEndVisit(); | ||
360 | 2233 | } | ||
361 | 2234 | // </JSONIsNullIterator> | ||
362 | 2235 | |||
363 | 2236 | |||
364 | 2237 | // <JSONObjectInsertIterator> | 2223 | // <JSONObjectInsertIterator> |
365 | 2238 | void PrinterVisitor::beginVisit ( const JSONObjectInsertIterator& a) { | 2224 | void PrinterVisitor::beginVisit ( const JSONObjectInsertIterator& a) { |
366 | 2239 | thePrinter.startBeginVisit("JSONObjectInsertIterator", ++theId); | 2225 | thePrinter.startBeginVisit("JSONObjectInsertIterator", ++theId); |
367 | 2240 | 2226 | ||
368 | === modified file 'src/runtime/visitors/pregenerated/printer_visitor.h' | |||
369 | --- src/runtime/visitors/pregenerated/printer_visitor.h 2013-07-26 21:05:40 +0000 | |||
370 | +++ src/runtime/visitors/pregenerated/printer_visitor.h 2013-08-12 12:50:29 +0000 | |||
371 | @@ -556,9 +556,6 @@ | |||
372 | 556 | void beginVisit( const JSONNullIterator& ); | 556 | void beginVisit( const JSONNullIterator& ); |
373 | 557 | void endVisit ( const JSONNullIterator& ); | 557 | void endVisit ( const JSONNullIterator& ); |
374 | 558 | 558 | ||
375 | 559 | void beginVisit( const JSONIsNullIterator& ); | ||
376 | 560 | void endVisit ( const JSONIsNullIterator& ); | ||
377 | 561 | |||
378 | 562 | void beginVisit( const JSONObjectInsertIterator& ); | 559 | void beginVisit( const JSONObjectInsertIterator& ); |
379 | 563 | void endVisit ( const JSONObjectInsertIterator& ); | 560 | void endVisit ( const JSONObjectInsertIterator& ); |
380 | 564 | 561 | ||
381 | 565 | 562 | ||
382 | === modified file 'test/rbkt/Queries/zorba/jsoniq/null04.xq' | |||
383 | --- test/rbkt/Queries/zorba/jsoniq/null04.xq 2012-09-13 12:51:41 +0000 | |||
384 | +++ test/rbkt/Queries/zorba/jsoniq/null04.xq 2013-08-12 12:50:29 +0000 | |||
385 | @@ -1,2 +1,2 @@ | |||
387 | 1 | jn:is-null(jn:null()) | 1 | jn:null() instance of js:null |
388 | 2 | 2 | ||
389 | 3 | 3 | ||
390 | === modified file 'test/rbkt/Queries/zorba/jsoniq/null05.xq' | |||
391 | --- test/rbkt/Queries/zorba/jsoniq/null05.xq 2012-09-13 12:51:41 +0000 | |||
392 | +++ test/rbkt/Queries/zorba/jsoniq/null05.xq 2013-08-12 12:50:29 +0000 | |||
393 | @@ -1,2 +1,2 @@ | |||
395 | 1 | jn:is-null("null") | 1 | "null" instance of js:null |
396 | 2 | 2 |
Validation queue starting for the following merge proposals: /code.launchpad .net/~zorba- coders/ zorba/markos- scratch/ +merge/ 179692
https:/
Progress dashboard at http:// jenkins. lambda. nu/view/ ValidationQueue