826
_tmp27_ = g_utf8_strdown (_tmp26_, (gssize) (-1));
828
_tmp30_ = _tmp29_ = g_strsplit (_tmp28_, " ", 0);
833
affinity_length1 = _vala_array_length (_tmp29_);
834
_affinity_size_ = _vala_array_length (_tmp29_);
835
if (g_strcmp0 (affinity[0], "integer") == 0) {
838
_tmp32_ = g_strdup ("int");
840
_g_free0 (affinity[0]);
841
affinity[0] = _tmp33_;
1162
_tmp44_ = g_utf8_strdown (_tmp43_, (gssize) (-1));
1164
_tmp47_ = _tmp46_ = g_strsplit (_tmp45_, " ", 0);
1166
_tmp48__length1 = _vala_array_length (_tmp46_);
1170
affinity_length1 = _tmp48__length1;
1171
_affinity_size_ = affinity_length1;
1173
_tmp49__length1 = affinity_length1;
1174
_tmp50_ = _tmp49_[0];
1175
if (g_strcmp0 (_tmp50_, "integer") == 0) {
1177
gint _tmp51__length1;
1181
_tmp51__length1 = affinity_length1;
1182
_tmp52_ = g_strdup ("int");
1183
_g_free0 (_tmp51_[0]);
1184
_tmp51_[0] = _tmp52_;
1185
_tmp53_ = _tmp51_[0];
843
gboolean _tmp34_ = FALSE;
844
gboolean _tmp35_ = FALSE;
845
if (g_strcmp0 (affinity[0], "text") == 0) {
849
_tmp36_ = g_str_has_prefix (affinity[0], "varchar");
856
_tmp37_ = g_str_has_prefix (affinity[0], "char");
862
_tmp38_ = g_strdup ("string");
864
_g_free0 (affinity[0]);
865
affinity[0] = _tmp39_;
867
if (g_strcmp0 (affinity[0], "blob") == 0) {
870
_tmp40_ = g_strdup ("uint8[]");
872
_g_free0 (affinity[0]);
873
affinity[0] = _tmp41_;
1187
gboolean _tmp54_ = FALSE;
1188
gboolean _tmp55_ = FALSE;
1190
gint _tmp56__length1;
1191
const gchar* _tmp57_;
1195
_tmp56__length1 = affinity_length1;
1196
_tmp57_ = _tmp56_[0];
1197
if (g_strcmp0 (_tmp57_, "text") == 0) {
1201
gint _tmp58__length1;
1202
const gchar* _tmp59_;
1203
gboolean _tmp60_ = FALSE;
1205
_tmp58__length1 = affinity_length1;
1206
_tmp59_ = _tmp58_[0];
1207
_tmp60_ = g_str_has_prefix (_tmp59_, "varchar");
1215
gint _tmp62__length1;
1216
const gchar* _tmp63_;
1217
gboolean _tmp64_ = FALSE;
1219
_tmp62__length1 = affinity_length1;
1220
_tmp63_ = _tmp62_[0];
1221
_tmp64_ = g_str_has_prefix (_tmp63_, "char");
1227
gint _tmp66__length1;
1231
_tmp66__length1 = affinity_length1;
1232
_tmp67_ = g_strdup ("string");
1233
_g_free0 (_tmp66_[0]);
1234
_tmp66_[0] = _tmp67_;
1235
_tmp68_ = _tmp66_[0];
1238
gint _tmp69__length1;
1239
const gchar* _tmp70_;
1241
_tmp69__length1 = affinity_length1;
1242
_tmp70_ = _tmp69_[0];
1243
if (g_strcmp0 (_tmp70_, "blob") == 0) {
1245
gint _tmp71__length1;
1249
_tmp71__length1 = affinity_length1;
1250
_tmp72_ = g_strdup ("uint8[]");
1251
_g_free0 (_tmp71_[0]);
1252
_tmp71_[0] = _tmp72_;
1253
_tmp73_ = _tmp71_[0];
875
gboolean _tmp42_ = FALSE;
876
if (g_strcmp0 (affinity[0], "timestamp") == 0) {
1255
gboolean _tmp74_ = FALSE;
1257
gint _tmp75__length1;
1258
const gchar* _tmp76_;
1261
_tmp75__length1 = affinity_length1;
1262
_tmp76_ = _tmp75_[0];
1263
if (g_strcmp0 (_tmp76_, "timestamp") == 0) {
879
_tmp42_ = g_strcmp0 (affinity[0], "datetime") == 0;
1267
gint _tmp77__length1;
1268
const gchar* _tmp78_;
1270
_tmp77__length1 = affinity_length1;
1271
_tmp78_ = _tmp77_[0];
1272
_tmp74_ = g_strcmp0 (_tmp78_, "datetime") == 0;
884
_tmp43_ = g_strdup ("time_t");
886
_g_free0 (affinity[0]);
887
affinity[0] = _tmp44_;
1277
gint _tmp80__length1;
1281
_tmp80__length1 = affinity_length1;
1282
_tmp81_ = g_strdup ("time_t");
1283
_g_free0 (_tmp80_[0]);
1284
_tmp80_[0] = _tmp81_;
1285
_tmp82_ = _tmp80_[0];
892
_tmp45_ = sql_heavy_generator_type_from_string (affinity[0]);
1291
_tmp83__length1 = affinity_length1;
1292
_tmp84_ = _tmp83_[0];
1293
_tmp85_ = sql_heavy_generator_type_from_string (_tmp84_);
893
1294
_vala_code_node_unref0 (data_type);
1295
data_type = _tmp85_;
895
1296
affinity = (_vala_array_free (affinity, affinity_length1, (GDestroyNotify) g_free), NULL);
897
_tmp46_ = vala_data_type_copy (data_type);
898
data_type_get = _tmp46_;
899
vala_data_type_set_value_owned (data_type_get, TRUE);
900
_tmp47_ = vala_switch_section_new (NULL);
901
switch_section = _tmp47_;
902
vala_switch_statement_add_section (signals, switch_section);
903
_tmp48_ = string_to_string (name);
904
_tmp49_ = g_strconcat ("\"", _tmp48_, "\"", NULL);
906
_tmp51_ = vala_string_literal_new (_tmp50_, NULL);
908
_tmp53_ = vala_switch_label_new ((ValaExpression*) _tmp52_, NULL);
910
vala_switch_section_add_label (switch_section, _tmp54_);
911
_vala_code_node_unref0 (_tmp54_);
912
_vala_code_node_unref0 (_tmp52_);
914
if (!sql_heavy_generator_write_properties) {
915
const gchar* _tmp55_ = NULL;
916
gchar* _tmp56_ = NULL;
918
ValaVoidType* _tmp58_ = NULL;
919
ValaVoidType* _tmp59_;
920
ValaSignal* _tmp60_ = NULL;
1298
_tmp86_ = data_type;
1299
_tmp87_ = vala_data_type_copy (_tmp86_);
1300
data_type_get = _tmp87_;
1301
_tmp88_ = data_type_get;
1302
vala_data_type_set_value_owned (_tmp88_, TRUE);
1303
_tmp89_ = source_reference;
1304
_tmp90_ = vala_switch_section_new (_tmp89_);
1305
switch_section = _tmp90_;
1307
_tmp92_ = switch_section;
1308
vala_switch_statement_add_section (_tmp91_, _tmp92_);
1309
_tmp93_ = switch_section;
1311
_tmp95_ = string_to_string (_tmp94_);
1312
_tmp96_ = g_strconcat ("\"", _tmp95_, "\"", NULL);
1314
_tmp98_ = source_reference;
1315
_tmp99_ = vala_string_literal_new (_tmp97_, _tmp98_);
1317
_tmp101_ = source_reference;
1318
_tmp102_ = vala_switch_label_new ((ValaExpression*) _tmp100_, _tmp101_);
1319
_tmp103_ = _tmp102_;
1320
vala_switch_section_add_label (_tmp93_, _tmp103_);
1321
_vala_code_node_unref0 (_tmp103_);
1322
_vala_code_node_unref0 (_tmp100_);
1324
_tmp104_ = sql_heavy_generator_write_properties;
1326
const gchar* _tmp105_;
1327
const gchar* _tmp106_ = NULL;
1328
gchar* _tmp107_ = NULL;
1330
ValaSourceReference* _tmp109_;
1331
ValaVoidType* _tmp110_;
1332
ValaVoidType* _tmp111_;
1333
ValaSourceReference* _tmp112_;
1334
ValaSignal* _tmp113_;
1335
ValaSignal* _tmp114_;
922
1336
ValaSignal* changed_signal;
923
ValaStringLiteral* _tmp62_ = NULL;
924
ValaStringLiteral* _tmp63_;
925
const gchar* _tmp64_ = NULL;
926
gchar* _tmp65_ = NULL;
928
ValaMemberAccess* _tmp67_ = NULL;
929
ValaMemberAccess* _tmp68_;
930
ValaMethodCall* _tmp69_ = NULL;
931
_tmp55_ = string_to_string (name);
932
_tmp56_ = g_strconcat (_tmp55_, "_changed", NULL);
934
_tmp58_ = vala_void_type_new (NULL);
936
_tmp60_ = vala_signal_new (_tmp57_, (ValaDataType*) _tmp59_, NULL, NULL);
938
_vala_code_node_unref0 (_tmp59_);
940
changed_signal = _tmp61_;
941
vala_symbol_set_access ((ValaSymbol*) changed_signal, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
942
vala_symbol_add_signal ((ValaSymbol*) cl, changed_signal);
943
_tmp62_ = vala_string_literal_new ("this", NULL);
945
_tmp64_ = string_to_string (name);
946
_tmp65_ = g_strconcat (_tmp64_, "_changed", NULL);
948
_tmp67_ = vala_member_access_new ((ValaExpression*) _tmp63_, _tmp66_, NULL);
950
_tmp69_ = vala_method_call_new ((ValaExpression*) _tmp68_, NULL);
1337
ValaSignal* _tmp115_;
1338
ValaClass* _tmp116_;
1339
ValaSignal* _tmp117_;
1340
ValaStringLiteral* _tmp118_;
1341
ValaStringLiteral* _tmp119_;
1342
const gchar* _tmp120_;
1343
const gchar* _tmp121_ = NULL;
1344
gchar* _tmp122_ = NULL;
1346
ValaSourceReference* _tmp124_;
1347
ValaMemberAccess* _tmp125_;
1348
ValaMemberAccess* _tmp126_;
1349
ValaSourceReference* _tmp127_;
1350
ValaMethodCall* _tmp128_;
1352
_tmp106_ = string_to_string (_tmp105_);
1353
_tmp107_ = g_strconcat (_tmp106_, "_changed", NULL);
1354
_tmp108_ = _tmp107_;
1355
_tmp109_ = source_reference;
1356
_tmp110_ = vala_void_type_new (_tmp109_);
1357
_tmp111_ = _tmp110_;
1358
_tmp112_ = source_reference;
1359
_tmp113_ = vala_signal_new (_tmp108_, (ValaDataType*) _tmp111_, _tmp112_, NULL);
1360
_tmp114_ = _tmp113_;
1361
_vala_code_node_unref0 (_tmp111_);
1362
_g_free0 (_tmp108_);
1363
changed_signal = _tmp114_;
1364
_tmp115_ = changed_signal;
1365
vala_symbol_set_access ((ValaSymbol*) _tmp115_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
1367
_tmp117_ = changed_signal;
1368
vala_symbol_add_signal ((ValaSymbol*) _tmp116_, _tmp117_);
1369
_tmp118_ = vala_string_literal_new ("this", NULL);
1370
_tmp119_ = _tmp118_;
1372
_tmp121_ = string_to_string (_tmp120_);
1373
_tmp122_ = g_strconcat (_tmp121_, "_changed", NULL);
1374
_tmp123_ = _tmp122_;
1375
_tmp124_ = source_reference;
1376
_tmp125_ = vala_member_access_new ((ValaExpression*) _tmp119_, _tmp123_, _tmp124_);
1377
_tmp126_ = _tmp125_;
1378
_tmp127_ = source_reference;
1379
_tmp128_ = vala_method_call_new ((ValaExpression*) _tmp126_, _tmp127_);
951
1380
_vala_code_node_unref0 (emit_changed_notify);
952
emit_changed_notify = _tmp69_;
953
_vala_code_node_unref0 (_tmp68_);
955
_vala_code_node_unref0 (_tmp63_);
1381
emit_changed_notify = _tmp128_;
1382
_vala_code_node_unref0 (_tmp126_);
1383
_g_free0 (_tmp123_);
1384
_vala_code_node_unref0 (_tmp119_);
957
const gchar* _tmp70_ = NULL;
958
gchar* _tmp71_ = NULL;
960
ValaMethod* _tmp73_ = NULL;
1386
const gchar* _tmp129_;
1387
const gchar* _tmp130_ = NULL;
1388
gchar* _tmp131_ = NULL;
1390
ValaDataType* _tmp133_;
1391
ValaSourceReference* _tmp134_;
1392
ValaMethod* _tmp135_;
1393
ValaMethod* _tmp136_;
962
1394
ValaMethod* get_method;
963
ValaDataType* _tmp75_ = NULL;
964
ValaDataType* _tmp76_;
965
ValaBlock* _tmp77_ = NULL;
967
ValaStringLiteral* _tmp78_ = NULL;
968
ValaStringLiteral* _tmp79_;
969
gchar* _tmp80_ = NULL;
971
const gchar* _tmp82_ = NULL;
972
gchar* _tmp83_ = NULL;
974
ValaMemberAccess* _tmp85_ = NULL;
975
ValaMemberAccess* _tmp86_;
976
ValaMethodCall* _tmp87_ = NULL;
977
ValaMethodCall* _tmp88_;
978
ValaMethodCall* call;
979
gchar* _tmp89_ = NULL;
982
const gchar* _tmp92_ = NULL;
983
gchar* _tmp93_ = NULL;
985
ValaStringLiteral* _tmp95_ = NULL;
986
ValaStringLiteral* _tmp96_;
987
ValaReturnStatement* _tmp97_ = NULL;
988
ValaReturnStatement* _tmp98_;
989
_tmp70_ = string_to_string (name);
990
_tmp71_ = g_strconcat ("get_", _tmp70_, NULL);
992
_tmp73_ = vala_method_new (_tmp72_, data_type_get, NULL, NULL);
995
get_method = _tmp74_;
996
vala_symbol_add_method ((ValaSymbol*) cl, get_method);
997
vala_symbol_set_access ((ValaSymbol*) get_method, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
998
_tmp75_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1000
vala_code_node_add_error_type ((ValaCodeNode*) get_method, _tmp76_);
1001
_vala_code_node_unref0 (_tmp76_);
1002
_tmp77_ = vala_block_new (NULL);
1004
_tmp78_ = vala_string_literal_new ("this", NULL);
1006
_tmp80_ = vala_code_node_to_string ((ValaCodeNode*) data_type_get);
1008
_tmp82_ = string_to_string (_tmp81_);
1009
_tmp83_ = g_strconcat ("get_", _tmp82_, NULL);
1011
_tmp85_ = vala_member_access_new ((ValaExpression*) _tmp79_, _tmp84_, NULL);
1013
_tmp87_ = vala_method_call_new ((ValaExpression*) _tmp86_, NULL);
1015
_vala_code_node_unref0 (_tmp86_);
1018
_vala_code_node_unref0 (_tmp79_);
1020
_tmp89_ = sql_heavy_table_field_name (table, field, &_inner_error_);
1022
if (_inner_error_ != NULL) {
1023
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1024
g_propagate_error (error, _inner_error_);
1025
_vala_code_node_unref0 (call);
1026
_vala_code_node_unref0 (block);
1027
_vala_code_node_unref0 (get_method);
1028
_vala_code_node_unref0 (changed_signal);
1029
_vala_code_node_unref0 (emit_changed_notify);
1030
_vala_code_node_unref0 (switch_section);
1031
_vala_code_node_unref0 (data_type_get);
1032
_vala_code_node_unref0 (data_type);
1035
_g_free0 (db_symbol);
1036
_g_object_unref0 (db);
1039
_vala_code_node_unref0 (call);
1040
_vala_code_node_unref0 (block);
1041
_vala_code_node_unref0 (get_method);
1042
_vala_code_node_unref0 (changed_signal);
1043
_vala_code_node_unref0 (emit_changed_notify);
1044
_vala_code_node_unref0 (switch_section);
1045
_vala_code_node_unref0 (data_type_get);
1046
_vala_code_node_unref0 (data_type);
1049
_g_free0 (db_symbol);
1050
_g_object_unref0 (db);
1051
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1052
g_clear_error (&_inner_error_);
1057
_tmp92_ = string_to_string (_tmp91_);
1058
_tmp93_ = g_strconcat ("\"", _tmp92_, "\"", NULL);
1060
_tmp95_ = vala_string_literal_new (_tmp94_, NULL);
1062
vala_method_call_add_argument (call, (ValaExpression*) _tmp96_);
1063
_vala_code_node_unref0 (_tmp96_);
1066
_tmp97_ = vala_return_statement_new ((ValaExpression*) call, NULL);
1068
vala_block_add_statement (block, (ValaStatement*) _tmp98_);
1069
_vala_code_node_unref0 (_tmp98_);
1070
vala_subroutine_set_body ((ValaSubroutine*) get_method, block);
1071
_vala_code_node_unref0 (call);
1072
_vala_code_node_unref0 (block);
1073
_vala_code_node_unref0 (get_method);
1076
const gchar* _tmp99_ = NULL;
1077
gchar* _tmp100_ = NULL;
1079
ValaVoidType* _tmp102_ = NULL;
1080
ValaVoidType* _tmp103_;
1081
ValaMethod* _tmp104_ = NULL;
1082
ValaMethod* _tmp105_;
1083
ValaMethod* set_method;
1084
ValaParameter* _tmp106_ = NULL;
1085
ValaParameter* _tmp107_;
1086
ValaDataType* _tmp108_ = NULL;
1087
ValaDataType* _tmp109_;
1088
ValaBlock* _tmp110_ = NULL;
1090
ValaStringLiteral* _tmp111_ = NULL;
1091
ValaStringLiteral* _tmp112_;
1092
gchar* _tmp113_ = NULL;
1094
const gchar* _tmp115_ = NULL;
1095
gchar* _tmp116_ = NULL;
1097
ValaMemberAccess* _tmp118_ = NULL;
1098
ValaMemberAccess* _tmp119_;
1099
ValaMethodCall* _tmp120_ = NULL;
1100
ValaMethodCall* _tmp121_;
1101
ValaMethodCall* call;
1102
gchar* _tmp122_ = NULL;
1105
const gchar* _tmp125_ = NULL;
1106
gchar* _tmp126_ = NULL;
1108
ValaStringLiteral* _tmp128_ = NULL;
1109
ValaStringLiteral* _tmp129_;
1110
ValaExpressionStatement* _tmp130_ = NULL;
1111
ValaExpressionStatement* _tmp131_;
1112
_tmp99_ = string_to_string (name);
1113
_tmp100_ = g_strconcat ("set_", _tmp99_, NULL);
1114
_tmp101_ = _tmp100_;
1115
_tmp102_ = vala_void_type_new (NULL);
1116
_tmp103_ = _tmp102_;
1117
_tmp104_ = vala_method_new (_tmp101_, (ValaDataType*) _tmp103_, NULL, NULL);
1118
_tmp105_ = _tmp104_;
1119
_vala_code_node_unref0 (_tmp103_);
1120
_g_free0 (_tmp101_);
1121
set_method = _tmp105_;
1122
_tmp106_ = vala_parameter_new ("value", data_type, NULL);
1123
_tmp107_ = _tmp106_;
1124
vala_method_add_parameter (set_method, _tmp107_);
1125
_vala_code_node_unref0 (_tmp107_);
1126
vala_symbol_add_method ((ValaSymbol*) cl, set_method);
1127
vala_symbol_set_access ((ValaSymbol*) set_method, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
1128
_tmp108_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1129
_tmp109_ = _tmp108_;
1130
vala_code_node_add_error_type ((ValaCodeNode*) set_method, _tmp109_);
1131
_vala_code_node_unref0 (_tmp109_);
1132
_tmp110_ = vala_block_new (NULL);
1134
_tmp111_ = vala_string_literal_new ("this", NULL);
1135
_tmp112_ = _tmp111_;
1136
_tmp113_ = vala_code_node_to_string ((ValaCodeNode*) data_type);
1137
_tmp114_ = _tmp113_;
1138
_tmp115_ = string_to_string (_tmp114_);
1139
_tmp116_ = g_strconcat ("set_", _tmp115_, NULL);
1140
_tmp117_ = _tmp116_;
1141
_tmp118_ = vala_member_access_new ((ValaExpression*) _tmp112_, _tmp117_, NULL);
1142
_tmp119_ = _tmp118_;
1143
_tmp120_ = vala_method_call_new ((ValaExpression*) _tmp119_, NULL);
1144
_tmp121_ = _tmp120_;
1145
_vala_code_node_unref0 (_tmp119_);
1146
_g_free0 (_tmp117_);
1147
_g_free0 (_tmp114_);
1148
_vala_code_node_unref0 (_tmp112_);
1150
_tmp122_ = sql_heavy_table_field_name (table, field, &_inner_error_);
1151
_tmp123_ = _tmp122_;
1152
if (_inner_error_ != NULL) {
1153
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1154
g_propagate_error (error, _inner_error_);
1155
_vala_code_node_unref0 (call);
1156
_vala_code_node_unref0 (block);
1157
_vala_code_node_unref0 (set_method);
1158
_vala_code_node_unref0 (changed_signal);
1159
_vala_code_node_unref0 (emit_changed_notify);
1160
_vala_code_node_unref0 (switch_section);
1161
_vala_code_node_unref0 (data_type_get);
1162
_vala_code_node_unref0 (data_type);
1165
_g_free0 (db_symbol);
1166
_g_object_unref0 (db);
1169
_vala_code_node_unref0 (call);
1170
_vala_code_node_unref0 (block);
1171
_vala_code_node_unref0 (set_method);
1172
_vala_code_node_unref0 (changed_signal);
1173
_vala_code_node_unref0 (emit_changed_notify);
1174
_vala_code_node_unref0 (switch_section);
1175
_vala_code_node_unref0 (data_type_get);
1176
_vala_code_node_unref0 (data_type);
1179
_g_free0 (db_symbol);
1180
_g_object_unref0 (db);
1181
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1182
g_clear_error (&_inner_error_);
1186
_tmp124_ = _tmp123_;
1187
_tmp125_ = string_to_string (_tmp124_);
1188
_tmp126_ = g_strconcat ("\"", _tmp125_, "\"", NULL);
1189
_tmp127_ = _tmp126_;
1190
_tmp128_ = vala_string_literal_new (_tmp127_, NULL);
1191
_tmp129_ = _tmp128_;
1192
vala_method_call_add_argument (call, (ValaExpression*) _tmp129_);
1193
_vala_code_node_unref0 (_tmp129_);
1194
_g_free0 (_tmp127_);
1195
_g_free0 (_tmp124_);
1196
_tmp130_ = vala_expression_statement_new ((ValaExpression*) call, NULL);
1197
_tmp131_ = _tmp130_;
1198
vala_block_add_statement (block, (ValaStatement*) _tmp131_);
1199
_vala_code_node_unref0 (_tmp131_);
1200
vala_subroutine_set_body ((ValaSubroutine*) set_method, block);
1201
_vala_code_node_unref0 (call);
1202
_vala_code_node_unref0 (block);
1203
_vala_code_node_unref0 (set_method);
1205
_vala_code_node_unref0 (changed_signal);
1207
ValaPropertyAccessor* get_accessor = NULL;
1208
ValaPropertyAccessor* set_accessor = NULL;
1209
ValaStringLiteral* _tmp132_ = NULL;
1210
ValaStringLiteral* _tmp133_;
1211
ValaMemberAccess* _tmp134_ = NULL;
1212
ValaMemberAccess* _tmp135_;
1213
ValaMethodCall* _tmp136_ = NULL;
1214
gchar* _tmp137_ = NULL;
1220
ValaStringLiteral* _tmp143_ = NULL;
1221
ValaStringLiteral* _tmp144_;
1222
ValaProperty* _tmp249_ = NULL;
1224
_tmp132_ = vala_string_literal_new ("this", NULL);
1225
_tmp133_ = _tmp132_;
1226
_tmp134_ = vala_member_access_new ((ValaExpression*) _tmp133_, "notify_property", NULL);
1227
_tmp135_ = _tmp134_;
1228
_tmp136_ = vala_method_call_new ((ValaExpression*) _tmp135_, NULL);
1229
_vala_code_node_unref0 (emit_changed_notify);
1230
emit_changed_notify = _tmp136_;
1231
_vala_code_node_unref0 (_tmp135_);
1232
_vala_code_node_unref0 (_tmp133_);
1233
_tmp137_ = string_replace (name, "_", "-");
1234
_tmp138_ = _tmp137_;
1235
_tmp139_ = g_strconcat ("\"", _tmp138_, NULL);
1236
_tmp140_ = _tmp139_;
1237
_tmp141_ = g_strconcat (_tmp140_, "\"", NULL);
1238
_tmp142_ = _tmp141_;
1239
_tmp143_ = vala_string_literal_new (_tmp142_, NULL);
1240
_tmp144_ = _tmp143_;
1241
vala_method_call_add_argument (emit_changed_notify, (ValaExpression*) _tmp144_);
1242
_vala_code_node_unref0 (_tmp144_);
1243
_g_free0 (_tmp142_);
1244
_g_free0 (_tmp140_);
1245
_g_free0 (_tmp138_);
1247
ValaBlock* _tmp145_ = NULL;
1249
ValaBlock* _tmp146_ = NULL;
1250
ValaBlock* try_block;
1251
ValaBlock* _tmp147_ = NULL;
1252
ValaBlock* catch_block;
1253
ValaTryStatement* _tmp148_ = NULL;
1254
ValaTryStatement* try_stmt;
1255
ValaStringLiteral* _tmp149_ = NULL;
1256
ValaStringLiteral* _tmp150_;
1395
ValaClass* _tmp137_;
1396
ValaMethod* _tmp138_;
1397
ValaMethod* _tmp139_;
1398
ValaMethod* _tmp140_;
1399
ValaDataType* _tmp141_ = NULL;
1400
ValaDataType* _tmp142_;
1401
ValaSourceReference* _tmp143_;
1402
ValaBlock* _tmp144_;
1404
ValaStringLiteral* _tmp145_;
1405
ValaStringLiteral* _tmp146_;
1406
ValaDataType* _tmp147_;
1407
gchar* _tmp148_ = NULL;
1409
const gchar* _tmp150_ = NULL;
1257
1410
gchar* _tmp151_ = NULL;
1258
1411
gchar* _tmp152_;
1259
const gchar* _tmp153_ = NULL;
1260
gchar* _tmp154_ = NULL;
1262
ValaMemberAccess* _tmp156_ = NULL;
1263
ValaMemberAccess* _tmp157_;
1264
ValaMethodCall* _tmp158_ = NULL;
1265
ValaMethodCall* _tmp159_;
1412
ValaSourceReference* _tmp153_;
1413
ValaMemberAccess* _tmp154_;
1414
ValaMemberAccess* _tmp155_;
1415
ValaSourceReference* _tmp156_;
1416
ValaMethodCall* _tmp157_;
1417
ValaMethodCall* _tmp158_;
1266
1418
ValaMethodCall* call;
1267
gchar* _tmp160_ = NULL;
1419
SQLHeavyTable* _tmp159_;
1421
gchar* _tmp161_ = NULL;
1269
1422
gchar* _tmp162_;
1270
const gchar* _tmp163_ = NULL;
1271
gchar* _tmp164_ = NULL;
1273
ValaStringLiteral* _tmp166_ = NULL;
1274
ValaStringLiteral* _tmp167_;
1275
ValaReturnStatement* _tmp168_ = NULL;
1276
ValaReturnStatement* _tmp169_;
1277
ValaStringLiteral* _tmp170_ = NULL;
1278
ValaStringLiteral* _tmp171_;
1279
ValaMemberAccess* _tmp172_ = NULL;
1280
ValaMemberAccess* _tmp173_;
1281
ValaMethodCall* _tmp174_ = NULL;
1282
ValaMethodCall* _tmp175_;
1283
ValaMethodCall* error_call;
1284
const gchar* _tmp176_ = NULL;
1285
gchar* _tmp177_ = NULL;
1287
ValaStringLiteral* _tmp179_ = NULL;
1288
ValaStringLiteral* _tmp180_;
1289
ValaMemberAccess* _tmp181_ = NULL;
1290
ValaMemberAccess* _tmp182_;
1291
ValaMemberAccess* _tmp183_ = NULL;
1292
ValaMemberAccess* _tmp184_;
1293
ValaExpressionStatement* _tmp185_ = NULL;
1294
ValaExpressionStatement* _tmp186_;
1295
ValaStringLiteral* _tmp187_ = NULL;
1296
ValaStringLiteral* _tmp188_;
1297
ValaMemberAccess* _tmp189_ = NULL;
1298
ValaMemberAccess* _tmp190_;
1299
ValaMethodCall* _tmp191_ = NULL;
1300
ValaMethodCall* _tmp192_;
1301
ValaMethodCall* anr;
1302
ValaExpressionStatement* _tmp193_ = NULL;
1303
ValaExpressionStatement* _tmp194_;
1304
ValaDataType* _tmp195_ = NULL;
1305
ValaDataType* _tmp196_;
1306
ValaCatchClause* _tmp197_ = NULL;
1307
ValaCatchClause* _tmp198_;
1308
ValaPropertyAccessor* _tmp199_ = NULL;
1309
_tmp145_ = vala_block_new (NULL);
1311
_tmp146_ = vala_block_new (NULL);
1312
try_block = _tmp146_;
1313
_tmp147_ = vala_block_new (NULL);
1314
catch_block = _tmp147_;
1315
_tmp148_ = vala_try_statement_new (try_block, NULL, NULL);
1316
try_stmt = _tmp148_;
1317
_tmp149_ = vala_string_literal_new ("this", NULL);
1318
_tmp150_ = _tmp149_;
1319
_tmp151_ = vala_code_node_to_string ((ValaCodeNode*) data_type_get);
1423
ValaMethodCall* _tmp163_;
1425
const gchar* _tmp165_ = NULL;
1426
gchar* _tmp166_ = NULL;
1428
ValaSourceReference* _tmp168_;
1429
ValaStringLiteral* _tmp169_;
1430
ValaStringLiteral* _tmp170_;
1431
ValaBlock* _tmp171_;
1432
ValaMethodCall* _tmp172_;
1433
ValaSourceReference* _tmp173_;
1434
ValaReturnStatement* _tmp174_;
1435
ValaReturnStatement* _tmp175_;
1436
ValaMethod* _tmp176_;
1437
ValaBlock* _tmp177_;
1439
_tmp130_ = string_to_string (_tmp129_);
1440
_tmp131_ = g_strconcat ("get_", _tmp130_, NULL);
1441
_tmp132_ = _tmp131_;
1442
_tmp133_ = data_type_get;
1443
_tmp134_ = source_reference;
1444
_tmp135_ = vala_method_new (_tmp132_, _tmp133_, _tmp134_, NULL);
1445
_tmp136_ = _tmp135_;
1446
_g_free0 (_tmp132_);
1447
get_method = _tmp136_;
1449
_tmp138_ = get_method;
1450
vala_symbol_add_method ((ValaSymbol*) _tmp137_, _tmp138_);
1451
_tmp139_ = get_method;
1452
vala_symbol_set_access ((ValaSymbol*) _tmp139_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
1453
_tmp140_ = get_method;
1454
_tmp141_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1455
_tmp142_ = _tmp141_;
1456
vala_code_node_add_error_type ((ValaCodeNode*) _tmp140_, _tmp142_);
1457
_vala_code_node_unref0 (_tmp142_);
1458
_tmp143_ = source_reference;
1459
_tmp144_ = vala_block_new (_tmp143_);
1461
_tmp145_ = vala_string_literal_new ("this", NULL);
1462
_tmp146_ = _tmp145_;
1463
_tmp147_ = data_type_get;
1464
_tmp148_ = vala_code_node_to_string ((ValaCodeNode*) _tmp147_);
1465
_tmp149_ = _tmp148_;
1466
_tmp150_ = string_to_string (_tmp149_);
1467
_tmp151_ = g_strconcat ("get_", _tmp150_, NULL);
1320
1468
_tmp152_ = _tmp151_;
1321
_tmp153_ = string_to_string (_tmp152_);
1322
_tmp154_ = g_strconcat ("get_", _tmp153_, NULL);
1469
_tmp153_ = source_reference;
1470
_tmp154_ = vala_member_access_new ((ValaExpression*) _tmp146_, _tmp152_, _tmp153_);
1323
1471
_tmp155_ = _tmp154_;
1324
_tmp156_ = vala_member_access_new ((ValaExpression*) _tmp150_, _tmp155_, NULL);
1325
_tmp157_ = _tmp156_;
1326
_tmp158_ = vala_method_call_new ((ValaExpression*) _tmp157_, NULL);
1327
_tmp159_ = _tmp158_;
1328
_vala_code_node_unref0 (_tmp157_);
1329
_g_free0 (_tmp155_);
1472
_tmp156_ = source_reference;
1473
_tmp157_ = vala_method_call_new ((ValaExpression*) _tmp155_, _tmp156_);
1474
_tmp158_ = _tmp157_;
1475
_vala_code_node_unref0 (_tmp155_);
1330
1476
_g_free0 (_tmp152_);
1331
_vala_code_node_unref0 (_tmp150_);
1333
_tmp160_ = sql_heavy_table_field_name (table, field, &_inner_error_);
1334
_tmp161_ = _tmp160_;
1335
if (_inner_error_ != NULL) {
1336
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1337
g_propagate_error (error, _inner_error_);
1338
_vala_code_node_unref0 (call);
1339
_vala_code_node_unref0 (try_stmt);
1340
_vala_code_node_unref0 (catch_block);
1341
_vala_code_node_unref0 (try_block);
1342
_vala_code_node_unref0 (block);
1343
_vala_code_node_unref0 (set_accessor);
1344
_vala_code_node_unref0 (get_accessor);
1345
_vala_code_node_unref0 (emit_changed_notify);
1346
_vala_code_node_unref0 (switch_section);
1347
_vala_code_node_unref0 (data_type_get);
1348
_vala_code_node_unref0 (data_type);
1351
_g_free0 (db_symbol);
1352
_g_object_unref0 (db);
1355
_vala_code_node_unref0 (call);
1356
_vala_code_node_unref0 (try_stmt);
1357
_vala_code_node_unref0 (catch_block);
1358
_vala_code_node_unref0 (try_block);
1359
_vala_code_node_unref0 (block);
1360
_vala_code_node_unref0 (set_accessor);
1361
_vala_code_node_unref0 (get_accessor);
1362
_vala_code_node_unref0 (emit_changed_notify);
1363
_vala_code_node_unref0 (switch_section);
1364
_vala_code_node_unref0 (data_type_get);
1365
_vala_code_node_unref0 (data_type);
1368
_g_free0 (db_symbol);
1369
_g_object_unref0 (db);
1370
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1371
g_clear_error (&_inner_error_);
1477
_g_free0 (_tmp149_);
1478
_vala_code_node_unref0 (_tmp146_);
1482
_tmp161_ = sql_heavy_table_field_name (_tmp159_, _tmp160_, &_inner_error_);
1375
1483
_tmp162_ = _tmp161_;
1376
_tmp163_ = string_to_string (_tmp162_);
1377
_tmp164_ = g_strconcat ("\"", _tmp163_, "\"", NULL);
1378
_tmp165_ = _tmp164_;
1379
_tmp166_ = vala_string_literal_new (_tmp165_, NULL);
1484
if (_inner_error_ != NULL) {
1485
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1486
g_propagate_error (error, _inner_error_);
1487
_vala_code_node_unref0 (call);
1488
_vala_code_node_unref0 (block);
1489
_vala_code_node_unref0 (get_method);
1490
_vala_code_node_unref0 (changed_signal);
1491
_vala_code_node_unref0 (emit_changed_notify);
1492
_vala_code_node_unref0 (switch_section);
1493
_vala_code_node_unref0 (data_type_get);
1494
_vala_code_node_unref0 (data_type);
1497
_g_free0 (db_symbol);
1498
_g_object_unref0 (db);
1501
_vala_code_node_unref0 (call);
1502
_vala_code_node_unref0 (block);
1503
_vala_code_node_unref0 (get_method);
1504
_vala_code_node_unref0 (changed_signal);
1505
_vala_code_node_unref0 (emit_changed_notify);
1506
_vala_code_node_unref0 (switch_section);
1507
_vala_code_node_unref0 (data_type_get);
1508
_vala_code_node_unref0 (data_type);
1511
_g_free0 (db_symbol);
1512
_g_object_unref0 (db);
1513
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1514
g_clear_error (&_inner_error_);
1519
_tmp164_ = _tmp162_;
1520
_tmp165_ = string_to_string (_tmp164_);
1521
_tmp166_ = g_strconcat ("\"", _tmp165_, "\"", NULL);
1380
1522
_tmp167_ = _tmp166_;
1381
vala_method_call_add_argument (call, (ValaExpression*) _tmp167_);
1382
_vala_code_node_unref0 (_tmp167_);
1383
_g_free0 (_tmp165_);
1384
_g_free0 (_tmp162_);
1385
_tmp168_ = vala_return_statement_new ((ValaExpression*) call, NULL);
1386
_tmp169_ = _tmp168_;
1387
vala_block_add_statement (try_block, (ValaStatement*) _tmp169_);
1388
_vala_code_node_unref0 (_tmp169_);
1389
_tmp170_ = vala_string_literal_new ("GLib", NULL);
1390
_tmp171_ = _tmp170_;
1391
_tmp172_ = vala_member_access_new ((ValaExpression*) _tmp171_, "error", NULL);
1392
_tmp173_ = _tmp172_;
1393
_tmp174_ = vala_method_call_new ((ValaExpression*) _tmp173_, NULL);
1523
_tmp168_ = source_reference;
1524
_tmp169_ = vala_string_literal_new (_tmp167_, _tmp168_);
1525
_tmp170_ = _tmp169_;
1526
vala_method_call_add_argument (_tmp163_, (ValaExpression*) _tmp170_);
1527
_vala_code_node_unref0 (_tmp170_);
1528
_g_free0 (_tmp167_);
1529
_g_free0 (_tmp164_);
1532
_tmp173_ = source_reference;
1533
_tmp174_ = vala_return_statement_new ((ValaExpression*) _tmp172_, _tmp173_);
1394
1534
_tmp175_ = _tmp174_;
1395
_vala_code_node_unref0 (_tmp173_);
1396
_vala_code_node_unref0 (_tmp171_);
1397
error_call = _tmp175_;
1398
_tmp176_ = string_to_string (name);
1399
_tmp177_ = g_strconcat ("\"Unable to retrieve `", _tmp176_, "': %s\"", NULL);
1400
_tmp178_ = _tmp177_;
1401
_tmp179_ = vala_string_literal_new (_tmp178_, NULL);
1402
_tmp180_ = _tmp179_;
1403
vala_method_call_add_argument (error_call, (ValaExpression*) _tmp180_);
1404
_vala_code_node_unref0 (_tmp180_);
1405
_g_free0 (_tmp178_);
1406
_tmp181_ = vala_member_access_new (NULL, "e", NULL);
1407
_tmp182_ = _tmp181_;
1408
_tmp183_ = vala_member_access_new ((ValaExpression*) _tmp182_, "message", NULL);
1535
vala_block_add_statement (_tmp171_, (ValaStatement*) _tmp175_);
1536
_vala_code_node_unref0 (_tmp175_);
1537
_tmp176_ = get_method;
1539
vala_subroutine_set_body ((ValaSubroutine*) _tmp176_, _tmp177_);
1540
_vala_code_node_unref0 (call);
1541
_vala_code_node_unref0 (block);
1542
_vala_code_node_unref0 (get_method);
1545
const gchar* _tmp178_;
1546
const gchar* _tmp179_ = NULL;
1547
gchar* _tmp180_ = NULL;
1549
ValaSourceReference* _tmp182_;
1550
ValaVoidType* _tmp183_;
1551
ValaVoidType* _tmp184_;
1552
ValaSourceReference* _tmp185_;
1553
ValaMethod* _tmp186_;
1554
ValaMethod* _tmp187_;
1555
ValaMethod* set_method;
1556
ValaMethod* _tmp188_;
1557
ValaDataType* _tmp189_;
1558
ValaSourceReference* _tmp190_;
1559
ValaParameter* _tmp191_;
1560
ValaParameter* _tmp192_;
1561
ValaClass* _tmp193_;
1562
ValaMethod* _tmp194_;
1563
ValaMethod* _tmp195_;
1564
ValaMethod* _tmp196_;
1565
ValaDataType* _tmp197_ = NULL;
1566
ValaDataType* _tmp198_;
1567
ValaSourceReference* _tmp199_;
1568
ValaBlock* _tmp200_;
1570
ValaStringLiteral* _tmp201_;
1571
ValaStringLiteral* _tmp202_;
1572
ValaDataType* _tmp203_;
1573
gchar* _tmp204_ = NULL;
1575
const gchar* _tmp206_ = NULL;
1576
gchar* _tmp207_ = NULL;
1578
ValaSourceReference* _tmp209_;
1579
ValaMemberAccess* _tmp210_;
1580
ValaMemberAccess* _tmp211_;
1581
ValaSourceReference* _tmp212_;
1582
ValaMethodCall* _tmp213_;
1583
ValaMethodCall* _tmp214_;
1584
ValaMethodCall* call;
1585
SQLHeavyTable* _tmp215_;
1587
gchar* _tmp217_ = NULL;
1589
ValaMethodCall* _tmp219_;
1591
const gchar* _tmp221_ = NULL;
1592
gchar* _tmp222_ = NULL;
1594
ValaSourceReference* _tmp224_;
1595
ValaStringLiteral* _tmp225_;
1596
ValaStringLiteral* _tmp226_;
1597
ValaBlock* _tmp227_;
1598
ValaMethodCall* _tmp228_;
1599
ValaSourceReference* _tmp229_;
1600
ValaExpressionStatement* _tmp230_;
1601
ValaExpressionStatement* _tmp231_;
1602
ValaMethod* _tmp232_;
1603
ValaBlock* _tmp233_;
1605
_tmp179_ = string_to_string (_tmp178_);
1606
_tmp180_ = g_strconcat ("set_", _tmp179_, NULL);
1607
_tmp181_ = _tmp180_;
1608
_tmp182_ = source_reference;
1609
_tmp183_ = vala_void_type_new (_tmp182_);
1409
1610
_tmp184_ = _tmp183_;
1410
vala_method_call_add_argument (error_call, (ValaExpression*) _tmp184_);
1611
_tmp185_ = source_reference;
1612
_tmp186_ = vala_method_new (_tmp181_, (ValaDataType*) _tmp184_, _tmp185_, NULL);
1613
_tmp187_ = _tmp186_;
1411
1614
_vala_code_node_unref0 (_tmp184_);
1412
_vala_code_node_unref0 (_tmp182_);
1413
_tmp185_ = vala_expression_statement_new ((ValaExpression*) error_call, NULL);
1414
_tmp186_ = _tmp185_;
1415
vala_block_add_statement (catch_block, (ValaStatement*) _tmp186_);
1416
_vala_code_node_unref0 (_tmp186_);
1417
_tmp187_ = vala_string_literal_new ("GLib", NULL);
1418
_tmp188_ = _tmp187_;
1419
_tmp189_ = vala_member_access_new ((ValaExpression*) _tmp188_, "assert_not_reached", NULL);
1420
_tmp190_ = _tmp189_;
1421
_tmp191_ = vala_method_call_new ((ValaExpression*) _tmp190_, NULL);
1615
_g_free0 (_tmp181_);
1616
set_method = _tmp187_;
1617
_tmp188_ = set_method;
1618
_tmp189_ = data_type;
1619
_tmp190_ = source_reference;
1620
_tmp191_ = vala_parameter_new ("value", _tmp189_, _tmp190_);
1422
1621
_tmp192_ = _tmp191_;
1423
_vala_code_node_unref0 (_tmp190_);
1424
_vala_code_node_unref0 (_tmp188_);
1426
_tmp193_ = vala_expression_statement_new ((ValaExpression*) anr, NULL);
1427
_tmp194_ = _tmp193_;
1428
vala_block_add_statement (catch_block, (ValaStatement*) _tmp194_);
1429
_vala_code_node_unref0 (_tmp194_);
1430
_tmp195_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1431
_tmp196_ = _tmp195_;
1432
_tmp197_ = vala_catch_clause_new (_tmp196_, "e", catch_block, NULL);
1622
vala_method_add_parameter (_tmp188_, _tmp192_);
1623
_vala_code_node_unref0 (_tmp192_);
1625
_tmp194_ = set_method;
1626
vala_symbol_add_method ((ValaSymbol*) _tmp193_, _tmp194_);
1627
_tmp195_ = set_method;
1628
vala_symbol_set_access ((ValaSymbol*) _tmp195_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
1629
_tmp196_ = set_method;
1630
_tmp197_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1433
1631
_tmp198_ = _tmp197_;
1434
vala_try_statement_add_catch_clause (try_stmt, _tmp198_);
1632
vala_code_node_add_error_type ((ValaCodeNode*) _tmp196_, _tmp198_);
1435
1633
_vala_code_node_unref0 (_tmp198_);
1436
_vala_code_node_unref0 (_tmp196_);
1437
vala_block_add_statement (block, (ValaStatement*) try_stmt);
1438
_tmp199_ = vala_property_accessor_new (TRUE, FALSE, FALSE, data_type_get, block, NULL, NULL);
1439
_vala_code_node_unref0 (get_accessor);
1440
get_accessor = _tmp199_;
1441
_vala_code_node_unref0 (anr);
1442
_vala_code_node_unref0 (error_call);
1443
_vala_code_node_unref0 (call);
1444
_vala_code_node_unref0 (try_stmt);
1445
_vala_code_node_unref0 (catch_block);
1446
_vala_code_node_unref0 (try_block);
1447
_vala_code_node_unref0 (block);
1450
ValaBlock* _tmp200_ = NULL;
1452
ValaBlock* _tmp201_ = NULL;
1453
ValaBlock* try_block;
1454
ValaBlock* _tmp202_ = NULL;
1455
ValaBlock* catch_block;
1456
ValaTryStatement* _tmp203_ = NULL;
1457
ValaTryStatement* try_stmt;
1458
ValaStringLiteral* _tmp204_ = NULL;
1459
ValaStringLiteral* _tmp205_;
1460
gchar* _tmp206_ = NULL;
1462
const gchar* _tmp208_ = NULL;
1463
gchar* _tmp209_ = NULL;
1465
ValaMemberAccess* _tmp211_ = NULL;
1466
ValaMemberAccess* _tmp212_;
1467
ValaMethodCall* _tmp213_ = NULL;
1468
ValaMethodCall* _tmp214_;
1469
ValaMethodCall* call;
1470
gchar* _tmp215_ = NULL;
1473
const gchar* _tmp218_ = NULL;
1474
gchar* _tmp219_ = NULL;
1476
ValaStringLiteral* _tmp221_ = NULL;
1477
ValaStringLiteral* _tmp222_;
1478
ValaMemberAccess* _tmp223_ = NULL;
1479
ValaMemberAccess* _tmp224_;
1480
ValaExpressionStatement* _tmp225_ = NULL;
1481
ValaExpressionStatement* _tmp226_;
1482
ValaStringLiteral* _tmp227_ = NULL;
1483
ValaStringLiteral* _tmp228_;
1484
ValaMemberAccess* _tmp229_ = NULL;
1485
ValaMemberAccess* _tmp230_;
1486
ValaMethodCall* _tmp231_ = NULL;
1487
ValaMethodCall* _tmp232_;
1488
ValaMethodCall* error_call;
1489
const gchar* _tmp233_ = NULL;
1490
gchar* _tmp234_ = NULL;
1492
ValaStringLiteral* _tmp236_ = NULL;
1493
ValaStringLiteral* _tmp237_;
1494
ValaMemberAccess* _tmp238_ = NULL;
1495
ValaMemberAccess* _tmp239_;
1496
ValaMemberAccess* _tmp240_ = NULL;
1497
ValaMemberAccess* _tmp241_;
1498
ValaExpressionStatement* _tmp242_ = NULL;
1499
ValaExpressionStatement* _tmp243_;
1500
ValaDataType* _tmp244_ = NULL;
1501
ValaDataType* _tmp245_;
1502
ValaCatchClause* _tmp246_ = NULL;
1503
ValaCatchClause* _tmp247_;
1504
ValaPropertyAccessor* _tmp248_ = NULL;
1505
_tmp200_ = vala_block_new (NULL);
1634
_tmp199_ = source_reference;
1635
_tmp200_ = vala_block_new (_tmp199_);
1506
1636
block = _tmp200_;
1507
_tmp201_ = vala_block_new (NULL);
1508
try_block = _tmp201_;
1509
_tmp202_ = vala_block_new (NULL);
1510
catch_block = _tmp202_;
1511
_tmp203_ = vala_try_statement_new (try_block, NULL, NULL);
1512
try_stmt = _tmp203_;
1513
_tmp204_ = vala_string_literal_new ("this", NULL);
1637
_tmp201_ = vala_string_literal_new ("this", NULL);
1638
_tmp202_ = _tmp201_;
1639
_tmp203_ = data_type;
1640
_tmp204_ = vala_code_node_to_string ((ValaCodeNode*) _tmp203_);
1514
1641
_tmp205_ = _tmp204_;
1515
_tmp206_ = vala_code_node_to_string ((ValaCodeNode*) data_type_get);
1516
_tmp207_ = _tmp206_;
1517
_tmp208_ = string_to_string (_tmp207_);
1518
_tmp209_ = g_strconcat ("set_", _tmp208_, NULL);
1519
_tmp210_ = _tmp209_;
1520
_tmp211_ = vala_member_access_new ((ValaExpression*) _tmp205_, _tmp210_, NULL);
1521
_tmp212_ = _tmp211_;
1522
_tmp213_ = vala_method_call_new ((ValaExpression*) _tmp212_, NULL);
1642
_tmp206_ = string_to_string (_tmp205_);
1643
_tmp207_ = g_strconcat ("set_", _tmp206_, NULL);
1644
_tmp208_ = _tmp207_;
1645
_tmp209_ = source_reference;
1646
_tmp210_ = vala_member_access_new ((ValaExpression*) _tmp202_, _tmp208_, _tmp209_);
1647
_tmp211_ = _tmp210_;
1648
_tmp212_ = source_reference;
1649
_tmp213_ = vala_method_call_new ((ValaExpression*) _tmp211_, _tmp212_);
1523
1650
_tmp214_ = _tmp213_;
1524
_vala_code_node_unref0 (_tmp212_);
1525
_g_free0 (_tmp210_);
1526
_g_free0 (_tmp207_);
1527
_vala_code_node_unref0 (_tmp205_);
1651
_vala_code_node_unref0 (_tmp211_);
1652
_g_free0 (_tmp208_);
1653
_g_free0 (_tmp205_);
1654
_vala_code_node_unref0 (_tmp202_);
1528
1655
call = _tmp214_;
1529
_tmp215_ = sql_heavy_table_field_name (table, field, &_inner_error_);
1530
_tmp216_ = _tmp215_;
1658
_tmp217_ = sql_heavy_table_field_name (_tmp215_, _tmp216_, &_inner_error_);
1659
_tmp218_ = _tmp217_;
1531
1660
if (_inner_error_ != NULL) {
1532
1661
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1533
1662
g_propagate_error (error, _inner_error_);
1534
1663
_vala_code_node_unref0 (call);
1535
_vala_code_node_unref0 (try_stmt);
1536
_vala_code_node_unref0 (catch_block);
1537
_vala_code_node_unref0 (try_block);
1538
1664
_vala_code_node_unref0 (block);
1539
_vala_code_node_unref0 (set_accessor);
1540
_vala_code_node_unref0 (get_accessor);
1665
_vala_code_node_unref0 (set_method);
1666
_vala_code_node_unref0 (changed_signal);
1541
1667
_vala_code_node_unref0 (emit_changed_notify);
1542
1668
_vala_code_node_unref0 (switch_section);
1543
1669
_vala_code_node_unref0 (data_type_get);
1571
_tmp217_ = _tmp216_;
1572
_tmp218_ = string_to_string (_tmp217_);
1573
_tmp219_ = g_strconcat ("\"", _tmp218_, "\"", NULL);
1574
_tmp220_ = _tmp219_;
1575
_tmp221_ = vala_string_literal_new (_tmp220_, NULL);
1576
_tmp222_ = _tmp221_;
1577
vala_method_call_add_argument (call, (ValaExpression*) _tmp222_);
1578
_vala_code_node_unref0 (_tmp222_);
1579
_g_free0 (_tmp220_);
1580
_g_free0 (_tmp217_);
1581
_tmp223_ = vala_member_access_new (NULL, "value", NULL);
1582
_tmp224_ = _tmp223_;
1583
vala_method_call_add_argument (call, (ValaExpression*) _tmp224_);
1584
_vala_code_node_unref0 (_tmp224_);
1585
_tmp225_ = vala_expression_statement_new ((ValaExpression*) call, NULL);
1695
_tmp220_ = _tmp218_;
1696
_tmp221_ = string_to_string (_tmp220_);
1697
_tmp222_ = g_strconcat ("\"", _tmp221_, "\"", NULL);
1698
_tmp223_ = _tmp222_;
1699
_tmp224_ = source_reference;
1700
_tmp225_ = vala_string_literal_new (_tmp223_, _tmp224_);
1586
1701
_tmp226_ = _tmp225_;
1587
vala_block_add_statement (try_block, (ValaStatement*) _tmp226_);
1702
vala_method_call_add_argument (_tmp219_, (ValaExpression*) _tmp226_);
1588
1703
_vala_code_node_unref0 (_tmp226_);
1589
_tmp227_ = vala_string_literal_new ("GLib", NULL);
1590
_tmp228_ = _tmp227_;
1591
_tmp229_ = vala_member_access_new ((ValaExpression*) _tmp228_, "error", NULL);
1592
_tmp230_ = _tmp229_;
1593
_tmp231_ = vala_method_call_new ((ValaExpression*) _tmp230_, NULL);
1594
_tmp232_ = _tmp231_;
1595
_vala_code_node_unref0 (_tmp230_);
1596
_vala_code_node_unref0 (_tmp228_);
1597
error_call = _tmp232_;
1598
_tmp233_ = string_to_string (name);
1599
_tmp234_ = g_strconcat ("\"Unable to set `", _tmp233_, "': %s\"", NULL);
1600
_tmp235_ = _tmp234_;
1601
_tmp236_ = vala_string_literal_new (_tmp235_, NULL);
1602
_tmp237_ = _tmp236_;
1603
vala_method_call_add_argument (error_call, (ValaExpression*) _tmp237_);
1604
_vala_code_node_unref0 (_tmp237_);
1605
_g_free0 (_tmp235_);
1606
_tmp238_ = vala_member_access_new (NULL, "e", NULL);
1607
_tmp239_ = _tmp238_;
1608
_tmp240_ = vala_member_access_new ((ValaExpression*) _tmp239_, "message", NULL);
1609
_tmp241_ = _tmp240_;
1610
vala_method_call_add_argument (error_call, (ValaExpression*) _tmp241_);
1611
_vala_code_node_unref0 (_tmp241_);
1612
_vala_code_node_unref0 (_tmp239_);
1613
_tmp242_ = vala_expression_statement_new ((ValaExpression*) error_call, NULL);
1614
_tmp243_ = _tmp242_;
1615
vala_block_add_statement (catch_block, (ValaStatement*) _tmp243_);
1616
_vala_code_node_unref0 (_tmp243_);
1617
_tmp244_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1618
_tmp245_ = _tmp244_;
1619
_tmp246_ = vala_catch_clause_new (_tmp245_, "e", catch_block, NULL);
1620
_tmp247_ = _tmp246_;
1621
vala_try_statement_add_catch_clause (try_stmt, _tmp247_);
1622
_vala_code_node_unref0 (_tmp247_);
1623
_vala_code_node_unref0 (_tmp245_);
1624
vala_block_add_statement (block, (ValaStatement*) try_stmt);
1625
_tmp248_ = vala_property_accessor_new (FALSE, TRUE, FALSE, data_type, block, NULL, NULL);
1704
_g_free0 (_tmp223_);
1705
_g_free0 (_tmp220_);
1708
_tmp229_ = source_reference;
1709
_tmp230_ = vala_expression_statement_new ((ValaExpression*) _tmp228_, _tmp229_);
1710
_tmp231_ = _tmp230_;
1711
vala_block_add_statement (_tmp227_, (ValaStatement*) _tmp231_);
1712
_vala_code_node_unref0 (_tmp231_);
1713
_tmp232_ = set_method;
1715
vala_subroutine_set_body ((ValaSubroutine*) _tmp232_, _tmp233_);
1716
_vala_code_node_unref0 (call);
1717
_vala_code_node_unref0 (block);
1718
_vala_code_node_unref0 (set_method);
1720
_vala_code_node_unref0 (changed_signal);
1722
ValaPropertyAccessor* get_accessor = NULL;
1723
ValaPropertyAccessor* set_accessor = NULL;
1724
ValaSourceReference* _tmp234_;
1725
ValaStringLiteral* _tmp235_;
1726
ValaStringLiteral* _tmp236_;
1727
ValaSourceReference* _tmp237_;
1728
ValaMemberAccess* _tmp238_;
1729
ValaMemberAccess* _tmp239_;
1730
ValaSourceReference* _tmp240_;
1731
ValaMethodCall* _tmp241_;
1732
ValaMethodCall* _tmp242_;
1733
const gchar* _tmp243_;
1734
gchar* _tmp244_ = NULL;
1740
ValaSourceReference* _tmp250_;
1741
ValaStringLiteral* _tmp251_;
1742
ValaStringLiteral* _tmp252_;
1743
const gchar* _tmp431_;
1744
ValaDataType* _tmp432_;
1745
ValaPropertyAccessor* _tmp433_;
1746
ValaPropertyAccessor* _tmp434_;
1747
ValaSourceReference* _tmp435_;
1748
ValaProperty* _tmp436_;
1750
ValaProperty* _tmp437_;
1751
ValaClass* _tmp438_;
1752
ValaProperty* _tmp439_;
1753
_tmp234_ = source_reference;
1754
_tmp235_ = vala_string_literal_new ("this", _tmp234_);
1755
_tmp236_ = _tmp235_;
1756
_tmp237_ = source_reference;
1757
_tmp238_ = vala_member_access_new ((ValaExpression*) _tmp236_, "notify_property", _tmp237_);
1758
_tmp239_ = _tmp238_;
1759
_tmp240_ = source_reference;
1760
_tmp241_ = vala_method_call_new ((ValaExpression*) _tmp239_, _tmp240_);
1761
_vala_code_node_unref0 (emit_changed_notify);
1762
emit_changed_notify = _tmp241_;
1763
_vala_code_node_unref0 (_tmp239_);
1764
_vala_code_node_unref0 (_tmp236_);
1765
_tmp242_ = emit_changed_notify;
1767
_tmp244_ = string_replace (_tmp243_, "_", "-");
1768
_tmp245_ = _tmp244_;
1769
_tmp246_ = g_strconcat ("\"", _tmp245_, NULL);
1770
_tmp247_ = _tmp246_;
1771
_tmp248_ = g_strconcat (_tmp247_, "\"", NULL);
1772
_tmp249_ = _tmp248_;
1773
_tmp250_ = source_reference;
1774
_tmp251_ = vala_string_literal_new (_tmp249_, _tmp250_);
1775
_tmp252_ = _tmp251_;
1776
vala_method_call_add_argument (_tmp242_, (ValaExpression*) _tmp252_);
1777
_vala_code_node_unref0 (_tmp252_);
1778
_g_free0 (_tmp249_);
1779
_g_free0 (_tmp247_);
1780
_g_free0 (_tmp245_);
1782
ValaSourceReference* _tmp253_;
1783
ValaBlock* _tmp254_;
1785
ValaSourceReference* _tmp255_;
1786
ValaBlock* _tmp256_;
1787
ValaBlock* try_block;
1788
ValaSourceReference* _tmp257_;
1789
ValaBlock* _tmp258_;
1790
ValaBlock* catch_block;
1791
ValaBlock* _tmp259_;
1792
ValaSourceReference* _tmp260_;
1793
ValaTryStatement* _tmp261_;
1794
ValaTryStatement* try_stmt;
1795
ValaStringLiteral* _tmp262_;
1796
ValaStringLiteral* _tmp263_;
1797
ValaDataType* _tmp264_;
1798
gchar* _tmp265_ = NULL;
1800
const gchar* _tmp267_ = NULL;
1801
gchar* _tmp268_ = NULL;
1803
ValaSourceReference* _tmp270_;
1804
ValaMemberAccess* _tmp271_;
1805
ValaMemberAccess* _tmp272_;
1806
ValaSourceReference* _tmp273_;
1807
ValaMethodCall* _tmp274_;
1808
ValaMethodCall* _tmp275_;
1809
ValaMethodCall* call;
1810
SQLHeavyTable* _tmp276_;
1812
gchar* _tmp278_ = NULL;
1814
ValaMethodCall* _tmp280_;
1816
const gchar* _tmp282_ = NULL;
1817
gchar* _tmp283_ = NULL;
1819
ValaSourceReference* _tmp285_;
1820
ValaStringLiteral* _tmp286_;
1821
ValaStringLiteral* _tmp287_;
1822
ValaBlock* _tmp288_;
1823
ValaMethodCall* _tmp289_;
1824
ValaSourceReference* _tmp290_;
1825
ValaReturnStatement* _tmp291_;
1826
ValaReturnStatement* _tmp292_;
1827
ValaStringLiteral* _tmp293_;
1828
ValaStringLiteral* _tmp294_;
1829
ValaSourceReference* _tmp295_;
1830
ValaMemberAccess* _tmp296_;
1831
ValaMemberAccess* _tmp297_;
1832
ValaSourceReference* _tmp298_;
1833
ValaMethodCall* _tmp299_;
1834
ValaMethodCall* _tmp300_;
1835
ValaMethodCall* error_call;
1836
ValaMethodCall* _tmp301_;
1837
const gchar* _tmp302_;
1838
const gchar* _tmp303_ = NULL;
1839
gchar* _tmp304_ = NULL;
1841
ValaSourceReference* _tmp306_;
1842
ValaStringLiteral* _tmp307_;
1843
ValaStringLiteral* _tmp308_;
1844
ValaMethodCall* _tmp309_;
1845
ValaMemberAccess* _tmp310_;
1846
ValaMemberAccess* _tmp311_;
1847
ValaSourceReference* _tmp312_;
1848
ValaMemberAccess* _tmp313_;
1849
ValaMemberAccess* _tmp314_;
1850
ValaBlock* _tmp315_;
1851
ValaMethodCall* _tmp316_;
1852
ValaSourceReference* _tmp317_;
1853
ValaExpressionStatement* _tmp318_;
1854
ValaExpressionStatement* _tmp319_;
1855
ValaSourceReference* _tmp320_;
1856
ValaStringLiteral* _tmp321_;
1857
ValaStringLiteral* _tmp322_;
1858
ValaSourceReference* _tmp323_;
1859
ValaMemberAccess* _tmp324_;
1860
ValaMemberAccess* _tmp325_;
1861
ValaMethodCall* _tmp326_;
1862
ValaMethodCall* _tmp327_;
1863
ValaMethodCall* anr;
1864
ValaBlock* _tmp328_;
1865
ValaMethodCall* _tmp329_;
1866
ValaSourceReference* _tmp330_;
1867
ValaExpressionStatement* _tmp331_;
1868
ValaExpressionStatement* _tmp332_;
1869
ValaTryStatement* _tmp333_;
1870
ValaDataType* _tmp334_ = NULL;
1871
ValaDataType* _tmp335_;
1872
ValaBlock* _tmp336_;
1873
ValaSourceReference* _tmp337_;
1874
ValaCatchClause* _tmp338_;
1875
ValaCatchClause* _tmp339_;
1876
ValaBlock* _tmp340_;
1877
ValaTryStatement* _tmp341_;
1878
ValaDataType* _tmp342_;
1879
ValaBlock* _tmp343_;
1880
ValaSourceReference* _tmp344_;
1881
ValaPropertyAccessor* _tmp345_;
1882
_tmp253_ = source_reference;
1883
_tmp254_ = vala_block_new (_tmp253_);
1885
_tmp255_ = source_reference;
1886
_tmp256_ = vala_block_new (_tmp255_);
1887
try_block = _tmp256_;
1888
_tmp257_ = source_reference;
1889
_tmp258_ = vala_block_new (_tmp257_);
1890
catch_block = _tmp258_;
1891
_tmp259_ = try_block;
1892
_tmp260_ = source_reference;
1893
_tmp261_ = vala_try_statement_new (_tmp259_, NULL, _tmp260_);
1894
try_stmt = _tmp261_;
1895
_tmp262_ = vala_string_literal_new ("this", NULL);
1896
_tmp263_ = _tmp262_;
1897
_tmp264_ = data_type_get;
1898
_tmp265_ = vala_code_node_to_string ((ValaCodeNode*) _tmp264_);
1899
_tmp266_ = _tmp265_;
1900
_tmp267_ = string_to_string (_tmp266_);
1901
_tmp268_ = g_strconcat ("get_", _tmp267_, NULL);
1902
_tmp269_ = _tmp268_;
1903
_tmp270_ = source_reference;
1904
_tmp271_ = vala_member_access_new ((ValaExpression*) _tmp263_, _tmp269_, _tmp270_);
1905
_tmp272_ = _tmp271_;
1906
_tmp273_ = source_reference;
1907
_tmp274_ = vala_method_call_new ((ValaExpression*) _tmp272_, _tmp273_);
1908
_tmp275_ = _tmp274_;
1909
_vala_code_node_unref0 (_tmp272_);
1910
_g_free0 (_tmp269_);
1911
_g_free0 (_tmp266_);
1912
_vala_code_node_unref0 (_tmp263_);
1916
_tmp278_ = sql_heavy_table_field_name (_tmp276_, _tmp277_, &_inner_error_);
1917
_tmp279_ = _tmp278_;
1918
if (_inner_error_ != NULL) {
1919
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
1920
g_propagate_error (error, _inner_error_);
1921
_vala_code_node_unref0 (call);
1922
_vala_code_node_unref0 (try_stmt);
1923
_vala_code_node_unref0 (catch_block);
1924
_vala_code_node_unref0 (try_block);
1925
_vala_code_node_unref0 (block);
1926
_vala_code_node_unref0 (set_accessor);
1927
_vala_code_node_unref0 (get_accessor);
1928
_vala_code_node_unref0 (emit_changed_notify);
1929
_vala_code_node_unref0 (switch_section);
1930
_vala_code_node_unref0 (data_type_get);
1931
_vala_code_node_unref0 (data_type);
1934
_g_free0 (db_symbol);
1935
_g_object_unref0 (db);
1938
_vala_code_node_unref0 (call);
1939
_vala_code_node_unref0 (try_stmt);
1940
_vala_code_node_unref0 (catch_block);
1941
_vala_code_node_unref0 (try_block);
1942
_vala_code_node_unref0 (block);
1943
_vala_code_node_unref0 (set_accessor);
1944
_vala_code_node_unref0 (get_accessor);
1945
_vala_code_node_unref0 (emit_changed_notify);
1946
_vala_code_node_unref0 (switch_section);
1947
_vala_code_node_unref0 (data_type_get);
1948
_vala_code_node_unref0 (data_type);
1951
_g_free0 (db_symbol);
1952
_g_object_unref0 (db);
1953
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1954
g_clear_error (&_inner_error_);
1959
_tmp281_ = _tmp279_;
1960
_tmp282_ = string_to_string (_tmp281_);
1961
_tmp283_ = g_strconcat ("\"", _tmp282_, "\"", NULL);
1962
_tmp284_ = _tmp283_;
1963
_tmp285_ = source_reference;
1964
_tmp286_ = vala_string_literal_new (_tmp284_, _tmp285_);
1965
_tmp287_ = _tmp286_;
1966
vala_method_call_add_argument (_tmp280_, (ValaExpression*) _tmp287_);
1967
_vala_code_node_unref0 (_tmp287_);
1968
_g_free0 (_tmp284_);
1969
_g_free0 (_tmp281_);
1970
_tmp288_ = try_block;
1972
_tmp290_ = source_reference;
1973
_tmp291_ = vala_return_statement_new ((ValaExpression*) _tmp289_, _tmp290_);
1974
_tmp292_ = _tmp291_;
1975
vala_block_add_statement (_tmp288_, (ValaStatement*) _tmp292_);
1976
_vala_code_node_unref0 (_tmp292_);
1977
_tmp293_ = vala_string_literal_new ("GLib", NULL);
1978
_tmp294_ = _tmp293_;
1979
_tmp295_ = source_reference;
1980
_tmp296_ = vala_member_access_new ((ValaExpression*) _tmp294_, "error", _tmp295_);
1981
_tmp297_ = _tmp296_;
1982
_tmp298_ = source_reference;
1983
_tmp299_ = vala_method_call_new ((ValaExpression*) _tmp297_, _tmp298_);
1984
_tmp300_ = _tmp299_;
1985
_vala_code_node_unref0 (_tmp297_);
1986
_vala_code_node_unref0 (_tmp294_);
1987
error_call = _tmp300_;
1988
_tmp301_ = error_call;
1990
_tmp303_ = string_to_string (_tmp302_);
1991
_tmp304_ = g_strconcat ("\"Unable to retrieve `", _tmp303_, "': %s\"", NULL);
1992
_tmp305_ = _tmp304_;
1993
_tmp306_ = source_reference;
1994
_tmp307_ = vala_string_literal_new (_tmp305_, _tmp306_);
1995
_tmp308_ = _tmp307_;
1996
vala_method_call_add_argument (_tmp301_, (ValaExpression*) _tmp308_);
1997
_vala_code_node_unref0 (_tmp308_);
1998
_g_free0 (_tmp305_);
1999
_tmp309_ = error_call;
2000
_tmp310_ = vala_member_access_new (NULL, "e", NULL);
2001
_tmp311_ = _tmp310_;
2002
_tmp312_ = source_reference;
2003
_tmp313_ = vala_member_access_new ((ValaExpression*) _tmp311_, "message", _tmp312_);
2004
_tmp314_ = _tmp313_;
2005
vala_method_call_add_argument (_tmp309_, (ValaExpression*) _tmp314_);
2006
_vala_code_node_unref0 (_tmp314_);
2007
_vala_code_node_unref0 (_tmp311_);
2008
_tmp315_ = catch_block;
2009
_tmp316_ = error_call;
2010
_tmp317_ = source_reference;
2011
_tmp318_ = vala_expression_statement_new ((ValaExpression*) _tmp316_, _tmp317_);
2012
_tmp319_ = _tmp318_;
2013
vala_block_add_statement (_tmp315_, (ValaStatement*) _tmp319_);
2014
_vala_code_node_unref0 (_tmp319_);
2015
_tmp320_ = source_reference;
2016
_tmp321_ = vala_string_literal_new ("GLib", _tmp320_);
2017
_tmp322_ = _tmp321_;
2018
_tmp323_ = source_reference;
2019
_tmp324_ = vala_member_access_new ((ValaExpression*) _tmp322_, "assert_not_reached", _tmp323_);
2020
_tmp325_ = _tmp324_;
2021
_tmp326_ = vala_method_call_new ((ValaExpression*) _tmp325_, NULL);
2022
_tmp327_ = _tmp326_;
2023
_vala_code_node_unref0 (_tmp325_);
2024
_vala_code_node_unref0 (_tmp322_);
2026
_tmp328_ = catch_block;
2028
_tmp330_ = source_reference;
2029
_tmp331_ = vala_expression_statement_new ((ValaExpression*) _tmp329_, _tmp330_);
2030
_tmp332_ = _tmp331_;
2031
vala_block_add_statement (_tmp328_, (ValaStatement*) _tmp332_);
2032
_vala_code_node_unref0 (_tmp332_);
2033
_tmp333_ = try_stmt;
2034
_tmp334_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
2035
_tmp335_ = _tmp334_;
2036
_tmp336_ = catch_block;
2037
_tmp337_ = source_reference;
2038
_tmp338_ = vala_catch_clause_new (_tmp335_, "e", _tmp336_, _tmp337_);
2039
_tmp339_ = _tmp338_;
2040
vala_try_statement_add_catch_clause (_tmp333_, _tmp339_);
2041
_vala_code_node_unref0 (_tmp339_);
2042
_vala_code_node_unref0 (_tmp335_);
2044
_tmp341_ = try_stmt;
2045
vala_block_add_statement (_tmp340_, (ValaStatement*) _tmp341_);
2046
_tmp342_ = data_type_get;
2048
_tmp344_ = source_reference;
2049
_tmp345_ = vala_property_accessor_new (TRUE, FALSE, FALSE, _tmp342_, _tmp343_, _tmp344_, NULL);
2050
_vala_code_node_unref0 (get_accessor);
2051
get_accessor = _tmp345_;
2052
_vala_code_node_unref0 (anr);
2053
_vala_code_node_unref0 (error_call);
2054
_vala_code_node_unref0 (call);
2055
_vala_code_node_unref0 (try_stmt);
2056
_vala_code_node_unref0 (catch_block);
2057
_vala_code_node_unref0 (try_block);
2058
_vala_code_node_unref0 (block);
2061
ValaSourceReference* _tmp346_;
2062
ValaBlock* _tmp347_;
2064
ValaSourceReference* _tmp348_;
2065
ValaBlock* _tmp349_;
2066
ValaBlock* try_block;
2067
ValaSourceReference* _tmp350_;
2068
ValaBlock* _tmp351_;
2069
ValaBlock* catch_block;
2070
ValaBlock* _tmp352_;
2071
ValaSourceReference* _tmp353_;
2072
ValaTryStatement* _tmp354_;
2073
ValaTryStatement* try_stmt;
2074
ValaSourceReference* _tmp355_;
2075
ValaStringLiteral* _tmp356_;
2076
ValaStringLiteral* _tmp357_;
2077
ValaDataType* _tmp358_;
2078
gchar* _tmp359_ = NULL;
2080
const gchar* _tmp361_ = NULL;
2081
gchar* _tmp362_ = NULL;
2083
ValaSourceReference* _tmp364_;
2084
ValaMemberAccess* _tmp365_;
2085
ValaMemberAccess* _tmp366_;
2086
ValaSourceReference* _tmp367_;
2087
ValaMethodCall* _tmp368_;
2088
ValaMethodCall* _tmp369_;
2089
ValaMethodCall* call;
2090
SQLHeavyTable* _tmp370_;
2092
gchar* _tmp372_ = NULL;
2094
ValaMethodCall* _tmp374_;
2096
const gchar* _tmp376_ = NULL;
2097
gchar* _tmp377_ = NULL;
2099
ValaSourceReference* _tmp379_;
2100
ValaStringLiteral* _tmp380_;
2101
ValaStringLiteral* _tmp381_;
2102
ValaMethodCall* _tmp382_;
2103
ValaSourceReference* _tmp383_;
2104
ValaMemberAccess* _tmp384_;
2105
ValaMemberAccess* _tmp385_;
2106
ValaBlock* _tmp386_;
2107
ValaMethodCall* _tmp387_;
2108
ValaSourceReference* _tmp388_;
2109
ValaExpressionStatement* _tmp389_;
2110
ValaExpressionStatement* _tmp390_;
2111
ValaStringLiteral* _tmp391_;
2112
ValaStringLiteral* _tmp392_;
2113
ValaSourceReference* _tmp393_;
2114
ValaMemberAccess* _tmp394_;
2115
ValaMemberAccess* _tmp395_;
2116
ValaSourceReference* _tmp396_;
2117
ValaMethodCall* _tmp397_;
2118
ValaMethodCall* _tmp398_;
2119
ValaMethodCall* error_call;
2120
ValaMethodCall* _tmp399_;
2121
const gchar* _tmp400_;
2122
const gchar* _tmp401_ = NULL;
2123
gchar* _tmp402_ = NULL;
2125
ValaSourceReference* _tmp404_;
2126
ValaStringLiteral* _tmp405_;
2127
ValaStringLiteral* _tmp406_;
2128
ValaMethodCall* _tmp407_;
2129
ValaMemberAccess* _tmp408_;
2130
ValaMemberAccess* _tmp409_;
2131
ValaSourceReference* _tmp410_;
2132
ValaMemberAccess* _tmp411_;
2133
ValaMemberAccess* _tmp412_;
2134
ValaBlock* _tmp413_;
2135
ValaMethodCall* _tmp414_;
2136
ValaSourceReference* _tmp415_;
2137
ValaExpressionStatement* _tmp416_;
2138
ValaExpressionStatement* _tmp417_;
2139
ValaTryStatement* _tmp418_;
2140
ValaDataType* _tmp419_ = NULL;
2141
ValaDataType* _tmp420_;
2142
ValaBlock* _tmp421_;
2143
ValaSourceReference* _tmp422_;
2144
ValaCatchClause* _tmp423_;
2145
ValaCatchClause* _tmp424_;
2146
ValaBlock* _tmp425_;
2147
ValaTryStatement* _tmp426_;
2148
ValaDataType* _tmp427_;
2149
ValaBlock* _tmp428_;
2150
ValaSourceReference* _tmp429_;
2151
ValaPropertyAccessor* _tmp430_;
2152
_tmp346_ = source_reference;
2153
_tmp347_ = vala_block_new (_tmp346_);
2155
_tmp348_ = source_reference;
2156
_tmp349_ = vala_block_new (_tmp348_);
2157
try_block = _tmp349_;
2158
_tmp350_ = source_reference;
2159
_tmp351_ = vala_block_new (_tmp350_);
2160
catch_block = _tmp351_;
2161
_tmp352_ = try_block;
2162
_tmp353_ = source_reference;
2163
_tmp354_ = vala_try_statement_new (_tmp352_, NULL, _tmp353_);
2164
try_stmt = _tmp354_;
2165
_tmp355_ = source_reference;
2166
_tmp356_ = vala_string_literal_new ("this", _tmp355_);
2167
_tmp357_ = _tmp356_;
2168
_tmp358_ = data_type_get;
2169
_tmp359_ = vala_code_node_to_string ((ValaCodeNode*) _tmp358_);
2170
_tmp360_ = _tmp359_;
2171
_tmp361_ = string_to_string (_tmp360_);
2172
_tmp362_ = g_strconcat ("set_", _tmp361_, NULL);
2173
_tmp363_ = _tmp362_;
2174
_tmp364_ = source_reference;
2175
_tmp365_ = vala_member_access_new ((ValaExpression*) _tmp357_, _tmp363_, _tmp364_);
2176
_tmp366_ = _tmp365_;
2177
_tmp367_ = source_reference;
2178
_tmp368_ = vala_method_call_new ((ValaExpression*) _tmp366_, _tmp367_);
2179
_tmp369_ = _tmp368_;
2180
_vala_code_node_unref0 (_tmp366_);
2181
_g_free0 (_tmp363_);
2182
_g_free0 (_tmp360_);
2183
_vala_code_node_unref0 (_tmp357_);
2187
_tmp372_ = sql_heavy_table_field_name (_tmp370_, _tmp371_, &_inner_error_);
2188
_tmp373_ = _tmp372_;
2189
if (_inner_error_ != NULL) {
2190
if ((_inner_error_->domain == SQL_HEAVY_GENERATOR_ERROR) || (_inner_error_->domain == SQL_HEAVY_ERROR)) {
2191
g_propagate_error (error, _inner_error_);
2192
_vala_code_node_unref0 (call);
2193
_vala_code_node_unref0 (try_stmt);
2194
_vala_code_node_unref0 (catch_block);
2195
_vala_code_node_unref0 (try_block);
2196
_vala_code_node_unref0 (block);
2197
_vala_code_node_unref0 (set_accessor);
2198
_vala_code_node_unref0 (get_accessor);
2199
_vala_code_node_unref0 (emit_changed_notify);
2200
_vala_code_node_unref0 (switch_section);
2201
_vala_code_node_unref0 (data_type_get);
2202
_vala_code_node_unref0 (data_type);
2205
_g_free0 (db_symbol);
2206
_g_object_unref0 (db);
2209
_vala_code_node_unref0 (call);
2210
_vala_code_node_unref0 (try_stmt);
2211
_vala_code_node_unref0 (catch_block);
2212
_vala_code_node_unref0 (try_block);
2213
_vala_code_node_unref0 (block);
2214
_vala_code_node_unref0 (set_accessor);
2215
_vala_code_node_unref0 (get_accessor);
2216
_vala_code_node_unref0 (emit_changed_notify);
2217
_vala_code_node_unref0 (switch_section);
2218
_vala_code_node_unref0 (data_type_get);
2219
_vala_code_node_unref0 (data_type);
2222
_g_free0 (db_symbol);
2223
_g_object_unref0 (db);
2224
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2225
g_clear_error (&_inner_error_);
2230
_tmp375_ = _tmp373_;
2231
_tmp376_ = string_to_string (_tmp375_);
2232
_tmp377_ = g_strconcat ("\"", _tmp376_, "\"", NULL);
2233
_tmp378_ = _tmp377_;
2234
_tmp379_ = source_reference;
2235
_tmp380_ = vala_string_literal_new (_tmp378_, _tmp379_);
2236
_tmp381_ = _tmp380_;
2237
vala_method_call_add_argument (_tmp374_, (ValaExpression*) _tmp381_);
2238
_vala_code_node_unref0 (_tmp381_);
2239
_g_free0 (_tmp378_);
2240
_g_free0 (_tmp375_);
2242
_tmp383_ = source_reference;
2243
_tmp384_ = vala_member_access_new (NULL, "value", _tmp383_);
2244
_tmp385_ = _tmp384_;
2245
vala_method_call_add_argument (_tmp382_, (ValaExpression*) _tmp385_);
2246
_vala_code_node_unref0 (_tmp385_);
2247
_tmp386_ = try_block;
2249
_tmp388_ = source_reference;
2250
_tmp389_ = vala_expression_statement_new ((ValaExpression*) _tmp387_, _tmp388_);
2251
_tmp390_ = _tmp389_;
2252
vala_block_add_statement (_tmp386_, (ValaStatement*) _tmp390_);
2253
_vala_code_node_unref0 (_tmp390_);
2254
_tmp391_ = vala_string_literal_new ("GLib", NULL);
2255
_tmp392_ = _tmp391_;
2256
_tmp393_ = source_reference;
2257
_tmp394_ = vala_member_access_new ((ValaExpression*) _tmp392_, "error", _tmp393_);
2258
_tmp395_ = _tmp394_;
2259
_tmp396_ = source_reference;
2260
_tmp397_ = vala_method_call_new ((ValaExpression*) _tmp395_, _tmp396_);
2261
_tmp398_ = _tmp397_;
2262
_vala_code_node_unref0 (_tmp395_);
2263
_vala_code_node_unref0 (_tmp392_);
2264
error_call = _tmp398_;
2265
_tmp399_ = error_call;
2267
_tmp401_ = string_to_string (_tmp400_);
2268
_tmp402_ = g_strconcat ("\"Unable to set `", _tmp401_, "': %s\"", NULL);
2269
_tmp403_ = _tmp402_;
2270
_tmp404_ = source_reference;
2271
_tmp405_ = vala_string_literal_new (_tmp403_, _tmp404_);
2272
_tmp406_ = _tmp405_;
2273
vala_method_call_add_argument (_tmp399_, (ValaExpression*) _tmp406_);
2274
_vala_code_node_unref0 (_tmp406_);
2275
_g_free0 (_tmp403_);
2276
_tmp407_ = error_call;
2277
_tmp408_ = vala_member_access_new (NULL, "e", NULL);
2278
_tmp409_ = _tmp408_;
2279
_tmp410_ = source_reference;
2280
_tmp411_ = vala_member_access_new ((ValaExpression*) _tmp409_, "message", _tmp410_);
2281
_tmp412_ = _tmp411_;
2282
vala_method_call_add_argument (_tmp407_, (ValaExpression*) _tmp412_);
2283
_vala_code_node_unref0 (_tmp412_);
2284
_vala_code_node_unref0 (_tmp409_);
2285
_tmp413_ = catch_block;
2286
_tmp414_ = error_call;
2287
_tmp415_ = source_reference;
2288
_tmp416_ = vala_expression_statement_new ((ValaExpression*) _tmp414_, _tmp415_);
2289
_tmp417_ = _tmp416_;
2290
vala_block_add_statement (_tmp413_, (ValaStatement*) _tmp417_);
2291
_vala_code_node_unref0 (_tmp417_);
2292
_tmp418_ = try_stmt;
2293
_tmp419_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
2294
_tmp420_ = _tmp419_;
2295
_tmp421_ = catch_block;
2296
_tmp422_ = source_reference;
2297
_tmp423_ = vala_catch_clause_new (_tmp420_, "e", _tmp421_, _tmp422_);
2298
_tmp424_ = _tmp423_;
2299
vala_try_statement_add_catch_clause (_tmp418_, _tmp424_);
2300
_vala_code_node_unref0 (_tmp424_);
2301
_vala_code_node_unref0 (_tmp420_);
2303
_tmp426_ = try_stmt;
2304
vala_block_add_statement (_tmp425_, (ValaStatement*) _tmp426_);
2305
_tmp427_ = data_type;
2307
_tmp429_ = source_reference;
2308
_tmp430_ = vala_property_accessor_new (FALSE, TRUE, FALSE, _tmp427_, _tmp428_, _tmp429_, NULL);
1626
2309
_vala_code_node_unref0 (set_accessor);
1627
set_accessor = _tmp248_;
2310
set_accessor = _tmp430_;
1628
2311
_vala_code_node_unref0 (error_call);
1629
2312
_vala_code_node_unref0 (call);
1630
2313
_vala_code_node_unref0 (try_stmt);
1662
static void sql_heavy_generator_parse_table (SQLHeavyGenerator* self, SQLHeavyTable* table, ValaNamespace* ns, GError** error) {
1663
SQLHeavyQueryable* _tmp0_ = NULL;
1664
SQLHeavyDatabase* _tmp1_ = NULL;
2358
static void sql_heavy_generator_parse_table (SQLHeavyGenerator* self, SQLHeavyTable* table, ValaNamespace* ns, ValaSourceReference* source_reference, GError** error) {
2359
SQLHeavyTable* _tmp0_;
2360
SQLHeavyQueryable* _tmp1_;
2361
SQLHeavyQueryable* _tmp2_;
2362
SQLHeavyDatabase* _tmp3_;
2363
SQLHeavyDatabase* _tmp4_;
1665
2364
SQLHeavyDatabase* db;
1666
const gchar* _tmp2_ = NULL;
1667
gchar* _tmp3_ = NULL;
1670
gchar** _tmp6_ = NULL;
1672
gint _tmp7__length1;
2365
SQLHeavyDatabase* _tmp5_;
2366
const gchar* _tmp6_;
2367
const gchar* _tmp7_;
2368
gchar* _tmp8_ = NULL;
2371
gchar** _tmp11_ = NULL;
2373
gint _tmp12__length1;
2374
const gchar* _tmp13_;
1675
2377
gchar* db_symbol;
1676
gchar* _tmp10_ = NULL;
1678
const gchar* _tmp12_ = NULL;
1679
const gchar* _tmp13_ = NULL;
1680
const gchar* _tmp14_ = NULL;
1681
gchar* _tmp15_ = NULL;
2378
const gchar* _tmp16_;
1684
2379
gchar* _tmp17_ = NULL;
2381
const gchar* _tmp19_ = NULL;
2382
SQLHeavyTable* _tmp20_;
2383
const gchar* _tmp21_;
2384
const gchar* _tmp22_;
2385
const gchar* _tmp23_ = NULL;
2386
gchar* _tmp24_ = NULL;
2389
const gchar* _tmp26_;
2390
gchar* _tmp27_ = NULL;
1685
2391
gchar* symbol_name;
1687
ValaScope* _tmp19_ = NULL;
1688
ValaSymbol* _tmp20_ = NULL;
1689
ValaSymbol* _tmp21_;
2392
const gchar* _tmp28_;
2393
gboolean _tmp29_ = FALSE;
2394
ValaNamespace* _tmp30_;
2397
const gchar* _tmp33_;
2398
ValaSymbol* _tmp34_ = NULL;
1691
ValaDataType* _tmp23_ = NULL;
1692
ValaDataType* _tmp24_;
2402
ValaDataType* _tmp43_ = NULL;
2403
ValaDataType* _tmp44_;
1693
2404
ValaSwitchStatement* signals_switch = NULL;
1694
ValaConstructor* _tmp80_ = NULL;
2405
ValaSourceReference* _tmp136_;
2406
ValaConstructor* _tmp137_;
1695
2407
ValaConstructor* con;
1696
ValaBlock* _tmp81_ = NULL;
1698
ValaStringLiteral* _tmp83_ = NULL;
1699
ValaStringLiteral* _tmp84_;
1700
ValaMemberAccess* _tmp85_ = NULL;
1701
ValaMemberAccess* _tmp86_;
1702
ValaMemberAccess* _tmp87_ = NULL;
1703
ValaMemberAccess* _tmp88_;
1704
ValaMethodCall* _tmp89_ = NULL;
1705
ValaMethodCall* _tmp90_;
2408
ValaConstructor* _tmp138_;
2409
ValaSourceReference* _tmp139_;
2410
ValaBlock* _tmp140_;
2411
ValaBlock* _tmp141_;
2412
ValaStringLiteral* _tmp142_;
2413
ValaStringLiteral* _tmp143_;
2414
ValaSourceReference* _tmp144_;
2415
ValaMemberAccess* _tmp145_;
2416
ValaMemberAccess* _tmp146_;
2417
ValaSourceReference* _tmp147_;
2418
ValaMemberAccess* _tmp148_;
2419
ValaMemberAccess* _tmp149_;
2420
ValaSourceReference* _tmp150_;
2421
ValaMethodCall* _tmp151_;
2422
ValaMethodCall* _tmp152_;
1706
2423
ValaMethodCall* conn_call;
1707
ValaStringLiteral* _tmp91_ = NULL;
1708
ValaStringLiteral* _tmp92_;
1709
ValaMemberAccess* _tmp93_ = NULL;
1710
ValaMemberAccess* _tmp94_;
1711
ValaBlock* _tmp95_ = NULL;
1712
ValaExpressionStatement* _tmp96_ = NULL;
1713
ValaExpressionStatement* _tmp97_;
2424
ValaMethodCall* _tmp153_;
2425
ValaStringLiteral* _tmp154_;
2426
ValaStringLiteral* _tmp155_;
2427
ValaSourceReference* _tmp156_;
2428
ValaMemberAccess* _tmp157_;
2429
ValaMemberAccess* _tmp158_;
2430
ValaConstructor* _tmp159_;
2431
ValaBlock* _tmp160_;
2432
ValaBlock* _tmp161_;
2433
ValaMethodCall* _tmp162_;
2434
ValaSourceReference* _tmp163_;
2435
ValaExpressionStatement* _tmp164_;
2436
ValaExpressionStatement* _tmp165_;
2437
ValaClass* _tmp166_;
2438
ValaConstructor* _tmp167_;
1714
2439
GError * _inner_error_ = NULL;
1715
2440
g_return_if_fail (self != NULL);
1716
2441
g_return_if_fail (table != NULL);
1717
2442
g_return_if_fail (ns != NULL);
1718
_tmp0_ = sql_heavy_table_get_queryable (table);
1719
_tmp1_ = sql_heavy_queryable_get_database (_tmp0_);
1721
_tmp2_ = sql_heavy_database_get_filename (db);
1722
_tmp3_ = g_path_get_basename (_tmp2_);
2443
g_return_if_fail (source_reference != NULL);
2445
_tmp1_ = sql_heavy_table_get_queryable (_tmp0_);
2447
_tmp3_ = sql_heavy_queryable_get_database (_tmp2_);
1723
2448
_tmp4_ = _tmp3_;
1724
_tmp6_ = _tmp5_ = g_strsplit (_tmp4_, ".", 2);
2451
_tmp6_ = sql_heavy_database_get_filename (_tmp5_);
1725
2452
_tmp7_ = _tmp6_;
1726
_tmp7__length1 = _vala_array_length (_tmp5_);
1727
_tmp8_ = g_strdup (_tmp7_[0]);
2453
_tmp8_ = g_path_get_basename (_tmp7_);
1728
2454
_tmp9_ = _tmp8_;
1729
_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
1732
_tmp10_ = g_path_get_basename (db_symbol);
1734
_tmp12_ = string_to_string (_tmp11_);
1735
_tmp13_ = sql_heavy_table_get_name (table);
1736
_tmp14_ = string_to_string (_tmp13_);
1737
_tmp15_ = g_strconcat ("@", _tmp12_, "/", _tmp14_, NULL);
1741
_tmp17_ = sql_heavy_generator_get_symbol_name (self, symbol);
1742
symbol_name = _tmp17_;
1743
_tmp18_ = sql_heavy_generator_symbol_is_hidden (self, symbol);
2455
_tmp11_ = _tmp10_ = g_strsplit (_tmp9_, ".", 2);
2457
_tmp12__length1 = _vala_array_length (_tmp10_);
2458
_tmp13_ = _tmp12_[0];
2459
_tmp14_ = g_strdup (_tmp13_);
2461
_tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
2463
db_symbol = _tmp15_;
2464
_tmp16_ = db_symbol;
2465
_tmp17_ = g_path_get_basename (_tmp16_);
2467
_tmp19_ = string_to_string (_tmp18_);
2469
_tmp21_ = sql_heavy_table_get_name (_tmp20_);
2471
_tmp23_ = string_to_string (_tmp22_);
2472
_tmp24_ = g_strconcat ("@", _tmp19_, "/", _tmp23_, NULL);
2477
_tmp27_ = sql_heavy_generator_get_symbol_name (self, _tmp26_);
2478
symbol_name = _tmp27_;
2480
_tmp29_ = sql_heavy_generator_symbol_is_hidden (self, _tmp28_);
1745
2482
_g_free0 (symbol_name);
1746
2483
_g_free0 (symbol);
1747
2484
_g_free0 (db_symbol);
1748
2485
_g_object_unref0 (db);
1751
_tmp19_ = vala_symbol_get_scope ((ValaSymbol*) ns);
1752
_tmp20_ = vala_scope_lookup (_tmp19_, symbol_name);
1754
cl = VALA_IS_CLASS (_tmp21_) ? ((ValaClass*) _tmp21_) : NULL;
1756
ValaClass* _tmp22_ = NULL;
1757
_tmp22_ = vala_class_new (symbol_name, NULL, NULL);
2489
_tmp31_ = vala_symbol_get_scope ((ValaSymbol*) _tmp30_);
2491
_tmp33_ = symbol_name;
2492
_tmp34_ = vala_scope_lookup (_tmp32_, _tmp33_);
2493
cl = VALA_IS_CLASS (_tmp34_) ? ((ValaClass*) _tmp34_) : NULL;
2495
if (_tmp35_ == NULL) {
2496
const gchar* _tmp36_;
2497
ValaSourceReference* _tmp37_;
2500
ValaNamespace* _tmp40_;
2502
_tmp36_ = symbol_name;
2503
_tmp37_ = source_reference;
2504
_tmp38_ = vala_class_new (_tmp36_, _tmp37_, NULL);
1758
2505
_vala_code_node_unref0 (cl);
1760
vala_symbol_set_access ((ValaSymbol*) cl, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
1761
vala_symbol_add_class ((ValaSymbol*) ns, cl);
2508
vala_symbol_set_access ((ValaSymbol*) _tmp39_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
2511
vala_symbol_add_class ((ValaSymbol*) _tmp40_, _tmp41_);
1763
_tmp23_ = sql_heavy_generator_type_from_string ("SQLHeavy.Row");
1765
vala_class_add_base_type (cl, _tmp24_);
1766
_vala_code_node_unref0 (_tmp24_);
2514
_tmp43_ = sql_heavy_generator_type_from_string ("SQLHeavy.Row");
2516
vala_class_add_base_type (_tmp42_, _tmp44_);
2517
_vala_code_node_unref0 (_tmp44_);
1768
ValaVoidType* _tmp25_ = NULL;
1769
ValaVoidType* _tmp26_;
1770
ValaMethod* _tmp27_ = NULL;
1771
ValaMethod* _tmp28_;
2519
ValaVoidType* _tmp45_;
2520
ValaVoidType* _tmp46_;
2521
ValaMethod* _tmp47_;
2522
ValaMethod* _tmp48_;
1772
2523
ValaMethod* register_notify;
1773
ValaDataType* _tmp29_ = NULL;
1774
ValaDataType* _tmp30_;
1775
ValaParameter* _tmp31_ = NULL;
1776
ValaParameter* _tmp32_;
1777
ValaBlock* _tmp33_ = NULL;
2524
ValaMethod* _tmp49_;
2525
ValaMethod* _tmp50_;
2526
ValaDataType* _tmp51_ = NULL;
2527
ValaDataType* _tmp52_;
2528
ValaParameter* _tmp53_;
2529
ValaParameter* _tmp54_;
2530
ValaSourceReference* _tmp55_;
1778
2532
ValaBlock* block;
1779
ValaBlock* _tmp34_ = NULL;
2533
ValaSourceReference* _tmp57_;
1780
2535
ValaBlock* try_block;
1781
ValaBlock* _tmp35_ = NULL;
2536
ValaSourceReference* _tmp59_;
1782
2538
ValaBlock* catch_block;
1783
ValaTryStatement* _tmp36_ = NULL;
2540
ValaSourceReference* _tmp62_;
2541
ValaTryStatement* _tmp63_;
1784
2542
ValaTryStatement* try_stmt;
1785
ValaDataType* _tmp37_ = NULL;
1786
ValaDataType* _tmp38_;
1787
ValaStringLiteral* _tmp39_ = NULL;
1788
ValaStringLiteral* _tmp40_;
1789
ValaLocalVariable* _tmp41_ = NULL;
1790
ValaLocalVariable* _tmp42_;
2543
ValaDataType* _tmp64_ = NULL;
2544
ValaDataType* _tmp65_;
2545
ValaStringLiteral* _tmp66_;
2546
ValaStringLiteral* _tmp67_;
2547
ValaSourceReference* _tmp68_;
2548
ValaLocalVariable* _tmp69_;
2549
ValaLocalVariable* _tmp70_;
1791
2550
ValaLocalVariable* field_name;
1792
ValaDeclarationStatement* _tmp43_ = NULL;
1793
ValaDeclarationStatement* _tmp44_;
1794
ValaStringLiteral* _tmp45_ = NULL;
1795
ValaStringLiteral* _tmp46_;
1796
ValaMemberAccess* _tmp47_ = NULL;
1797
ValaMemberAccess* _tmp48_;
1798
ValaMethodCall* _tmp49_ = NULL;
1799
ValaMethodCall* _tmp50_;
2552
ValaLocalVariable* _tmp72_;
2553
ValaSourceReference* _tmp73_;
2554
ValaDeclarationStatement* _tmp74_;
2555
ValaDeclarationStatement* _tmp75_;
2557
ValaTryStatement* _tmp77_;
2558
ValaStringLiteral* _tmp78_;
2559
ValaStringLiteral* _tmp79_;
2560
ValaMemberAccess* _tmp80_;
2561
ValaMemberAccess* _tmp81_;
2562
ValaMethodCall* _tmp82_;
2563
ValaMethodCall* _tmp83_;
1800
2564
ValaMethodCall* get_field_name;
1801
ValaMemberAccess* _tmp51_ = NULL;
1802
ValaMemberAccess* _tmp52_;
1803
ValaStringLiteral* _tmp53_ = NULL;
1804
ValaStringLiteral* _tmp54_;
1805
ValaAssignment* _tmp55_ = NULL;
1806
ValaAssignment* _tmp56_;
1807
ValaExpressionStatement* _tmp57_ = NULL;
1808
ValaExpressionStatement* _tmp58_;
1809
ValaStringLiteral* _tmp59_ = NULL;
1810
ValaStringLiteral* _tmp60_;
1811
ValaMemberAccess* _tmp61_ = NULL;
1812
ValaMemberAccess* _tmp62_;
1813
ValaMethodCall* _tmp63_ = NULL;
1814
ValaMethodCall* _tmp64_;
2565
ValaMethodCall* _tmp84_;
2566
ValaMemberAccess* _tmp85_;
2567
ValaMemberAccess* _tmp86_;
2569
ValaStringLiteral* _tmp88_;
2570
ValaStringLiteral* _tmp89_;
2571
ValaMethodCall* _tmp90_;
2572
ValaAssignment* _tmp91_;
2573
ValaAssignment* _tmp92_;
2574
ValaExpressionStatement* _tmp93_;
2575
ValaExpressionStatement* _tmp94_;
2576
ValaStringLiteral* _tmp95_;
2577
ValaStringLiteral* _tmp96_;
2578
ValaMemberAccess* _tmp97_;
2579
ValaMemberAccess* _tmp98_;
2580
ValaSourceReference* _tmp99_;
2581
ValaMethodCall* _tmp100_;
2582
ValaMethodCall* _tmp101_;
1815
2583
ValaMethodCall* warn_call;
1816
ValaStringLiteral* _tmp65_ = NULL;
1817
ValaStringLiteral* _tmp66_;
1818
ValaMemberAccess* _tmp67_ = NULL;
1819
ValaMemberAccess* _tmp68_;
1820
ValaExpressionStatement* _tmp69_ = NULL;
1821
ValaExpressionStatement* _tmp70_;
1822
ValaReturnStatement* _tmp71_ = NULL;
1823
ValaReturnStatement* _tmp72_;
1824
ValaDataType* _tmp73_ = NULL;
1825
ValaDataType* _tmp74_;
1826
ValaCatchClause* _tmp75_ = NULL;
1827
ValaCatchClause* _tmp76_;
1828
ValaStringLiteral* _tmp77_ = NULL;
1829
ValaStringLiteral* _tmp78_;
1830
ValaSwitchStatement* _tmp79_ = NULL;
1831
_tmp25_ = vala_void_type_new (NULL);
1833
_tmp27_ = vala_method_new ("emit_change_notification", (ValaDataType*) _tmp26_, NULL, NULL);
1835
_vala_code_node_unref0 (_tmp26_);
1836
register_notify = _tmp28_;
1837
vala_symbol_set_access ((ValaSymbol*) register_notify, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
1838
_tmp29_ = sql_heavy_generator_type_from_string ("int");
1840
_tmp31_ = vala_parameter_new ("field", _tmp30_, NULL);
1842
vala_method_add_parameter (register_notify, _tmp32_);
1843
_vala_code_node_unref0 (_tmp32_);
1844
_vala_code_node_unref0 (_tmp30_);
1845
_tmp33_ = vala_block_new (NULL);
1847
_tmp34_ = vala_block_new (NULL);
1848
try_block = _tmp34_;
1849
_tmp35_ = vala_block_new (NULL);
1850
catch_block = _tmp35_;
1851
_tmp36_ = vala_try_statement_new (try_block, NULL, NULL);
1853
_tmp37_ = sql_heavy_generator_type_from_string ("string");
1855
_tmp39_ = vala_string_literal_new ("null", NULL);
1857
_tmp41_ = vala_local_variable_new (_tmp38_, "field_name", (ValaExpression*) _tmp40_, NULL);
1859
_vala_code_node_unref0 (_tmp40_);
1860
_vala_code_node_unref0 (_tmp38_);
1861
field_name = _tmp42_;
1862
_tmp43_ = vala_declaration_statement_new ((ValaSymbol*) field_name, NULL);
1864
vala_block_add_statement (block, (ValaStatement*) _tmp44_);
1865
_vala_code_node_unref0 (_tmp44_);
1866
vala_block_add_statement (block, (ValaStatement*) try_stmt);
1867
_tmp45_ = vala_string_literal_new ("this", NULL);
2584
ValaMethodCall* _tmp102_;
2585
ValaSourceReference* _tmp103_;
2586
ValaStringLiteral* _tmp104_;
2587
ValaStringLiteral* _tmp105_;
2588
ValaMethodCall* _tmp106_;
2589
ValaSourceReference* _tmp107_;
2590
ValaMemberAccess* _tmp108_;
2591
ValaMemberAccess* _tmp109_;
2592
ValaBlock* _tmp110_;
2593
ValaMethodCall* _tmp111_;
2594
ValaSourceReference* _tmp112_;
2595
ValaExpressionStatement* _tmp113_;
2596
ValaExpressionStatement* _tmp114_;
2597
ValaBlock* _tmp115_;
2598
ValaSourceReference* _tmp116_;
2599
ValaReturnStatement* _tmp117_;
2600
ValaReturnStatement* _tmp118_;
2601
ValaTryStatement* _tmp119_;
2602
ValaDataType* _tmp120_ = NULL;
2603
ValaDataType* _tmp121_;
2604
ValaBlock* _tmp122_;
2605
ValaSourceReference* _tmp123_;
2606
ValaCatchClause* _tmp124_;
2607
ValaCatchClause* _tmp125_;
2608
ValaStringLiteral* _tmp126_;
2609
ValaStringLiteral* _tmp127_;
2610
ValaSourceReference* _tmp128_;
2611
ValaSwitchStatement* _tmp129_;
2612
ValaBlock* _tmp130_;
2613
ValaSwitchStatement* _tmp131_;
2614
ValaMethod* _tmp132_;
2615
ValaBlock* _tmp133_;
2616
ValaClass* _tmp134_;
2617
ValaMethod* _tmp135_;
2618
_tmp45_ = vala_void_type_new (NULL);
1868
2619
_tmp46_ = _tmp45_;
1869
_tmp47_ = vala_member_access_new ((ValaExpression*) _tmp46_, "field_name", NULL);
2620
_tmp47_ = vala_method_new ("emit_change_notification", (ValaDataType*) _tmp46_, NULL, NULL);
1870
2621
_tmp48_ = _tmp47_;
1871
_tmp49_ = vala_method_call_new ((ValaExpression*) _tmp48_, NULL);
1873
_vala_code_node_unref0 (_tmp48_);
1874
2622
_vala_code_node_unref0 (_tmp46_);
1875
get_field_name = _tmp50_;
1876
_tmp51_ = vala_member_access_new (NULL, "field", NULL);
2623
register_notify = _tmp48_;
2624
_tmp49_ = register_notify;
2625
vala_symbol_set_access ((ValaSymbol*) _tmp49_, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
2626
_tmp50_ = register_notify;
2627
_tmp51_ = sql_heavy_generator_type_from_string ("int");
1877
2628
_tmp52_ = _tmp51_;
1878
vala_method_call_add_argument (get_field_name, (ValaExpression*) _tmp52_);
1879
_vala_code_node_unref0 (_tmp52_);
1880
_tmp53_ = vala_string_literal_new ("field_name", NULL);
2629
_tmp53_ = vala_parameter_new ("field", _tmp52_, NULL);
1881
2630
_tmp54_ = _tmp53_;
1882
_tmp55_ = vala_assignment_new ((ValaExpression*) _tmp54_, (ValaExpression*) get_field_name, VALA_ASSIGNMENT_OPERATOR_SIMPLE, NULL);
1884
_tmp57_ = vala_expression_statement_new ((ValaExpression*) _tmp56_, NULL);
1886
vala_block_add_statement (try_block, (ValaStatement*) _tmp58_);
1887
_vala_code_node_unref0 (_tmp58_);
1888
_vala_code_node_unref0 (_tmp56_);
2631
vala_method_add_parameter (_tmp50_, _tmp54_);
1889
2632
_vala_code_node_unref0 (_tmp54_);
1890
_tmp59_ = vala_string_literal_new ("GLib", NULL);
1892
_tmp61_ = vala_member_access_new ((ValaExpression*) _tmp60_, "warning", NULL);
1894
_tmp63_ = vala_method_call_new ((ValaExpression*) _tmp62_, NULL);
1896
_vala_code_node_unref0 (_tmp62_);
1897
_vala_code_node_unref0 (_tmp60_);
1898
warn_call = _tmp64_;
1899
_tmp65_ = vala_string_literal_new ("\"" "Unknown field: %d" "\"", NULL);
1901
vala_method_call_add_argument (warn_call, (ValaExpression*) _tmp66_);
1902
_vala_code_node_unref0 (_tmp66_);
1903
_tmp67_ = vala_member_access_new (NULL, "field", NULL);
1905
vala_method_call_add_argument (warn_call, (ValaExpression*) _tmp68_);
1906
_vala_code_node_unref0 (_tmp68_);
1907
_tmp69_ = vala_expression_statement_new ((ValaExpression*) warn_call, NULL);
2633
_vala_code_node_unref0 (_tmp52_);
2634
_tmp55_ = source_reference;
2635
_tmp56_ = vala_block_new (_tmp55_);
2637
_tmp57_ = source_reference;
2638
_tmp58_ = vala_block_new (_tmp57_);
2639
try_block = _tmp58_;
2640
_tmp59_ = source_reference;
2641
_tmp60_ = vala_block_new (_tmp59_);
2642
catch_block = _tmp60_;
2643
_tmp61_ = try_block;
2644
_tmp62_ = source_reference;
2645
_tmp63_ = vala_try_statement_new (_tmp61_, NULL, _tmp62_);
2647
_tmp64_ = sql_heavy_generator_type_from_string ("string");
2649
_tmp66_ = vala_string_literal_new ("null", NULL);
2651
_tmp68_ = source_reference;
2652
_tmp69_ = vala_local_variable_new (_tmp65_, "field_name", (ValaExpression*) _tmp67_, _tmp68_);
1908
2653
_tmp70_ = _tmp69_;
1909
vala_block_add_statement (catch_block, (ValaStatement*) _tmp70_);
1910
_vala_code_node_unref0 (_tmp70_);
1911
_tmp71_ = vala_return_statement_new (NULL, NULL);
1913
vala_block_add_statement (catch_block, (ValaStatement*) _tmp72_);
1914
_vala_code_node_unref0 (_tmp72_);
1915
_tmp73_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
1917
_tmp75_ = vala_catch_clause_new (_tmp74_, "e", catch_block, NULL);
1919
vala_try_statement_add_catch_clause (try_stmt, _tmp76_);
1920
_vala_code_node_unref0 (_tmp76_);
1921
_vala_code_node_unref0 (_tmp74_);
1922
_tmp77_ = vala_string_literal_new ("field_name", NULL);
1924
_tmp79_ = vala_switch_statement_new ((ValaExpression*) _tmp78_, NULL);
2654
_vala_code_node_unref0 (_tmp67_);
2655
_vala_code_node_unref0 (_tmp65_);
2656
field_name = _tmp70_;
2658
_tmp72_ = field_name;
2659
_tmp73_ = source_reference;
2660
_tmp74_ = vala_declaration_statement_new ((ValaSymbol*) _tmp72_, _tmp73_);
2662
vala_block_add_statement (_tmp71_, (ValaStatement*) _tmp75_);
2663
_vala_code_node_unref0 (_tmp75_);
2666
vala_block_add_statement (_tmp76_, (ValaStatement*) _tmp77_);
2667
_tmp78_ = vala_string_literal_new ("this", NULL);
2669
_tmp80_ = vala_member_access_new ((ValaExpression*) _tmp79_, "field_name", NULL);
2671
_tmp82_ = vala_method_call_new ((ValaExpression*) _tmp81_, NULL);
2673
_vala_code_node_unref0 (_tmp81_);
2674
_vala_code_node_unref0 (_tmp79_);
2675
get_field_name = _tmp83_;
2676
_tmp84_ = get_field_name;
2677
_tmp85_ = vala_member_access_new (NULL, "field", NULL);
2679
vala_method_call_add_argument (_tmp84_, (ValaExpression*) _tmp86_);
2680
_vala_code_node_unref0 (_tmp86_);
2681
_tmp87_ = try_block;
2682
_tmp88_ = vala_string_literal_new ("field_name", NULL);
2684
_tmp90_ = get_field_name;
2685
_tmp91_ = vala_assignment_new ((ValaExpression*) _tmp89_, (ValaExpression*) _tmp90_, VALA_ASSIGNMENT_OPERATOR_SIMPLE, NULL);
2687
_tmp93_ = vala_expression_statement_new ((ValaExpression*) _tmp92_, NULL);
2689
vala_block_add_statement (_tmp87_, (ValaStatement*) _tmp94_);
2690
_vala_code_node_unref0 (_tmp94_);
2691
_vala_code_node_unref0 (_tmp92_);
2692
_vala_code_node_unref0 (_tmp89_);
2693
_tmp95_ = vala_string_literal_new ("GLib", NULL);
2695
_tmp97_ = vala_member_access_new ((ValaExpression*) _tmp96_, "warning", NULL);
2697
_tmp99_ = source_reference;
2698
_tmp100_ = vala_method_call_new ((ValaExpression*) _tmp98_, _tmp99_);
2699
_tmp101_ = _tmp100_;
2700
_vala_code_node_unref0 (_tmp98_);
2701
_vala_code_node_unref0 (_tmp96_);
2702
warn_call = _tmp101_;
2703
_tmp102_ = warn_call;
2704
_tmp103_ = source_reference;
2705
_tmp104_ = vala_string_literal_new ("\"" "Unknown field: %d" "\"", _tmp103_);
2706
_tmp105_ = _tmp104_;
2707
vala_method_call_add_argument (_tmp102_, (ValaExpression*) _tmp105_);
2708
_vala_code_node_unref0 (_tmp105_);
2709
_tmp106_ = warn_call;
2710
_tmp107_ = source_reference;
2711
_tmp108_ = vala_member_access_new (NULL, "field", _tmp107_);
2712
_tmp109_ = _tmp108_;
2713
vala_method_call_add_argument (_tmp106_, (ValaExpression*) _tmp109_);
2714
_vala_code_node_unref0 (_tmp109_);
2715
_tmp110_ = catch_block;
2716
_tmp111_ = warn_call;
2717
_tmp112_ = source_reference;
2718
_tmp113_ = vala_expression_statement_new ((ValaExpression*) _tmp111_, _tmp112_);
2719
_tmp114_ = _tmp113_;
2720
vala_block_add_statement (_tmp110_, (ValaStatement*) _tmp114_);
2721
_vala_code_node_unref0 (_tmp114_);
2722
_tmp115_ = catch_block;
2723
_tmp116_ = source_reference;
2724
_tmp117_ = vala_return_statement_new (NULL, _tmp116_);
2725
_tmp118_ = _tmp117_;
2726
vala_block_add_statement (_tmp115_, (ValaStatement*) _tmp118_);
2727
_vala_code_node_unref0 (_tmp118_);
2728
_tmp119_ = try_stmt;
2729
_tmp120_ = sql_heavy_generator_type_from_string ("SQLHeavy.Error");
2730
_tmp121_ = _tmp120_;
2731
_tmp122_ = catch_block;
2732
_tmp123_ = source_reference;
2733
_tmp124_ = vala_catch_clause_new (_tmp121_, "e", _tmp122_, _tmp123_);
2734
_tmp125_ = _tmp124_;
2735
vala_try_statement_add_catch_clause (_tmp119_, _tmp125_);
2736
_vala_code_node_unref0 (_tmp125_);
2737
_vala_code_node_unref0 (_tmp121_);
2738
_tmp126_ = vala_string_literal_new ("field_name", NULL);
2739
_tmp127_ = _tmp126_;
2740
_tmp128_ = source_reference;
2741
_tmp129_ = vala_switch_statement_new ((ValaExpression*) _tmp127_, _tmp128_);
1925
2742
_vala_code_node_unref0 (signals_switch);
1926
signals_switch = _tmp79_;
1927
_vala_code_node_unref0 (_tmp78_);
1928
vala_block_add_statement (block, (ValaStatement*) signals_switch);
1929
vala_subroutine_set_body ((ValaSubroutine*) register_notify, block);
1930
vala_symbol_add_method ((ValaSymbol*) cl, register_notify);
2743
signals_switch = _tmp129_;
2744
_vala_code_node_unref0 (_tmp127_);
2746
_tmp131_ = signals_switch;
2747
vala_block_add_statement (_tmp130_, (ValaStatement*) _tmp131_);
2748
_tmp132_ = register_notify;
2750
vala_subroutine_set_body ((ValaSubroutine*) _tmp132_, _tmp133_);
2752
_tmp135_ = register_notify;
2753
vala_symbol_add_method ((ValaSymbol*) _tmp134_, _tmp135_);
1931
2754
_vala_code_node_unref0 (warn_call);
1932
2755
_vala_code_node_unref0 (get_field_name);
1933
2756
_vala_code_node_unref0 (field_name);