~juan457/+junk/zorba

« back to all changes in this revision

Viewing changes to src/compiler/expression/json_exprs.cpp

  • Committer: Markos Zaharioudakis
  • Date: 2012-07-11 15:38:39 UTC
  • mfrom: (10924 zorba)
  • mto: This revision was merged to the branch mainline in revision 10932.
  • Revision ID: markos_za@yahoo.com-20120711153839-0mkh15cg2ubknchd
work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "compiler/expression/json_exprs.h"
18
18
#include "compiler/expression/expr_visitor.h"
19
19
 
20
 
#include "zorbaserialization/serialize_template_types.h"
21
 
#include "zorbaserialization/serialize_zorba_types.h"
22
 
 
23
20
#ifdef ZORBA_WITH_JSON
24
21
 
25
22
namespace zorba 
26
23
{
27
24
 
28
 
SERIALIZABLE_CLASS_VERSIONS(json_array_expr)
29
 
 
30
 
SERIALIZABLE_CLASS_VERSIONS(json_object_expr)
31
 
 
32
 
SERIALIZABLE_CLASS_VERSIONS(json_direct_object_expr)
33
 
 
34
25
DEF_EXPR_ACCEPT(json_array_expr)
35
26
DEF_EXPR_ACCEPT(json_object_expr)
36
27
DEF_EXPR_ACCEPT(json_direct_object_expr)
50
41
}
51
42
 
52
43
 
53
 
void json_array_expr::serialize(::zorba::serialization::Archiver& ar)
54
 
{
55
 
  serialize_baseclass(ar, (expr*)this);
56
 
  ar & theContentExpr;
57
 
}
58
 
 
59
 
 
60
44
void json_array_expr::compute_scripting_kind() 
61
45
{
62
46
  if (theContentExpr)
103
87
}
104
88
 
105
89
 
106
 
void json_object_expr::serialize(::zorba::serialization::Archiver& ar)
107
 
{
108
 
  serialize_baseclass(ar, (expr*)this);
109
 
  ar & theContentExpr;
110
 
  ar & theAccumulate;
111
 
}
112
 
 
113
 
 
114
90
void json_object_expr::compute_scripting_kind() 
115
91
{
116
92
  if (theContentExpr)
164
140
}
165
141
 
166
142
 
167
 
void json_direct_object_expr::serialize(::zorba::serialization::Archiver& ar)
168
 
{
169
 
  serialize_baseclass(ar, (expr*)this);
170
 
  ar & theNames;
171
 
  ar & theValues;
172
 
}
173
 
 
174
 
 
175
143
void json_direct_object_expr::compute_scripting_kind() 
176
144
{
177
145
  theScriptingKind = SIMPLE_EXPR;