vala r2124 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2124 - in trunk: . gobject
- Date: Mon, 8 Dec 2008 23:20:28 +0000 (UTC)
Author: juergbi
Date: Mon Dec 8 23:20:28 2008
New Revision: 2124
URL: http://svn.gnome.org/viewvc/vala?rev=2124&view=rev
Log:
2008-12-09 JÃrg Billeter <j bitron ch>
* gobject/valaccodemethodmodule.vala:
Fix inline struct methods in VAPI files
Modified:
trunk/ChangeLog
trunk/gobject/valaccodemethodmodule.vala
Modified: trunk/gobject/valaccodemethodmodule.vala
==============================================================================
--- trunk/gobject/valaccodemethodmodule.vala (original)
+++ trunk/gobject/valaccodemethodmodule.vala Mon Dec 8 23:20:28 2008
@@ -56,10 +56,15 @@
}
public override void visit_method (Method m) {
+ var old_type_symbol = current_type_symbol;
+ var old_symbol = current_symbol;
Method old_method = current_method;
DataType old_return_type = current_return_type;
bool old_method_inner_error = current_method_inner_error;
int old_next_temp_var_id = next_temp_var_id;
+ if (m.parent_symbol is TypeSymbol) {
+ current_type_symbol = (TypeSymbol) m.parent_symbol;
+ }
current_symbol = m;
current_method = m;
current_return_type = m.return_type;
@@ -147,7 +152,8 @@
bool inner_error = current_method_inner_error;
- current_symbol = current_symbol.parent_symbol;
+ current_type_symbol = old_type_symbol;
+ current_symbol = old_symbol;
current_method = old_method;
current_return_type = old_return_type;
current_method_inner_error = old_method_inner_error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]