summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-11-12 10:14:03 -0300
committerMike Blumenkrantz <zmike@samsung.com>2019-11-27 09:42:53 -0500
commitcb5a3bbbc9c57bc2d0c4eaf1d9272aac823383cb (patch)
tree758f0d424ce24c978ac1dac16de3c619306ad3e1
parent838352b163651aff6bd884e06162d16101807f67 (diff)
eolian_mono: avoid keyword as a variable name
Summary: ``` private static void relation_left_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity child, out Efl.Gfx.IEntity kw_base, out Efl.Gfx.Align relative_position) { Eina.Log.Debug("function efl_ui_relative_container_relation_left_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { base = default(Efl.Gfx.IEntity);relative_position = default(Efl.Gfx.Align); ``` Parameter name is replaced with `kw_base` but `base` is not changed in assignment expression (`base = default(Efl.Gfx.IEntity...`). This patch will fix following compiler error. ``` src/bindings/mono/efl_ui_relative_container.eo.cs(544,21): error CS1525: Unexpected symbol `=', expecting `.' or `[' ``` Test Plan: ninja with D10640 Reviewers: lauromoura Reviewed By: lauromoura Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10639
-rw-r--r--src/bin/eolian_mono/eolian/mono/parameter.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/parameter.hh b/src/bin/eolian_mono/eolian/mono/parameter.hh
index 7c7b8f275d..deb9a9e5a8 100644
--- a/src/bin/eolian_mono/eolian/mono/parameter.hh
+++ b/src/bin/eolian_mono/eolian/mono/parameter.hh
@@ -909,7 +909,7 @@ struct native_convert_out_variable_generator
909 // Assign a default value to the out variable in case we end up in the catch clause. 909 // Assign a default value to the out variable in case we end up in the catch clause.
910 return as_generator( 910 return as_generator(
911 string << " = default(" << type << ");" 911 string << " = default(" << type << ");"
912 ).generate(sink, std::make_tuple(param.param_name, param), context); 912 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param), context);
913 } 913 }
914 return true; 914 return true;
915 } 915 }