141
141
typedef struct _ValaEnum ValaEnum;
142
142
typedef struct _ValaEnumClass ValaEnumClass;
144
#define VALA_TYPE_CONSTANT (vala_constant_get_type ())
145
#define VALA_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONSTANT, ValaConstant))
146
#define VALA_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONSTANT, ValaConstantClass))
147
#define VALA_IS_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONSTANT))
148
#define VALA_IS_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONSTANT))
149
#define VALA_CONSTANT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONSTANT, ValaConstantClass))
151
typedef struct _ValaConstant ValaConstant;
152
typedef struct _ValaConstantClass ValaConstantClass;
144
154
#define VALA_TYPE_ENUM_VALUE (vala_enum_value_get_type ())
145
155
#define VALA_ENUM_VALUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ENUM_VALUE, ValaEnumValue))
146
156
#define VALA_ENUM_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ENUM_VALUE, ValaEnumValueClass))
181
191
typedef struct _ValaDelegate ValaDelegate;
182
192
typedef struct _ValaDelegateClass ValaDelegateClass;
184
#define VALA_TYPE_MEMBER (vala_member_get_type ())
185
#define VALA_MEMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_MEMBER, ValaMember))
186
#define VALA_MEMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_MEMBER, ValaMemberClass))
187
#define VALA_IS_MEMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_MEMBER))
188
#define VALA_IS_MEMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_MEMBER))
189
#define VALA_MEMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_MEMBER, ValaMemberClass))
191
typedef struct _ValaMember ValaMember;
192
typedef struct _ValaMemberClass ValaMemberClass;
194
#define VALA_TYPE_CONSTANT (vala_constant_get_type ())
195
#define VALA_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONSTANT, ValaConstant))
196
#define VALA_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONSTANT, ValaConstantClass))
197
#define VALA_IS_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONSTANT))
198
#define VALA_IS_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONSTANT))
199
#define VALA_CONSTANT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONSTANT, ValaConstantClass))
201
typedef struct _ValaConstant ValaConstant;
202
typedef struct _ValaConstantClass ValaConstantClass;
194
#define VALA_TYPE_VARIABLE (vala_variable_get_type ())
195
#define VALA_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_VARIABLE, ValaVariable))
196
#define VALA_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_VARIABLE, ValaVariableClass))
197
#define VALA_IS_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_VARIABLE))
198
#define VALA_IS_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_VARIABLE))
199
#define VALA_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_VARIABLE, ValaVariableClass))
201
typedef struct _ValaVariable ValaVariable;
202
typedef struct _ValaVariableClass ValaVariableClass;
204
204
#define VALA_TYPE_FIELD (vala_field_get_type ())
205
205
#define VALA_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_FIELD, ValaField))
941
941
void (*visit_error_domain) (ValaCodeVisitor* self, ValaErrorDomain* edomain);
942
942
void (*visit_error_code) (ValaCodeVisitor* self, ValaErrorCode* ecode);
943
943
void (*visit_delegate) (ValaCodeVisitor* self, ValaDelegate* d);
944
void (*visit_member) (ValaCodeVisitor* self, ValaMember* m);
945
944
void (*visit_constant) (ValaCodeVisitor* self, ValaConstant* c);
946
945
void (*visit_field) (ValaCodeVisitor* self, ValaField* f);
947
946
void (*visit_method) (ValaCodeVisitor* self, ValaMethod* m);
1053
1052
GType vala_struct_get_type (void) G_GNUC_CONST;
1054
1053
GType vala_interface_get_type (void) G_GNUC_CONST;
1055
1054
GType vala_enum_get_type (void) G_GNUC_CONST;
1055
GType vala_constant_get_type (void) G_GNUC_CONST;
1056
1056
GType vala_enum_value_get_type (void) G_GNUC_CONST;
1057
1057
GType vala_error_domain_get_type (void) G_GNUC_CONST;
1058
1058
GType vala_error_code_get_type (void) G_GNUC_CONST;
1059
1059
GType vala_delegate_get_type (void) G_GNUC_CONST;
1060
GType vala_member_get_type (void) G_GNUC_CONST;
1061
GType vala_constant_get_type (void) G_GNUC_CONST;
1060
GType vala_variable_get_type (void) G_GNUC_CONST;
1062
1061
GType vala_field_get_type (void) G_GNUC_CONST;
1063
1062
GType vala_method_get_type (void) G_GNUC_CONST;
1064
1063
GType vala_creation_method_get_type (void) G_GNUC_CONST;
1154
1153
static void vala_code_visitor_real_visit_error_code (ValaCodeVisitor* self, ValaErrorCode* ecode);
1155
1154
void vala_code_visitor_visit_delegate (ValaCodeVisitor* self, ValaDelegate* d);
1156
1155
static void vala_code_visitor_real_visit_delegate (ValaCodeVisitor* self, ValaDelegate* d);
1157
void vala_code_visitor_visit_member (ValaCodeVisitor* self, ValaMember* m);
1158
static void vala_code_visitor_real_visit_member (ValaCodeVisitor* self, ValaMember* m);
1159
1156
void vala_code_visitor_visit_constant (ValaCodeVisitor* self, ValaConstant* c);
1160
1157
static void vala_code_visitor_real_visit_constant (ValaCodeVisitor* self, ValaConstant* c);
1161
1158
void vala_code_visitor_visit_field (ValaCodeVisitor* self, ValaField* f);
1308
* Visit operation called for source files.
1310
* @param source_file a source file
1310
1312
static void vala_code_visitor_real_visit_source_file (ValaCodeVisitor* self, ValaSourceFile* source_file) {
1311
1313
g_return_if_fail (self != NULL);
1312
1314
g_return_if_fail (source_file != NULL);
1372
* Visit operation called for interfaces.
1374
* @param iface an interface
1354
1376
static void vala_code_visitor_real_visit_interface (ValaCodeVisitor* self, ValaInterface* iface) {
1355
1377
g_return_if_fail (self != NULL);
1356
1378
g_return_if_fail (iface != NULL);
1404
* Visit operation called for enum values.
1406
* @param ev an enum value
1376
1408
static void vala_code_visitor_real_visit_enum_value (ValaCodeVisitor* self, ValaEnumValue* ev) {
1377
1409
g_return_if_fail (self != NULL);
1378
1410
g_return_if_fail (ev != NULL);
1420
* Visit operation called for error domains.
1422
* @param edomain an error domain
1387
1424
static void vala_code_visitor_real_visit_error_domain (ValaCodeVisitor* self, ValaErrorDomain* edomain) {
1388
1425
g_return_if_fail (self != NULL);
1389
1426
g_return_if_fail (edomain != NULL);
1436
* Visit operation called for error codes.
1438
* @param ecode an error code
1398
1440
static void vala_code_visitor_real_visit_error_code (ValaCodeVisitor* self, ValaErrorCode* ecode) {
1399
1441
g_return_if_fail (self != NULL);
1400
1442
g_return_if_fail (ecode != NULL);
1420
static void vala_code_visitor_real_visit_member (ValaCodeVisitor* self, ValaMember* m) {
1421
g_return_if_fail (self != NULL);
1422
g_return_if_fail (m != NULL);
1426
void vala_code_visitor_visit_member (ValaCodeVisitor* self, ValaMember* m) {
1427
VALA_CODE_VISITOR_GET_CLASS (self)->visit_member (self, m);
1468
* Visit operation called for constants.
1470
* @param c a constant
1431
1472
static void vala_code_visitor_real_visit_constant (ValaCodeVisitor* self, ValaConstant* c) {
1432
1473
g_return_if_fail (self != NULL);
1433
1474
g_return_if_fail (c != NULL);
1532
* Visit operation called for formal parameters.
1534
* @param p a formal parameter
1475
1536
static void vala_code_visitor_real_visit_formal_parameter (ValaCodeVisitor* self, ValaFormalParameter* p) {
1476
1537
g_return_if_fail (self != NULL);
1477
1538
g_return_if_fail (p != NULL);
1564
* Visit operation called for property accessors.
1566
* @param acc a property accessor
1497
1568
static void vala_code_visitor_real_visit_property_accessor (ValaCodeVisitor* self, ValaPropertyAccessor* acc) {
1498
1569
g_return_if_fail (self != NULL);
1499
1570
g_return_if_fail (acc != NULL);
1628
* Visit operation called for type parameters.
1630
* @param p a type parameter
1541
1632
static void vala_code_visitor_real_visit_type_parameter (ValaCodeVisitor* self, ValaTypeParameter* p) {
1542
1633
g_return_if_fail (self != NULL);
1543
1634
g_return_if_fail (p != NULL);
1644
* Visit operation called for using directives.
1646
* @param ns a using directive
1552
1648
static void vala_code_visitor_real_visit_using_directive (ValaCodeVisitor* self, ValaUsingDirective* ns) {
1553
1649
g_return_if_fail (self != NULL);
1554
1650
g_return_if_fail (ns != NULL);
1660
* Visit operation called for type references.
1662
* @param type a type reference
1563
1664
static void vala_code_visitor_real_visit_data_type (ValaCodeVisitor* self, ValaDataType* type) {
1564
1665
g_return_if_fail (self != NULL);
1565
1666
g_return_if_fail (type != NULL);
1692
* Visit operation called for empty statements.
1694
* @param stmt an empty statement
1585
1696
static void vala_code_visitor_real_visit_empty_statement (ValaCodeVisitor* self, ValaEmptyStatement* stmt) {
1586
1697
g_return_if_fail (self != NULL);
1587
1698
g_return_if_fail (stmt != NULL);
1708
* Visit operation called for declaration statements.
1710
* @param stmt a declaration statement
1596
1712
static void vala_code_visitor_real_visit_declaration_statement (ValaCodeVisitor* self, ValaDeclarationStatement* stmt) {
1597
1713
g_return_if_fail (self != NULL);
1598
1714
g_return_if_fail (stmt != NULL);
1724
* Visit operation called for local variables.
1726
* @param local a local variable
1607
1728
static void vala_code_visitor_real_visit_local_variable (ValaCodeVisitor* self, ValaLocalVariable* local) {
1608
1729
g_return_if_fail (self != NULL);
1609
1730
g_return_if_fail (local != NULL);
1740
* Visit operation called for initializer lists
1742
* @param list an initializer list
1618
1744
static void vala_code_visitor_real_visit_initializer_list (ValaCodeVisitor* self, ValaInitializerList* list) {
1619
1745
g_return_if_fail (self != NULL);
1620
1746
g_return_if_fail (list != NULL);
1756
* Visit operation called for expression statements.
1758
* @param stmt an expression statement
1629
1760
static void vala_code_visitor_real_visit_expression_statement (ValaCodeVisitor* self, ValaExpressionStatement* stmt) {
1630
1761
g_return_if_fail (self != NULL);
1631
1762
g_return_if_fail (stmt != NULL);
1772
* Visit operation called for if statements.
1774
* @param stmt an if statement
1640
1776
static void vala_code_visitor_real_visit_if_statement (ValaCodeVisitor* self, ValaIfStatement* stmt) {
1641
1777
g_return_if_fail (self != NULL);
1642
1778
g_return_if_fail (stmt != NULL);
1788
* Visit operation called for switch statements.
1790
* @param stmt a switch statement
1651
1792
static void vala_code_visitor_real_visit_switch_statement (ValaCodeVisitor* self, ValaSwitchStatement* stmt) {
1652
1793
g_return_if_fail (self != NULL);
1653
1794
g_return_if_fail (stmt != NULL);
1804
* Visit operation called for switch sections.
1806
* @param section a switch section
1662
1808
static void vala_code_visitor_real_visit_switch_section (ValaCodeVisitor* self, ValaSwitchSection* section) {
1663
1809
g_return_if_fail (self != NULL);
1664
1810
g_return_if_fail (section != NULL);
1820
* Visit operation called for switch label.
1822
* @param label a switch label
1673
1824
static void vala_code_visitor_real_visit_switch_label (ValaCodeVisitor* self, ValaSwitchLabel* label) {
1674
1825
g_return_if_fail (self != NULL);
1675
1826
g_return_if_fail (label != NULL);
1852
* Visit operation called for while statements.
1854
* @param stmt an while statement
1695
1856
static void vala_code_visitor_real_visit_while_statement (ValaCodeVisitor* self, ValaWhileStatement* stmt) {
1696
1857
g_return_if_fail (self != NULL);
1697
1858
g_return_if_fail (stmt != NULL);
1868
* Visit operation called for do statements.
1870
* @param stmt a do statement
1706
1872
static void vala_code_visitor_real_visit_do_statement (ValaCodeVisitor* self, ValaDoStatement* stmt) {
1707
1873
g_return_if_fail (self != NULL);
1708
1874
g_return_if_fail (stmt != NULL);
1884
* Visit operation called for for statements.
1886
* @param stmt a for statement
1717
1888
static void vala_code_visitor_real_visit_for_statement (ValaCodeVisitor* self, ValaForStatement* stmt) {
1718
1889
g_return_if_fail (self != NULL);
1719
1890
g_return_if_fail (stmt != NULL);
1900
* Visit operation called for foreach statements.
1902
* @param stmt a foreach statement
1728
1904
static void vala_code_visitor_real_visit_foreach_statement (ValaCodeVisitor* self, ValaForeachStatement* stmt) {
1729
1905
g_return_if_fail (self != NULL);
1730
1906
g_return_if_fail (stmt != NULL);
1916
* Visit operation called for break statements.
1918
* @param stmt a break statement
1739
1920
static void vala_code_visitor_real_visit_break_statement (ValaCodeVisitor* self, ValaBreakStatement* stmt) {
1740
1921
g_return_if_fail (self != NULL);
1741
1922
g_return_if_fail (stmt != NULL);
1932
* Visit operation called for continue statements.
1934
* @param stmt a continue statement
1750
1936
static void vala_code_visitor_real_visit_continue_statement (ValaCodeVisitor* self, ValaContinueStatement* stmt) {
1751
1937
g_return_if_fail (self != NULL);
1752
1938
g_return_if_fail (stmt != NULL);
1948
* Visit operation called for return statements.
1950
* @param stmt a return statement
1761
1952
static void vala_code_visitor_real_visit_return_statement (ValaCodeVisitor* self, ValaReturnStatement* stmt) {
1762
1953
g_return_if_fail (self != NULL);
1763
1954
g_return_if_fail (stmt != NULL);
1964
* Visit operation called for yield statement.
1966
* @param y a yield statement
1772
1968
static void vala_code_visitor_real_visit_yield_statement (ValaCodeVisitor* self, ValaYieldStatement* y) {
1773
1969
g_return_if_fail (self != NULL);
1774
1970
g_return_if_fail (y != NULL);
1980
* Visit operation called for throw statements.
1982
* @param stmt a throw statement
1783
1984
static void vala_code_visitor_real_visit_throw_statement (ValaCodeVisitor* self, ValaThrowStatement* stmt) {
1784
1985
g_return_if_fail (self != NULL);
1785
1986
g_return_if_fail (stmt != NULL);
1996
* Visit operation called for try statements.
1998
* @param stmt a try statement
1794
2000
static void vala_code_visitor_real_visit_try_statement (ValaCodeVisitor* self, ValaTryStatement* stmt) {
1795
2001
g_return_if_fail (self != NULL);
1796
2002
g_return_if_fail (stmt != NULL);
2012
* Visit operation called for catch clauses.
2014
* @param clause a catch cluase
1805
2016
static void vala_code_visitor_real_visit_catch_clause (ValaCodeVisitor* self, ValaCatchClause* clause) {
1806
2017
g_return_if_fail (self != NULL);
1807
2018
g_return_if_fail (clause != NULL);
2028
* Visit operation called for lock statements before the body has been visited.
2030
* @param stmt a lock statement
1816
2032
static void vala_code_visitor_real_visit_lock_statement (ValaCodeVisitor* self, ValaLockStatement* stmt) {
1817
2033
g_return_if_fail (self != NULL);
1818
2034
g_return_if_fail (stmt != NULL);
2044
* Visit operation called for unlock statements.
2046
* @param stmt an unlock statement
1827
2048
static void vala_code_visitor_real_visit_unlock_statement (ValaCodeVisitor* self, ValaUnlockStatement* stmt) {
1828
2049
g_return_if_fail (self != NULL);
1829
2050
g_return_if_fail (stmt != NULL);
2060
* Visit operation called for delete statements.
2062
* @param stmt a delete statement
1838
2064
static void vala_code_visitor_real_visit_delete_statement (ValaCodeVisitor* self, ValaDeleteStatement* stmt) {
1839
2065
g_return_if_fail (self != NULL);
1840
2066
g_return_if_fail (stmt != NULL);
2076
* Visit operations called for expresions.
2078
* @param expr an expression
1849
2080
static void vala_code_visitor_real_visit_expression (ValaCodeVisitor* self, ValaExpression* expr) {
1850
2081
g_return_if_fail (self != NULL);
1851
2082
g_return_if_fail (expr != NULL);
2092
* Visit operations called for array creation expresions.
2094
* @param expr an array creation expression
1860
2096
static void vala_code_visitor_real_visit_array_creation_expression (ValaCodeVisitor* self, ValaArrayCreationExpression* expr) {
1861
2097
g_return_if_fail (self != NULL);
1862
2098
g_return_if_fail (expr != NULL);
2108
* Visit operation called for boolean literals.
2110
* @param lit a boolean literal
1871
2112
static void vala_code_visitor_real_visit_boolean_literal (ValaCodeVisitor* self, ValaBooleanLiteral* lit) {
1872
2113
g_return_if_fail (self != NULL);
1873
2114
g_return_if_fail (lit != NULL);
2124
* Visit operation called for character literals.
2126
* @param lit a character literal
1882
2128
static void vala_code_visitor_real_visit_character_literal (ValaCodeVisitor* self, ValaCharacterLiteral* lit) {
1883
2129
g_return_if_fail (self != NULL);
1884
2130
g_return_if_fail (lit != NULL);
2140
* Visit operation called for integer literals.
2142
* @param lit an integer literal
1893
2144
static void vala_code_visitor_real_visit_integer_literal (ValaCodeVisitor* self, ValaIntegerLiteral* lit) {
1894
2145
g_return_if_fail (self != NULL);
1895
2146
g_return_if_fail (lit != NULL);
2156
* Visit operation called for real literals.
2158
* @param lit a real literal
1904
2160
static void vala_code_visitor_real_visit_real_literal (ValaCodeVisitor* self, ValaRealLiteral* lit) {
1905
2161
g_return_if_fail (self != NULL);
1906
2162
g_return_if_fail (lit != NULL);
2172
* Visit operation called for regex literals.
2174
* @param lit a regex literal
1915
2176
static void vala_code_visitor_real_visit_regex_literal (ValaCodeVisitor* self, ValaRegexLiteral* lit) {
1916
2177
g_return_if_fail (self != NULL);
1917
2178
g_return_if_fail (lit != NULL);
2188
* Visit operation called for string literals.
2190
* @param lit a string literal
1926
2192
static void vala_code_visitor_real_visit_string_literal (ValaCodeVisitor* self, ValaStringLiteral* lit) {
1927
2193
g_return_if_fail (self != NULL);
1928
2194
g_return_if_fail (lit != NULL);
2204
* Visit operation called for string templates.
2206
* @param tmpl a string template
1937
2208
static void vala_code_visitor_real_visit_template (ValaCodeVisitor* self, ValaTemplate* tmpl) {
1938
2209
g_return_if_fail (self != NULL);
1939
2210
g_return_if_fail (tmpl != NULL);
2220
* Visit operation called for list literals.
2222
* @param lit a list literal
1948
2224
static void vala_code_visitor_real_visit_list_literal (ValaCodeVisitor* self, ValaListLiteral* lit) {
1949
2225
g_return_if_fail (self != NULL);
1950
2226
g_return_if_fail (lit != NULL);
2236
* Visit operation called for set literals.
2238
* @param lit a set literal
1959
2240
static void vala_code_visitor_real_visit_set_literal (ValaCodeVisitor* self, ValaSetLiteral* lit) {
1960
2241
g_return_if_fail (self != NULL);
1961
2242
g_return_if_fail (lit != NULL);
2252
* Visit operation called for map literals.
2254
* @param lit a map literal
1970
2256
static void vala_code_visitor_real_visit_map_literal (ValaCodeVisitor* self, ValaMapLiteral* lit) {
1971
2257
g_return_if_fail (self != NULL);
1972
2258
g_return_if_fail (lit != NULL);
2284
* Visit operation called for null literals.
2286
* @param lit a null literal
1992
2288
static void vala_code_visitor_real_visit_null_literal (ValaCodeVisitor* self, ValaNullLiteral* lit) {
1993
2289
g_return_if_fail (self != NULL);
1994
2290
g_return_if_fail (lit != NULL);
2300
* Visit operation called for member access expressions.
2302
* @param expr a member access expression
2003
2304
static void vala_code_visitor_real_visit_member_access (ValaCodeVisitor* self, ValaMemberAccess* expr) {
2004
2305
g_return_if_fail (self != NULL);
2005
2306
g_return_if_fail (expr != NULL);
2316
* Visit operation called for invocation expressions.
2318
* @param expr an invocation expression
2014
2320
static void vala_code_visitor_real_visit_method_call (ValaCodeVisitor* self, ValaMethodCall* expr) {
2015
2321
g_return_if_fail (self != NULL);
2016
2322
g_return_if_fail (expr != NULL);
2332
* Visit operation called for element access expressions.
2334
* @param expr an element access expression
2025
2336
static void vala_code_visitor_real_visit_element_access (ValaCodeVisitor* self, ValaElementAccess* expr) {
2026
2337
g_return_if_fail (self != NULL);
2027
2338
g_return_if_fail (expr != NULL);
2348
* Visit operation called for array slice expressions.
2350
* @param expr an array slice expression
2036
2352
static void vala_code_visitor_real_visit_slice_expression (ValaCodeVisitor* self, ValaSliceExpression* expr) {
2037
2353
g_return_if_fail (self != NULL);
2038
2354
g_return_if_fail (expr != NULL);
2364
* Visit operation called for base access expressions.
2366
* @param expr a base access expression
2047
2368
static void vala_code_visitor_real_visit_base_access (ValaCodeVisitor* self, ValaBaseAccess* expr) {
2048
2369
g_return_if_fail (self != NULL);
2049
2370
g_return_if_fail (expr != NULL);
2380
* Visit operation called for postfix expressions.
2382
* @param expr a postfix expression
2058
2384
static void vala_code_visitor_real_visit_postfix_expression (ValaCodeVisitor* self, ValaPostfixExpression* expr) {
2059
2385
g_return_if_fail (self != NULL);
2060
2386
g_return_if_fail (expr != NULL);
2396
* Visit operation called for object creation expressions.
2398
* @param expr an object creation expression
2069
2400
static void vala_code_visitor_real_visit_object_creation_expression (ValaCodeVisitor* self, ValaObjectCreationExpression* expr) {
2070
2401
g_return_if_fail (self != NULL);
2071
2402
g_return_if_fail (expr != NULL);
2412
* Visit operation called for sizeof expressions.
2414
* @param expr a sizeof expression
2080
2416
static void vala_code_visitor_real_visit_sizeof_expression (ValaCodeVisitor* self, ValaSizeofExpression* expr) {
2081
2417
g_return_if_fail (self != NULL);
2082
2418
g_return_if_fail (expr != NULL);
2428
* Visit operation called for typeof expressions.
2430
* @param expr a typeof expression
2091
2432
static void vala_code_visitor_real_visit_typeof_expression (ValaCodeVisitor* self, ValaTypeofExpression* expr) {
2092
2433
g_return_if_fail (self != NULL);
2093
2434
g_return_if_fail (expr != NULL);
2444
* Visit operation called for unary expressions.
2446
* @param expr an unary expression
2102
2448
static void vala_code_visitor_real_visit_unary_expression (ValaCodeVisitor* self, ValaUnaryExpression* expr) {
2103
2449
g_return_if_fail (self != NULL);
2104
2450
g_return_if_fail (expr != NULL);
2460
* Visit operation called for call expressions.
2462
* @param expr a call expression
2113
2464
static void vala_code_visitor_real_visit_cast_expression (ValaCodeVisitor* self, ValaCastExpression* expr) {
2114
2465
g_return_if_fail (self != NULL);
2115
2466
g_return_if_fail (expr != NULL);
2476
* Visit operation called for named arguments.
2478
* @param expr a named argument
2124
2480
static void vala_code_visitor_real_visit_named_argument (ValaCodeVisitor* self, ValaNamedArgument* expr) {
2125
2481
g_return_if_fail (self != NULL);
2126
2482
g_return_if_fail (expr != NULL);
2492
* Visit operation called for pointer indirections.
2494
* @param expr a pointer indirection
2135
2496
static void vala_code_visitor_real_visit_pointer_indirection (ValaCodeVisitor* self, ValaPointerIndirection* expr) {
2136
2497
g_return_if_fail (self != NULL);
2137
2498
g_return_if_fail (expr != NULL);
2508
* Visit operation called for address-of expressions.
2510
* @param expr an address-of expression
2146
2512
static void vala_code_visitor_real_visit_addressof_expression (ValaCodeVisitor* self, ValaAddressofExpression* expr) {
2147
2513
g_return_if_fail (self != NULL);
2148
2514
g_return_if_fail (expr != NULL);
2524
* Visit operation called for reference transfer expressions.
2526
* @param expr a reference transfer expression
2157
2528
static void vala_code_visitor_real_visit_reference_transfer_expression (ValaCodeVisitor* self, ValaReferenceTransferExpression* expr) {
2158
2529
g_return_if_fail (self != NULL);
2159
2530
g_return_if_fail (expr != NULL);
2540
* Visit operation called for binary expressions.
2542
* @param expr a binary expression
2168
2544
static void vala_code_visitor_real_visit_binary_expression (ValaCodeVisitor* self, ValaBinaryExpression* expr) {
2169
2545
g_return_if_fail (self != NULL);
2170
2546
g_return_if_fail (expr != NULL);
2556
* Visit operation called for type checks.
2558
* @param expr a type check expression
2179
2560
static void vala_code_visitor_real_visit_type_check (ValaCodeVisitor* self, ValaTypeCheck* expr) {
2180
2561
g_return_if_fail (self != NULL);
2181
2562
g_return_if_fail (expr != NULL);
2572
* Visit operation called for conditional expressions.
2574
* @param expr a conditional expression
2190
2576
static void vala_code_visitor_real_visit_conditional_expression (ValaCodeVisitor* self, ValaConditionalExpression* expr) {
2191
2577
g_return_if_fail (self != NULL);
2192
2578
g_return_if_fail (expr != NULL);
2588
* Visit operation called for lambda expressions.
2590
* @param expr a lambda expression
2201
2592
static void vala_code_visitor_real_visit_lambda_expression (ValaCodeVisitor* self, ValaLambdaExpression* expr) {
2202
2593
g_return_if_fail (self != NULL);
2203
2594
g_return_if_fail (expr != NULL);
2620
* Visit operation called at end of full expressions.
2622
* @param expr a full expression
2223
2624
static void vala_code_visitor_real_visit_end_full_expression (ValaCodeVisitor* self, ValaExpression* expr) {
2224
2625
g_return_if_fail (self != NULL);
2225
2626
g_return_if_fail (expr != NULL);
2361
2762
VALA_CODE_VISITOR_CLASS (klass)->visit_error_domain = vala_code_visitor_real_visit_error_domain;
2362
2763
VALA_CODE_VISITOR_CLASS (klass)->visit_error_code = vala_code_visitor_real_visit_error_code;
2363
2764
VALA_CODE_VISITOR_CLASS (klass)->visit_delegate = vala_code_visitor_real_visit_delegate;
2364
VALA_CODE_VISITOR_CLASS (klass)->visit_member = vala_code_visitor_real_visit_member;
2365
2765
VALA_CODE_VISITOR_CLASS (klass)->visit_constant = vala_code_visitor_real_visit_constant;
2366
2766
VALA_CODE_VISITOR_CLASS (klass)->visit_field = vala_code_visitor_real_visit_field;
2367
2767
VALA_CODE_VISITOR_CLASS (klass)->visit_method = vala_code_visitor_real_visit_method;