+2008-11-22 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodemethodmodule.vala:
+
+ Whitespace fixes
+
2008-11-22 Jürg Billeter <j@bitron.ch>
* gobject/valaccodebasemodule.vala:
}
public override string? get_custom_creturn_type (Method m) {
- var attr = m.get_attribute ("CCode");\r
- if (attr != null) {\r
- string type = attr.get_string ("type");\r
- if (type != null) {\r
- return type;\r
- }\r
- }\r
- return null;\r
- }\r
-\r
- string get_creturn_type (Method m, string default_value) {\r
- string type = get_custom_creturn_type (m);\r
- if (type == null) {\r
- return default_value;\r
- }\r
- return type;\r
+ var attr = m.get_attribute ("CCode");
+ if (attr != null) {
+ string type = attr.get_string ("type");
+ if (type != null) {
+ return type;
+ }
+ }
+ return null;
+ }
+
+ string get_creturn_type (Method m, string default_value) {
+ string type = get_custom_creturn_type (m);
+ if (type == null) {
+ return default_value;
+ }
+ return type;
}
public override void visit_method (Method m) {
}
if (current_type_symbol is Class) {
- CCodeExpression cresult = new CCodeIdentifier ("self");\r
- if (get_custom_creturn_type (m) != null) {\r
- cresult = new CCodeCastExpression (cresult, get_custom_creturn_type (m));\r
- }\r
+ CCodeExpression cresult = new CCodeIdentifier ("self");
+ if (get_custom_creturn_type (m) != null) {
+ cresult = new CCodeCastExpression (cresult, get_custom_creturn_type (m));
+ }
var creturn = new CCodeReturnStatement ();
creturn.return_expression = cresult;